Class: Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::SubscriptionCreateResponse::OneTimeProductCart
- Defined in:
- lib/dodopayments/models/subscription_create_response.rb,
sig/dodopayments/models/subscription_create_response.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(product_id:, quantity:) ⇒ OneTimeProductCart
constructor
A new instance of OneTimeProductCart.
- #to_hash ⇒ { product_id: String, quantity: Integer }
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(product_id:, quantity:) ⇒ OneTimeProductCart
Returns a new instance of OneTimeProductCart.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 114 class OneTimeProductCart < Dodopayments::Internal::Type::BaseModel # @!attribute product_id # # @return [String] required :product_id, String # @!attribute quantity # # @return [Integer] required :quantity, Integer # @!method initialize(product_id:, quantity:) # @param product_id [String] # @param quantity [Integer] end |
Instance Attribute Details
#product_id ⇒ String
118 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 118 required :product_id, String |
#quantity ⇒ Integer
123 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 123 required :quantity, Integer |
Instance Method Details
#to_hash ⇒ { product_id: String, quantity: Integer }
83 |
# File 'sig/dodopayments/models/subscription_create_response.rbs', line 83
def to_hash: -> { product_id: String, quantity: Integer }
|