Conekta::DiscountLinesDataResponse

August 1, 2023 ยท View on GitHub

Properties

NameTypeDescriptionNotes
amountIntegerThe amount to be deducted from the total sum of all payments, in cents.
codeStringDiscount code.
typeStringIt can be 'loyalty', 'campaign', 'coupon' o 'sign'
idStringThe discount line id
objectStringThe object name
parent_idStringThe order id

Example

require 'conekta'

instance = Conekta::DiscountLinesDataResponse.new(
  amount: 500,
  code: 123,
  type: loyalty,
  id: dis_lin_2tQQ58HPgPw7StE8z,
  object: discount_line,
  parent_id: ord_2tPAmKCEJqh8RE6nY
)