Class: Moov::Models::Components::UpdatePaymentLink
- Inherits:
-
Object
- Object
- Moov::Models::Components::UpdatePaymentLink
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/updatepaymentlink.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(amount: nil, sales_tax_amount: nil, display: nil, customer: nil, payment: nil, payout: nil, line_items: nil, expires_on: nil) ⇒ UpdatePaymentLink
constructor
A new instance of UpdatePaymentLink.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(amount: nil, sales_tax_amount: nil, display: nil, customer: nil, payment: nil, payout: nil, line_items: nil, expires_on: nil) ⇒ UpdatePaymentLink
Returns a new instance of UpdatePaymentLink.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/moov/models/components/updatepaymentlink.rb', line 34 def initialize(amount: nil, sales_tax_amount: nil, display: nil, customer: nil, payment: nil, payout: nil, line_items: nil, expires_on: nil) @amount = amount @sales_tax_amount = sales_tax_amount @display = display @customer = customer @payment = payment @payout = payout @line_items = line_items @expires_on = expires_on end |
Instance Method Details
#==(other) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/moov/models/components/updatepaymentlink.rb', line 46 def ==(other) return false unless other.is_a? self.class return false unless @amount == other.amount return false unless @sales_tax_amount == other.sales_tax_amount return false unless @display == other.display return false unless @customer == other.customer return false unless @payment == other.payment return false unless @payout == other.payout return false unless @line_items == other.line_items return false unless @expires_on == other.expires_on true end |