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
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/dodopayments/models/payment.rb', line 312 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
316 |
# File 'lib/dodopayments/models/payment.rb', line 316 required :product_id, String |
#quantity ⇒ Integer
321 |
# File 'lib/dodopayments/models/payment.rb', line 321 required :quantity, Integer |