Class: Dodopayments::Models::Brand

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/brand.rb

Overview

Defined Under Namespace

Modules: VerificationStatus

Instance Attribute 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(brand_id: , business_id: , enabled: , statement_descriptor: , verification_enabled: , verification_status: , description: nil, image: nil, name: nil, reason_for_hold: nil, support_email: nil, url: nil) ⇒ Object

Parameters:

  • brand_id (String) (defaults to: )
  • business_id (String) (defaults to: )
  • enabled (Boolean) (defaults to: )
  • statement_descriptor (String) (defaults to: )
  • verification_enabled (Boolean) (defaults to: )
  • verification_status (Symbol, Dodopayments::Models::Brand::VerificationStatus) (defaults to: )
  • description (String, nil) (defaults to: nil)
  • image (String, nil) (defaults to: nil)
  • name (String, nil) (defaults to: nil)
  • reason_for_hold (String, nil) (defaults to: nil)

    Incase the brand verification fails or is put on hold

  • support_email (String, nil) (defaults to: nil)
  • url (String, nil) (defaults to: nil)


# File 'lib/dodopayments/models/brand.rb', line 68


Instance Attribute Details

#brand_idString

Returns:

  • (String)


10
# File 'lib/dodopayments/models/brand.rb', line 10

required :brand_id, String

#business_idString

Returns:

  • (String)


15
# File 'lib/dodopayments/models/brand.rb', line 15

required :business_id, String

#descriptionString?

Returns:

  • (String, nil)


40
# File 'lib/dodopayments/models/brand.rb', line 40

optional :description, String, nil?: true

#enabledBoolean

Returns:

  • (Boolean)


20
# File 'lib/dodopayments/models/brand.rb', line 20

required :enabled, Dodopayments::Internal::Type::Boolean

#imageString?

Returns:

  • (String, nil)


45
# File 'lib/dodopayments/models/brand.rb', line 45

optional :image, String, nil?: true

#nameString?

Returns:

  • (String, nil)


50
# File 'lib/dodopayments/models/brand.rb', line 50

optional :name, String, nil?: true

#reason_for_holdString?

Incase the brand verification fails or is put on hold

Returns:

  • (String, nil)


56
# File 'lib/dodopayments/models/brand.rb', line 56

optional :reason_for_hold, String, nil?: true

#statement_descriptorString

Returns:

  • (String)


25
# File 'lib/dodopayments/models/brand.rb', line 25

required :statement_descriptor, String

#support_emailString?

Returns:

  • (String, nil)


61
# File 'lib/dodopayments/models/brand.rb', line 61

optional :support_email, String, nil?: true

#urlString?

Returns:

  • (String, nil)


66
# File 'lib/dodopayments/models/brand.rb', line 66

optional :url, String, nil?: true

#verification_enabledBoolean

Returns:

  • (Boolean)


30
# File 'lib/dodopayments/models/brand.rb', line 30

required :verification_enabled, Dodopayments::Internal::Type::Boolean

#verification_statusSymbol, Dodopayments::Models::Brand::VerificationStatus



35
# File 'lib/dodopayments/models/brand.rb', line 35

required :verification_status, enum: -> { Dodopayments::Brand::VerificationStatus }