Class: Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item
- Defined in:
- lib/dodopayments/models/customer_retrieve_payment_methods_response.rb
Defined Under Namespace
Modules: PaymentMethod Classes: Card
Instance Attribute Summary collapse
- #card ⇒ Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?
- #last_used_at ⇒ Time?
-
#payment_method ⇒ Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod
PaymentMethod enum from hyperswitch.
- #payment_method_id ⇒ String
- #payment_method_type ⇒ Symbol, ...
- #recurring_enabled ⇒ Boolean?
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(payment_method: , payment_method_id: , card: nil, last_used_at: nil, payment_method_type: nil, recurring_enabled: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Item for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(payment_method: , payment_method_id: , card: nil, last_used_at: nil, payment_method_type: nil, recurring_enabled: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item for more details.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 16 class Item < Dodopayments::Internal::Type::BaseModel # @!attribute payment_method # PaymentMethod enum from hyperswitch # # https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097 # # @return [Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod] required :payment_method, enum: -> { Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod } # @!attribute payment_method_id # # @return [String] required :payment_method_id, String # @!attribute card # # @return [Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card, nil] optional :card, -> { Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card }, nil?: true # @!attribute last_used_at # # @return [Time, nil] optional :last_used_at, Time, nil?: true # @!attribute payment_method_type # # @return [Symbol, Dodopayments::Models::PaymentMethodTypes, nil] optional :payment_method_type, enum: -> { Dodopayments::PaymentMethodTypes }, nil?: true # @!attribute recurring_enabled # # @return [Boolean, nil] optional :recurring_enabled, Dodopayments::Internal::Type::Boolean, nil?: true # @!method initialize(payment_method:, payment_method_id:, card: nil, last_used_at: nil, payment_method_type: nil, recurring_enabled: nil) # Some parameter documentations has been truncated, see # {Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item} for more # details. # # @param payment_method [Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod] PaymentMethod enum from hyperswitch # # @param payment_method_id [String] # # @param card [Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card, nil] # # @param last_used_at [Time, nil] # # @param payment_method_type [Symbol, Dodopayments::Models::PaymentMethodTypes, nil] # # @param recurring_enabled [Boolean, nil] # PaymentMethod enum from hyperswitch # # https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097 # # @see Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item#payment_method module PaymentMethod extend Dodopayments::Internal::Type::Enum CARD = :card CARD_REDIRECT = :card_redirect PAY_LATER = :pay_later WALLET = :wallet BANK_REDIRECT = :bank_redirect BANK_TRANSFER = :bank_transfer CRYPTO = :crypto BANK_DEBIT = :bank_debit REWARD = :reward REAL_TIME_PAYMENT = :real_time_payment UPI = :upi VOUCHER = :voucher GIFT_CARD = :gift_card OPEN_BANKING = :open_banking MOBILE_PAYMENT = :mobile_payment # @!method self.values # @return [Array<Symbol>] end # @see Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item#card class Card < Dodopayments::Internal::Type::BaseModel # @!attribute card_issuing_country # ISO country code alpha2 variant # # @return [Symbol, Dodopayments::Models::CountryCode, nil] optional :card_issuing_country, enum: -> { Dodopayments::CountryCode }, nil?: true # @!attribute card_network # # @return [String, nil] optional :card_network, String, nil?: true # @!attribute card_type # # @return [String, nil] optional :card_type, String, nil?: true # @!attribute expiry_month # # @return [String, nil] optional :expiry_month, String, nil?: true # @!attribute expiry_year # # @return [String, nil] optional :expiry_year, String, nil?: true # @!attribute last4_digits # # @return [String, nil] optional :last4_digits, String, nil?: true # @!method initialize(card_issuing_country: nil, card_network: nil, card_type: nil, expiry_month: nil, expiry_year: nil, last4_digits: nil) # @param card_issuing_country [Symbol, Dodopayments::Models::CountryCode, nil] ISO country code alpha2 variant # # @param card_network [String, nil] # # @param card_type [String, nil] # # @param expiry_month [String, nil] # # @param expiry_year [String, nil] # # @param last4_digits [String, nil] end end |
Instance Attribute Details
#card ⇒ Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card?
34 35 36 |
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 34 optional :card, -> { Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::Card }, nil?: true |
#last_used_at ⇒ Time?
41 |
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 41 optional :last_used_at, Time, nil?: true |
#payment_method ⇒ Symbol, Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod
PaymentMethod enum from hyperswitch
23 24 |
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 23 required :payment_method, enum: -> { Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod } |
#payment_method_id ⇒ String
29 |
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 29 required :payment_method_id, String |
#payment_method_type ⇒ Symbol, ...
46 |
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 46 optional :payment_method_type, enum: -> { Dodopayments::PaymentMethodTypes }, nil?: true |
#recurring_enabled ⇒ Boolean?
51 |
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 51 optional :recurring_enabled, Dodopayments::Internal::Type::Boolean, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/dodopayments/models/customer_retrieve_payment_methods_response.rb', line 94
|