Class: MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountACHResource::CardBrand::AccountCardBrand

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

Defined Under Namespace

Modules: Network, Source, Status Classes: Brand

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(id: nil, card_product_id: nil, description: nil, issuer: nil, name: nil, network: nil, network_tier: nil, type: nil, url: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    Unique identifier for the brand entry.

  • card_product_id (String, nil) (defaults to: nil)

    Associated card product ID.

  • description (String) (defaults to: nil)

    Description of the brand.

  • issuer (String) (defaults to: nil)

    The card issuer.

  • name (String) (defaults to: nil)

    Name of the brand.

  • network (String) (defaults to: nil)

    The card network.

  • network_tier (String) (defaults to: nil)

    The tier of the card network.

  • type (String, nil) (defaults to: nil)

    The brand type.

  • url (String) (defaults to: nil)

    URL for the brand image.



# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 726

Instance Attribute Details

#account_idString

The account this card brand belongs to.

Returns:

  • (String)


654
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 654

required :account_id, String

#brandsArray<MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountACHResource::CardBrand::AccountCardBrand::Brand>?

Array of card brand entries for this account.



679
680
681
682
683
684
685
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 679

optional :brands,
-> do
  MethodRuby::Internal::Type::ArrayOf[
    MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountACHResource::CardBrand::AccountCardBrand::Brand
  ]
end,
nil?: true

#created_atTime

Timestamp when the card brand was created.

Returns:

  • (Time)


660
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 660

required :created_at, Time

#errorMethodRuby::Models::ResourceError?



690
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 690

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

#idString

Unique identifier for the card brand.

Returns:

  • (String)


648
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 648

required :id, String

#issuerString?

The card issuer. Deprecated in favor of brands[].issuer.

Returns:

  • (String, nil)


696
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 696

optional :issuer, String, nil?: true

#last4String?

Last 4 digits of the card number. Deprecated in favor of brands[].

Returns:

  • (String, nil)


702
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 702

optional :last4, String, nil?: true

#networkSymbol, ...

The card network. Deprecated in favor of brands[].network.



708
709
710
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 708

optional :network,
enum: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountACHResource::CardBrand::AccountCardBrand::Network },
nil?: true

#sharedBoolean?

Whether this card brand record is shared.

Returns:

  • (Boolean, nil)


716
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 716

optional :shared, MethodRuby::Internal::Type::Boolean

#sourceSymbol, ...

Source of the card brand data.



722
723
724
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 722

optional :source,
enum: -> { MethodRuby::Models::Accounts::ConsentWithdrawResponse::Data::AccountACHResource::CardBrand::AccountCardBrand::Source },
nil?: true

#updated_atTime

Timestamp when the card brand was last updated.

Returns:

  • (Time)


673
# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 673

required :updated_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/method_ruby/models/accounts/consent_withdraw_response.rb', line 763