Class: Dodopayments::Models::AddonResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::AddonResponse
- Defined in:
- lib/dodopayments/models/addon_response.rb
Overview
Instance Attribute Summary collapse
-
#business_id ⇒ String
Unique identifier for the business to which the addon belongs.
-
#created_at ⇒ Time
Created time.
-
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency of the Addon.
-
#description ⇒ String?
Optional description of the Addon.
-
#id ⇒ String
id of the Addon.
-
#image ⇒ String?
Image of the Addon.
-
#name ⇒ String
Name of the Addon.
-
#price ⇒ Integer
Amount of the addon.
-
#tax_category ⇒ Symbol, Dodopayments::Models::TaxCategory
Tax category applied to this Addon.
-
#updated_at ⇒ Time
Updated time.
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: , business_id: , created_at: , currency: , name: , price: , tax_category: , updated_at: , description: nil, image: nil) ⇒ Object
|
|
# File 'lib/dodopayments/models/addon_response.rb', line 67
|
Instance Attribute Details
#business_id ⇒ String
Unique identifier for the business to which the addon belongs.
17 |
# File 'lib/dodopayments/models/addon_response.rb', line 17 required :business_id, String |
#created_at ⇒ Time
Created time
23 |
# File 'lib/dodopayments/models/addon_response.rb', line 23 required :created_at, Time |
#currency ⇒ Symbol, Dodopayments::Models::Currency
Currency of the Addon
29 |
# File 'lib/dodopayments/models/addon_response.rb', line 29 required :currency, enum: -> { Dodopayments::Currency } |
#description ⇒ String?
Optional description of the Addon
59 |
# File 'lib/dodopayments/models/addon_response.rb', line 59 optional :description, String, nil?: true |
#id ⇒ String
id of the Addon
11 |
# File 'lib/dodopayments/models/addon_response.rb', line 11 required :id, String |
#image ⇒ String?
Image of the Addon
65 |
# File 'lib/dodopayments/models/addon_response.rb', line 65 optional :image, String, nil?: true |
#name ⇒ String
Name of the Addon
35 |
# File 'lib/dodopayments/models/addon_response.rb', line 35 required :name, String |
#price ⇒ Integer
Amount of the addon
41 |
# File 'lib/dodopayments/models/addon_response.rb', line 41 required :price, Integer |
#tax_category ⇒ Symbol, Dodopayments::Models::TaxCategory
Tax category applied to this Addon
47 |
# File 'lib/dodopayments/models/addon_response.rb', line 47 required :tax_category, enum: -> { Dodopayments::TaxCategory } |
#updated_at ⇒ Time
Updated time
53 |
# File 'lib/dodopayments/models/addon_response.rb', line 53 required :updated_at, Time |