Class: Dodopayments::Models::OneTimeProductCartItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::OneTimeProductCartItem
- Defined in:
- lib/dodopayments/models/one_time_product_cart_item.rb
Instance Attribute Summary collapse
-
#amount ⇒ Integer?
Amount the customer pays if pay_what_you_want is enabled.
- #product_id ⇒ String
- #quantity ⇒ Integer
Instance Method Summary collapse
-
#initialize(product_id: , quantity: , amount: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see OneTimeProductCartItem for more details.
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: , amount: nil) ⇒ Object
Some parameter documentations has been truncated, see Dodopayments::Models::OneTimeProductCartItem for more details.
|
|
# File 'lib/dodopayments/models/one_time_product_cart_item.rb', line 24
|
Instance Attribute Details
#amount ⇒ Integer?
Amount the customer pays if pay_what_you_want is enabled. If disabled then amount will be ignored Represented in the lowest denomination of the currency (e.g., cents for USD). For example, to charge $1.00, pass ‘100`.
22 |
# File 'lib/dodopayments/models/one_time_product_cart_item.rb', line 22 optional :amount, Integer, nil?: true |
#product_id ⇒ String
9 |
# File 'lib/dodopayments/models/one_time_product_cart_item.rb', line 9 required :product_id, String |
#quantity ⇒ Integer
14 |
# File 'lib/dodopayments/models/one_time_product_cart_item.rb', line 14 required :quantity, Integer |