Conekta::OrderDiscountLinesRequest
August 1, 2023 ยท View on GitHub
Properties
| 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' |
Example
require 'conekta'
instance = Conekta::OrderDiscountLinesRequest.new(
amount: 500,
code: 123,
type: loyalty
)