Class: MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/account_retrieve_response.rb,
sig/method_ruby/models/account_retrieve_response.rbs

Defined Under Namespace

Modules: Status, Type Classes: Card, InboundAchwirePayment, NetworkToken

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(account_number: nil, routing_number: nil) ⇒ Object

ACH/wire payment details. Present when type is inbound_achwire_payment.

Parameters:

  • account_number (String) (defaults to: nil) —

    The account number.

  • routing_number (String) (defaults to: nil) —

    The routing number.



# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2101

Instance Attribute Details

#account_id ⇒ String

The account this payment instrument belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


2038
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2038

required :account_id, String

#card ⇒ MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::Card?

Card details. Present when type is card.



2070
2071
2072
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2070

optional :card,
-> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::Card },
nil?: true

#chargeable ⇒ Boolean?

Whether this payment instrument is currently chargeable.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


2078
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2078

optional :chargeable, MethodRuby::Internal::Type::Boolean

#created_at ⇒ Time

Timestamp when the payment instrument was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


2044
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2044

required :created_at, Time

#error ⇒ MethodRuby::Models::ResourceError?

Parameters:

Returns:



2083
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2083

optional :error, -> { MethodRuby::ResourceError }, nil?: true

#id ⇒ String

Unique identifier for the payment instrument.

Parameters:

  • value (String)

Returns:

  • (String)


2032
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2032

required :id, String

#inbound_achwire_payment ⇒ MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::InboundAchwirePayment?

ACH/wire payment details. Present when type is inbound_achwire_payment.



2089
2090
2091
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2089

optional :inbound_achwire_payment,
-> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::InboundAchwirePayment },
nil?: true

#network_token ⇒ MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::NetworkToken?

Network token details. Present when type is network_token.



2097
2098
2099
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2097

optional :network_token,
-> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::NetworkToken },
nil?: true

#status ⇒ Symbol, MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::Status

Current status of the payment instrument.

Parameters:

  • value (MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::status)

Returns:



2050
2051
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2050

required :status,
enum: -> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::Status }

#type ⇒ Symbol, MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::Type

The type of payment instrument.

Parameters:

  • value (MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::type_)

Returns:



2057
2058
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2057

required :type,
enum: -> { MethodRuby::Models::AccountRetrieveResponse::Data::AccountACHResource::PaymentInstrument::AccountPaymentInstrument::Type }

#updated_at ⇒ Time

Timestamp when the payment instrument was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


2064
# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2064

required :updated_at, Time

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/method_ruby/models/account_retrieve_response.rb', line 2136

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


1666
# File 'sig/method_ruby/models/account_retrieve_response.rbs', line 1666

def to_hash: -> {