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
Instance Attribute Summary collapse
Instance Method Summary collapse
- #initialize(product_id:, quantity:) ⇒ Object constructor
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:) ⇒ Object
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 103 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
107 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 107 required :product_id, String |
#quantity ⇒ Integer
112 |
# File 'lib/dodopayments/models/subscription_create_response.rb', line 112 required :quantity, Integer |