Class: Inttegro::Payment::PaymentMethod
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Payment::PaymentMethod
- Defined in:
- lib/inttegro/payment/payment_method.rb
Overview
Typed representation of the payment method object in the Inttegro API.
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.
Instance Attribute Summary collapse
-
#bank_account ⇒ Inttegro::Payment::MethodSnapshotBankAccount?
readonly
Value of the
bank_accountfield in the Inttegro API payload. -
#card ⇒ Inttegro::PaymentMethod::Card?
readonly
Card marker.
-
#created_at ⇒ Time
readonly
Value of the
created_atfield in the Inttegro API payload. -
#customer_id ⇒ String
readonly
Value of the
customer_idfield in the Inttegro API payload. -
#id ⇒ String
readonly
Value of the
idfield in the Inttegro API payload. -
#mobile_money ⇒ Inttegro::Payment::MethodSnapshotMobileMoney?
readonly
Value of the
mobile_moneyfield in the Inttegro API payload. -
#owner ⇒ Inttegro::Payment::MethodSnapshotOwner?
readonly
Value of the
ownerfield in the Inttegro API payload. -
#type ⇒ Inttegro::PaymentMethod::Type
readonly
Value of the
typefield in the Inttegro API payload. -
#verified ⇒ Boolean
readonly
Value of the
verifiedfield in the Inttegro API payload. -
#verified_at ⇒ Time?
readonly
Value of the
verified_atfield in the Inttegro API payload.
Instance Attribute Details
#bank_account ⇒ Inttegro::Payment::MethodSnapshotBankAccount? (readonly)
Value of the bank_account field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: bank_account.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean 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.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#created_at ⇒ Time (readonly)
Value of the created_at field in the Inttegro API payload.
Required in the API payload. Wire name: created_at.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#customer_id ⇒ String (readonly)
Value of the customer_id field in the Inttegro API payload.
Required in the API payload. Wire name: customer_id.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#id ⇒ String (readonly)
Value of the id field in the Inttegro API payload.
Required in the API payload. Wire name: id.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#mobile_money ⇒ Inttegro::Payment::MethodSnapshotMobileMoney? (readonly)
Value of the mobile_money field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: mobile_money.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#owner ⇒ Inttegro::Payment::MethodSnapshotOwner? (readonly)
Value of the owner field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: owner.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#type ⇒ Inttegro::PaymentMethod::Type (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#verified ⇒ Boolean (readonly)
Value of the verified field in the Inttegro API payload.
Required in the API payload. Wire name: verified.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |
#verified_at ⇒ Time? (readonly)
Value of the verified_at field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: verified_at.
82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/inttegro/payment/payment_method.rb', line 82 class PaymentMethod < T::Struct const :id, String const :bank_account, T.nilable(Inttegro::Payment::MethodSnapshotBankAccount), default: nil const :card, T.nilable(Inttegro::PaymentMethod::Card), default: nil const :created_at, Time const :customer_id, String const :mobile_money, T.nilable(Inttegro::Payment::MethodSnapshotMobileMoney), default: nil const :owner, T.nilable(Inttegro::Payment::MethodSnapshotOwner), default: nil const :type, Inttegro::PaymentMethod::Type const :verified, T::Boolean const :verified_at, T.nilable(Time), default: nil end |