Class: Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add::Pricing::PriceDetails
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add::Pricing::PriceDetails
- Defined in:
- lib/stripe/params/v2/billing/contract_update_params.rb
Instance Attribute Summary collapse
-
#price ⇒ Object
The ID of the V1 price.
-
#quantity ⇒ Object
The quantity for the price.
Instance Method Summary collapse
-
#initialize(price: nil, quantity: nil) ⇒ PriceDetails
constructor
A new instance of PriceDetails.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(price: nil, quantity: nil) ⇒ PriceDetails
Returns a new instance of PriceDetails.
88 89 90 91 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 88 def initialize(price: nil, quantity: nil) @price = price @quantity = quantity end |
Instance Attribute Details
#price ⇒ Object
The ID of the V1 price.
84 85 86 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 84 def price @price end |
#quantity ⇒ Object
The quantity for the price. Only applicable for licensed prices.
86 87 88 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 86 def quantity @quantity end |