Exception: Moov::Models::Errors::UpdatePaymentLinkError

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/errors/updatepaymentlinkerror.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(amount: nil, sales_tax_amount: nil, expires_on: nil, display: nil, payment: nil, payout: nil, line_items: nil, raw_response: nil) ⇒ UpdatePaymentLinkError

Returns a new instance of UpdatePaymentLinkError.



33
34
35
36
37
38
39
40
41
42
# File 'lib/moov/models/errors/updatepaymentlinkerror.rb', line 33

def initialize(amount: nil, sales_tax_amount: nil, expires_on: nil, display: nil, payment: nil, payout: nil, line_items: nil, raw_response: nil)
  @amount = amount
  @sales_tax_amount = sales_tax_amount
  @expires_on = expires_on
  @display = display
  @payment = payment
  @payout = payout
  @line_items = line_items
  @raw_response = raw_response
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/moov/models/errors/updatepaymentlinkerror.rb', line 45

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 @expires_on == other.expires_on
  return false unless @display == other.display
  return false unless @payment == other.payment
  return false unless @payout == other.payout
  return false unless @line_items == other.line_items
  return false unless @raw_response == other.raw_response
  true
end