Class: MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/entity.rb

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/entity.rb', line 6607

Instance Attribute Details

#account_idString

The account this payment instrument belongs to.

Returns:

  • (String)


6538
# File 'lib/method_ruby/models/entity.rb', line 6538

required :account_id, String

#cardMethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Card?

Card details. Present when type is card.



6570
6571
6572
6573
6574
# File 'lib/method_ruby/models/entity.rb', line 6570

optional :card,
-> {
  MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Card
},
nil?: true

#chargeableBoolean?

Whether this payment instrument is currently chargeable.

Returns:

  • (Boolean, nil)


6580
# File 'lib/method_ruby/models/entity.rb', line 6580

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

#created_atTime

Timestamp when the payment instrument was created.

Returns:

  • (Time)


6544
# File 'lib/method_ruby/models/entity.rb', line 6544

required :created_at, Time

#errorMethodRuby::Models::ResourceError?



6585
# File 'lib/method_ruby/models/entity.rb', line 6585

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

#idString

Unique identifier for the payment instrument.

Returns:

  • (String)


6532
# File 'lib/method_ruby/models/entity.rb', line 6532

required :id, String

#inbound_achwire_paymentMethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::InboundAchwirePayment?

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



6591
6592
6593
6594
6595
# File 'lib/method_ruby/models/entity.rb', line 6591

optional :inbound_achwire_payment,
-> {
  MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::InboundAchwirePayment
},
nil?: true

#network_tokenMethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::NetworkToken?

Network token details. Present when type is network_token.



6601
6602
6603
6604
6605
# File 'lib/method_ruby/models/entity.rb', line 6601

optional :network_token,
-> {
  MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::NetworkToken
},
nil?: true

#statusSymbol, MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Status

Current status of the payment instrument.



6550
6551
# File 'lib/method_ruby/models/entity.rb', line 6550

required :status,
enum: -> { MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Status }

#typeSymbol, MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Type

The type of payment instrument.



6557
6558
# File 'lib/method_ruby/models/entity.rb', line 6557

required :type,
enum: -> { MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountLiabilityResource::PaymentInstrument::AccountPaymentInstrument::Type }

#updated_atTime

Timestamp when the payment instrument was last updated.

Returns:

  • (Time)


6564
# File 'lib/method_ruby/models/entity.rb', line 6564

required :updated_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/method_ruby/models/entity.rb', line 6642