Conekta::ProductDataResponse

April 29, 2024 ยท View on GitHub

Properties

NameTypeDescriptionNotes
antifraud_infoHash<String, Object>[optional]
brandStringThe brand of the item.[optional]
descriptionStringShort description of the item[optional]
metadataHash<String, Object>It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.[optional]
nameStringThe name of the item. It will be displayed in the order.
quantityIntegerThe quantity of the item in the order.
skuStringThe stock keeping unit for the item. It is used to identify the item in the order.[optional]
tagsArray<String>List of tags for the item. It is used to identify the item in the order.[optional]
unit_priceIntegerThe price of the item in cents.
idString[optional]
objectString[optional]
parent_idString[optional]

Example

require 'conekta'

instance = Conekta::ProductDataResponse.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
)