Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 779 Bytes

DiscountLinesDataResponse.md

File metadata and controls

28 lines (22 loc) · 779 Bytes

Conekta::DiscountLinesDataResponse

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'
id String The discount line id
object String The object name
parent_id String The 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
)