Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.45 KB

ProductOrderResponse.md

File metadata and controls

40 lines (34 loc) · 1.45 KB

Conekta::ProductOrderResponse

Properties

Name Type Description Notes
antifraud_info Hash<String, Object> [optional]
brand String The brand of the item. [optional]
description String Short description of the item [optional]
metadata Hash<String, Object> It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. [optional]
name String The name of the item. It will be displayed in the order.
quantity Integer The quantity of the item in the order.
sku String The stock keeping unit for the item. It is used to identify the item in the order. [optional]
tags Array<String> List of tags for the item. It is used to identify the item in the order. [optional]
unit_price Integer The price of the item in cents.
id String [optional]
object String [optional]
parent_id String [optional]

Example

require 'conekta'

instance = Conekta::ProductOrderResponse.new(
  antifraud_info: {key&#x3D;value},
  brand: Cohiba,
  description: Imported From Mex.,
  metadata: {key&#x3D;value},
  name: Box of Cohiba S1s,
  quantity: 1,
  sku: XYZ12345,
  tags: [food, mexican food],
  unit_price: 20000,
  id: null,
  object: null,
  parent_id: null
)