Class: Afterpay::Components::Discount

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/discount.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Initializable

included, #initialize

Methods included from Representable

#as_json, included

Instance Attribute Details

#amountAfterpay::Components::Money

The discount amount.



14
15
16
# File 'lib/afterpay/components/discount.rb', line 14

def amount
  @amount
end

#display_nameString

A display name for the discount.

Returns:

  • (String)


9
10
11
# File 'lib/afterpay/components/discount.rb', line 9

def display_name
  @display_name
end