Class: Dodopayments::Models::Payment::ProductCart
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Payment::ProductCart
- Defined in:
- lib/dodopayments/models/payment.rb,
sig/dodopayments/models/payment.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(product_id:, quantity:) ⇒ ProductCart
constructor
A new instance of ProductCart.
- #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:) ⇒ ProductCart
Returns a new instance of ProductCart.
|
|
# File 'lib/dodopayments/models/payment.rb', line 371
|
Instance Attribute Details
#product_id ⇒ String
364 |
# File 'lib/dodopayments/models/payment.rb', line 364 required :product_id, String |
#quantity ⇒ Integer
369 |
# File 'lib/dodopayments/models/payment.rb', line 369 required :quantity, Integer |
Instance Method Details
#to_hash ⇒ { product_id: String, quantity: Integer }
230 |
# File 'sig/dodopayments/models/payment.rbs', line 230
def to_hash: -> { product_id: String, quantity: Integer }
|