Class: MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/account_create_response.rb,
sig/method_ruby/models/account_create_response.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/account_create_response.rb', line 7893

Instance Attribute Details

#account_id ⇒ String

The account this card brand belongs to.

Parameters:

  • value (String)

Returns:

  • (String)


7821
# File 'lib/method_ruby/models/account_create_response.rb', line 7821

required :account_id, String

#brands ⇒ Array<MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::Brand>?

Array of card brand entries for this account.



7846
7847
7848
7849
7850
7851
7852
# File 'lib/method_ruby/models/account_create_response.rb', line 7846

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

#created_at ⇒ Time

Timestamp when the card brand was created.

Parameters:

  • value (Time)

Returns:

  • (Time)


7827
# File 'lib/method_ruby/models/account_create_response.rb', line 7827

required :created_at, Time

#error ⇒ MethodRuby::Models::ResourceError?

Parameters:

Returns:



7857
# File 'lib/method_ruby/models/account_create_response.rb', line 7857

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

#id ⇒ String

Unique identifier for the card brand.

Parameters:

  • value (String)

Returns:

  • (String)


7815
# File 'lib/method_ruby/models/account_create_response.rb', line 7815

required :id, String

#issuer ⇒ String?

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

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


7863
# File 'lib/method_ruby/models/account_create_response.rb', line 7863

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)


7869
# File 'lib/method_ruby/models/account_create_response.rb', line 7869

optional :last4, String, nil?: true

#network ⇒ Symbol, ...

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

Parameters:

  • value (MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::network, nil)

Returns:



7875
7876
7877
# File 'lib/method_ruby/models/account_create_response.rb', line 7875

optional :network,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::Network },
nil?: true

#shared ⇒ Boolean?

Whether this card brand record is shared.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


7883
# File 'lib/method_ruby/models/account_create_response.rb', line 7883

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

#source ⇒ Symbol, ...

Source of the card brand data.

Parameters:

  • value (MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::source, nil)

Returns:



7889
7890
7891
# File 'lib/method_ruby/models/account_create_response.rb', line 7889

optional :source,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::Source },
nil?: true

#status ⇒ Symbol, MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::Status

Current status of the card brand request.

Parameters:

  • value (MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::status)

Returns:



7833
7834
# File 'lib/method_ruby/models/account_create_response.rb', line 7833

required :status,
enum: -> { MethodRuby::Models::AccountCreateResponse::Data::AccountClearingResource::CardBrand::AccountCardBrand::Status }

#updated_at ⇒ Time

Timestamp when the card brand was last updated.

Parameters:

  • value (Time)

Returns:

  • (Time)


7840
# File 'lib/method_ruby/models/account_create_response.rb', line 7840

required :updated_at, Time

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/method_ruby/models/account_create_response.rb', line 7930

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


6115
# File 'sig/method_ruby/models/account_create_response.rbs', line 6115

def to_hash: -> {