Class: Dodopayments::Models::Payment::ProductCart
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Payment::ProductCart
- Defined in:
- lib/dodopayments/models/payment.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
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'lib/dodopayments/models/payment.rb', line 334 class ProductCart < 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
338 |
# File 'lib/dodopayments/models/payment.rb', line 338 required :product_id, String |
#quantity ⇒ Integer
343 |
# File 'lib/dodopayments/models/payment.rb', line 343 required :quantity, Integer |