Name | Type | Description | Notes |
---|---|---|---|
amount | Integer | The amount to be deducted from the total sum of all payments, in cents. | |
code | String | Discount code. | |
type | String | It can be 'loyalty', 'campaign', 'coupon' o 'sign' |
require 'conekta'
instance = Conekta::OrderDiscountLinesRequest.new(
amount: 500,
code: 123,
type: loyalty
)