Conekta::OrderDiscountLinesRequest

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'

Example

require 'conekta'

instance = Conekta::OrderDiscountLinesRequest.new(
  amount: 500,
  code: 123,
  type: loyalty
)