Class: Inttegro::PaymentMethod
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PaymentMethod
- Extended by:
- T::Sig
- Defined in:
- lib/inttegro/payment_method/payment_method.rb,
lib/inttegro/payment_method/base.rb,
lib/inttegro/payment_method/card.rb,
lib/inttegro/payment_method/data.rb,
lib/inttegro/payment_method/page.rb,
lib/inttegro/payment_method/type.rb,
lib/inttegro/payment_method/owner.rb,
lib/inttegro/payment_method/deletion.rb,
lib/inttegro/payment_method/settings.rb,
lib/inttegro/payment_method/supplied.rb,
lib/inttegro/payment_method/data_type.rb,
lib/inttegro/payment_method/questions.rb,
lib/inttegro/payment_method/owner_input.rb,
lib/inttegro/payment_method/bank_account.rb,
lib/inttegro/payment_method/mobile_money.rb,
lib/inttegro/payment_method/page_request.rb,
lib/inttegro/payment_method/type_setting.rb,
lib/inttegro/payment_method/verification.rb,
lib/inttegro/payment_method/owner_address.rb,
lib/inttegro/payment_method/page_response.rb,
lib/inttegro/payment_method/tokenize_base.rb,
lib/inttegro/payment_method/lookup_request.rb,
lib/inttegro/payment_method/update_request.rb,
lib/inttegro/payment_method/archive_request.rb,
lib/inttegro/payment_method/lookup_response.rb,
lib/inttegro/payment_method/update_response.rb,
lib/inttegro/payment_method/activate_request.rb,
lib/inttegro/payment_method/archive_response.rb,
lib/inttegro/payment_method/activate_response.rb,
lib/inttegro/payment_method/data_mobile_money.rb,
lib/inttegro/payment_method/tokenize_response.rb,
lib/inttegro/payment_method/unarchive_request.rb,
lib/inttegro/payment_method/tokenize_base_type.rb,
lib/inttegro/payment_method/unarchive_response.rb,
lib/inttegro/payment_method/disactivate_request.rb,
lib/inttegro/payment_method/owner_input_address.rb,
lib/inttegro/payment_method/disactivate_response.rb,
lib/inttegro/payment_method/get_settings_request.rb,
lib/inttegro/payment_method/update_request_owner.rb,
lib/inttegro/payment_method/get_settings_response.rb,
lib/inttegro/payment_method/update_request_owner_address.rb,
lib/inttegro/payment_method/tokenize_mobile_money_request.rb,
lib/inttegro/payment_method/bank_account_ghana_bank_account.rb,
lib/inttegro/payment_method/tokenize_mobile_money_request_type.rb,
lib/inttegro/payment_method/tokenize_mobile_money_request_mobile_money.rb
Overview
A tokenized payment instrument tied to a customer
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Defined Under Namespace
Classes: ActivateRequest, ActivateResponse, ArchiveRequest, ArchiveResponse, BankAccount, BankAccountGhanaBankAccount, Card, Data, DataMobileMoney, DataType, Deletion, DisactivateRequest, DisactivateResponse, GetSettingsRequest, GetSettingsResponse, LookupRequest, LookupResponse, MobileMoney, Owner, OwnerAddress, OwnerInput, OwnerInputAddress, Page, PageRequest, PageResponse, Settings, Supplied, TokenizeBase, TokenizeBaseType, TokenizeMobileMoneyRequest, TokenizeMobileMoneyRequestMobileMoney, TokenizeMobileMoneyRequestType, TokenizeResponse, Type, TypeSetting, UnarchiveRequest, UnarchiveResponse, UpdateRequest, UpdateRequestOwner, UpdateRequestOwnerAddress, UpdateResponse, Verification
Instance Attribute Summary collapse
-
#active ⇒ Boolean
readonly
Whether this payment method is active and reusable in new payment flows.
-
#archived_at ⇒ Time?
readonly
Timestamp when the payment method was archived.
-
#bank_account ⇒ Inttegro::PaymentMethod::BankAccount?
readonly
Bank account details (present when type is bank_account).
-
#card ⇒ Inttegro::PaymentMethod::Card?
readonly
Card marker.
-
#created_at ⇒ Time
readonly
When this payment method was tokenized.
-
#custom_data ⇒ Inttegro::CustomData?
readonly
Merchant-defined string values attached to a resource.
-
#customer_id ⇒ String
readonly
Customer who owns this payment method.
-
#ephemeral ⇒ Boolean?
readonly
Whether the method is limited to its originating flow and cannot be reused.
-
#expires_on ⇒ Time?
readonly
When this payment method expires.
-
#fingerprint ⇒ String
readonly
Customer-scoped fingerprint for this payment method within the merchant application.
-
#id ⇒ String
readonly
Unique identifier for this payment method.
-
#mobile_money ⇒ Inttegro::PaymentMethod::MobileMoney?
readonly
Masked mobile-money wallet details (present when type is mobile_money).
-
#owner ⇒ Inttegro::PaymentMethod::Owner?
readonly
Owner identity captured during tokenization when provided.
-
#supplied ⇒ Inttegro::PaymentMethod::Supplied?
readonly
Public provenance for how the payment method was supplied.
-
#type ⇒ Inttegro::PaymentMethod::Type
readonly
Payment rail type.
-
#verification ⇒ Inttegro::PaymentMethod::Verification?
readonly
Most recent verification record when the payment method has entered a verification flow.
-
#verified_at ⇒ Time?
readonly
When ownership verification was completed.
Instance Method Summary collapse
-
#archived? ⇒ Boolean
Determine whether the API supplied an archive timestamp.
-
#reusable? ⇒ Boolean
Determine whether the payment method can be treated as reusable by local application code.
-
#verified? ⇒ Boolean
Determine whether the API supplied a verification timestamp.
Instance Attribute Details
#active ⇒ Boolean (readonly)
Whether this payment method is active and reusable in new payment flows
Required in the API payload. Wire name: active.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#archived_at ⇒ Time? (readonly)
Timestamp when the payment method was archived. Omitted while unarchived.
Optional in the API payload; omitted values default to nil. Wire name: archived_at.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#bank_account ⇒ Inttegro::PaymentMethod::BankAccount? (readonly)
Bank account details (present when type is bank_account)
Optional in the API payload; omitted values default to nil. Wire name: bank_account.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#card ⇒ Inttegro::PaymentMethod::Card? (readonly)
Card marker. Nested card credentials are not returned.
Optional in the API payload; omitted values default to nil. Wire name: card.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#created_at ⇒ Time (readonly)
When this payment method was tokenized
Required in the API payload. Wire name: created_at.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#custom_data ⇒ Inttegro::CustomData? (readonly)
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map.
Optional in the API payload; omitted values default to nil. Wire name: custom_data.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#customer_id ⇒ String (readonly)
Customer who owns this payment method
Required in the API payload. Wire name: customer_id.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#ephemeral ⇒ Boolean? (readonly)
Whether the method is limited to its originating flow and cannot be reused.
Optional in the API payload; omitted values default to nil. Wire name: ephemeral.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#expires_on ⇒ Time? (readonly)
When this payment method expires. Omitted when no expiry is available.
Optional in the API payload; omitted values default to nil. Wire name: expires_on.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#fingerprint ⇒ String (readonly)
Customer-scoped fingerprint for this payment method within the merchant application. Matching nonempty values for the same customer indicate the same underlying method was added more than once. May be empty for records awaiting fingerprint backfill or methods lacking reliable fingerprint material. It does not identify the method across customers or applications.
Required in the API payload. Wire name: fingerprint.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#id ⇒ String (readonly)
Unique identifier for this payment method
Required in the API payload. Wire name: id.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#mobile_money ⇒ Inttegro::PaymentMethod::MobileMoney? (readonly)
Masked mobile-money wallet details (present when type is mobile_money)
Optional in the API payload; omitted values default to nil. Wire name: mobile_money.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#owner ⇒ Inttegro::PaymentMethod::Owner? (readonly)
Owner identity captured during tokenization when provided
Optional in the API payload; omitted values default to nil. Wire name: owner.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#supplied ⇒ Inttegro::PaymentMethod::Supplied? (readonly)
Public provenance for how the payment method was supplied.
Optional in the API payload; omitted values default to nil. Wire name: supplied.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#type ⇒ Inttegro::PaymentMethod::Type (readonly)
Payment rail type
Required in the API payload. Wire name: type.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#verification ⇒ Inttegro::PaymentMethod::Verification? (readonly)
Most recent verification record when the payment method has entered a verification flow.
Optional in the API payload; omitted values default to nil. Wire name: verification.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
#verified_at ⇒ Time? (readonly)
When ownership verification was completed
Optional in the API payload; omitted values default to nil. Wire name: verified_at.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/inttegro/payment_method/payment_method.rb', line 131 class PaymentMethod const :active, T::Boolean const :archived_at, T.nilable(Time), default: nil const :bank_account, T.nilable(Inttegro::PaymentMethod::BankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :customer_id, String const :ephemeral, T.nilable(T::Boolean), default: nil const :expires_on, T.nilable(Time), default: nil const :fingerprint, String const :id, String const :mobile_money, T.nilable(Inttegro::PaymentMethod::MobileMoney), default: nil const :owner, T.nilable(Inttegro::PaymentMethod::Owner), default: nil const :type, Inttegro::PaymentMethod::Type const :supplied, T.nilable(Inttegro::PaymentMethod::Supplied), default: nil const :verification, T.nilable(Inttegro::PaymentMethod::Verification), default: nil const :verified_at, T.nilable(Time), default: nil end |
Instance Method Details
#archived? ⇒ Boolean
Determine whether the API supplied an archive timestamp.
12 13 14 |
# File 'lib/inttegro/payment_method/questions.rb', line 12 def archived? !archived_at.nil? end |
#reusable? ⇒ Boolean
Determine whether the payment method can be treated as reusable by local application code.
This predicate requires an active, non-archived, non-ephemeral method. It does not contact the API or guarantee that a future payment attempt will succeed.
31 32 33 |
# File 'lib/inttegro/payment_method/questions.rb', line 31 def reusable? active && !archived? && ephemeral != true end |
#verified? ⇒ Boolean
Determine whether the API supplied a verification timestamp.
20 21 22 |
# File 'lib/inttegro/payment_method/questions.rb', line 20 def verified? !verified_at.nil? end |