Exception: Moov::Models::Errors::CreatePaymentLinkError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(partner_account_id: nil, merchant_payment_method_id: nil, amount: nil, sales_tax_amount: nil, max_uses: nil, expires_on: nil, display: nil, payment: nil, payout: nil, line_items: nil, raw_response: nil) ⇒ CreatePaymentLinkError

Returns a new instance of CreatePaymentLinkError.



39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/moov/models/errors/createpaymentlinkerror.rb', line 39

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

Instance Method Details

#==(other) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/moov/models/errors/createpaymentlinkerror.rb', line 54

def ==(other)
  return false unless other.is_a? self.class
  return false unless @partner_account_id == other.
  return false unless @merchant_payment_method_id == other.merchant_payment_method_id
  return false unless @amount == other.amount
  return false unless @sales_tax_amount == other.sales_tax_amount
  return false unless @max_uses == other.max_uses
  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