Class: Moov::Models::Errors::CreatePaymentLinkError
- Inherits:
-
Object
- Object
- Moov::Models::Errors::CreatePaymentLinkError
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/errors/createpaymentlinkerror.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(partner_account_id: nil, merchant_payment_method_id: nil, amount: nil, max_uses: nil, expires_on: nil, display: nil, payment: nil, payout: nil, raw_response: nil) ⇒ CreatePaymentLinkError
constructor
A new instance of CreatePaymentLinkError.
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, max_uses: nil, expires_on: nil, display: nil, payment: nil, payout: nil, raw_response: nil) ⇒ CreatePaymentLinkError
Returns a new instance of CreatePaymentLinkError.
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/moov/models/errors/createpaymentlinkerror.rb', line 36 def initialize(partner_account_id: nil, merchant_payment_method_id: nil, amount: nil, max_uses: nil, expires_on: nil, display: nil, payment: nil, payout: nil, raw_response: nil) @partner_account_id = partner_account_id @merchant_payment_method_id = merchant_payment_method_id @amount = amount @max_uses = max_uses @expires_on = expires_on @display = display @payment = payment @payout = payout @raw_response = raw_response end |
Instance Method Details
#==(other) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/moov/models/errors/createpaymentlinkerror.rb', line 49 def ==(other) return false unless other.is_a? self.class return false unless @partner_account_id == other.partner_account_id return false unless @merchant_payment_method_id == other.merchant_payment_method_id return false unless @amount == other.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 @raw_response == other.raw_response true end |