Class: Inttegro::Payment::PaymentMethod

Inherits:
T::Struct
  • Object
show all
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

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.

Returns:

  • (Time)


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.

Returns:

  • (String)


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.

Returns:

  • (String)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Time, nil)


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