Class: MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand

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

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

Instance Attribute Details

#account_id ⇒ String

The account this card brand belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :account_id, String

#brands ⇒ Array<MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::Brand>?

Array of card brand entries for this account.

Parameters:

  • value (::Array[MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::Brand], nil)

Returns:



8807
8808
8809
8810
8811
8812
8813
# File 'lib/method_ruby/models/entity.rb', line 8807

optional :brands,
-> do
  MethodRuby::Internal::Type::ArrayOf[
    MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::Brand
  ]
end,
nil?: true

#created_at ⇒ Time

Timestamp when the card brand was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#error ⇒ MethodRuby::Models::ResourceError?

Parameters:

Returns:



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

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

#id ⇒ String

Unique identifier for the card brand.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#issuer ⇒ String?

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

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :issuer, String, nil?: true

#last4 ⇒ String?

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

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :last4, String, nil?: true

#network ⇒ Symbol, ...

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

Parameters:

  • value (MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::network, nil)

Returns:



8836
8837
8838
8839
8840
# File 'lib/method_ruby/models/entity.rb', line 8836

optional :network,
enum: -> {
  MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::Network
},
nil?: true

#shared ⇒ Boolean?

Whether this card brand record is shared.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

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

#source ⇒ Symbol, ...

Source of the card brand data.

Parameters:

  • value (MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::source, nil)

Returns:



8852
8853
8854
8855
8856
# File 'lib/method_ruby/models/entity.rb', line 8852

optional :source,
enum: -> {
  MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::Source
},
nil?: true

#status ⇒ Symbol, MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::Status

Current status of the card brand request.

Parameters:

  • value (MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::status)

Returns:



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

required :status,
enum: -> { MethodRuby::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountClearingResource::CardBrand::AccountCardBrand::Status }

#updated_at ⇒ Time

Timestamp when the card brand was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :updated_at, Time

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


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

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


6698
# File 'sig/method_ruby/models/entity.rbs', line 6698

def to_hash: -> {