Class: Clerk::Models::Components::CommercePaymentMethodResponse
- Inherits:
-
Object
- Object
- Clerk::Models::Components::CommercePaymentMethodResponse
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/commercepaymentmethodresponse.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, payer_id:, payment_type:, gateway:, gateway_external_id:, status:, is_default: nil, gateway_external_account_id: nil, last4: nil, card_type: nil, created_at: nil, updated_at: nil, is_removable: nil, wallet_type: nil, expiry_year: nil, expiry_month: nil) ⇒ CommercePaymentMethodResponse
constructor
A new instance of CommercePaymentMethodResponse.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, payer_id:, payment_type:, gateway:, gateway_external_id:, status:, is_default: nil, gateway_external_account_id: nil, last4: nil, card_type: nil, created_at: nil, updated_at: nil, is_removable: nil, wallet_type: nil, expiry_year: nil, expiry_month: nil) ⇒ CommercePaymentMethodResponse
Returns a new instance of CommercePaymentMethodResponse.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/clerk/models/components/commercepaymentmethodresponse.rb', line 51 def initialize(object:, id:, payer_id:, payment_type:, gateway:, gateway_external_id:, status:, is_default: nil, gateway_external_account_id: nil, last4: nil, card_type: nil, created_at: nil, updated_at: nil, is_removable: nil, wallet_type: nil, expiry_year: nil, expiry_month: nil) @object = object @id = id @payer_id = payer_id @payment_type = payment_type @gateway = gateway @gateway_external_id = gateway_external_id @status = status @is_default = is_default @gateway_external_account_id = gateway_external_account_id @last4 = last4 @card_type = card_type @created_at = created_at @updated_at = updated_at @is_removable = is_removable @wallet_type = wallet_type @expiry_year = expiry_year @expiry_month = expiry_month end |
Instance Method Details
#==(other) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/clerk/models/components/commercepaymentmethodresponse.rb', line 72 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @payer_id == other.payer_id return false unless @payment_type == other.payment_type return false unless @gateway == other.gateway return false unless @gateway_external_id == other.gateway_external_id return false unless @status == other.status return false unless @is_default == other.is_default return false unless @gateway_external_account_id == other.gateway_external_account_id return false unless @last4 == other.last4 return false unless @card_type == other.card_type return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @is_removable == other.is_removable return false unless @wallet_type == other.wallet_type return false unless @expiry_year == other.expiry_year return false unless @expiry_month == other.expiry_month true end |