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' | |
id | String | The discount line id | |
object | String | The object name | |
parent_id | String | The order id |
require 'conekta'
instance = Conekta::DiscountLinesDataResponse.new(
amount: 500,
code: 123,
type: loyalty,
id: dis_lin_2tQQ58HPgPw7StE8z,
object: discount_line,
parent_id: ord_2tPAmKCEJqh8RE6nY
)