Class: Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add::Pricing
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractUpdateParams::PricingLineAction::Add::Pricing
- Defined in:
- lib/stripe/params/v2/billing/contract_update_params.rb
Defined Under Namespace
Classes: PriceDetails
Instance Attribute Summary collapse
-
#price_details ⇒ Object
V1 price details.
-
#type ⇒ Object
The type of pricing.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(price_details: nil, type: nil) ⇒ Pricing
constructor
A new instance of Pricing.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(price_details: nil, type: nil) ⇒ Pricing
Returns a new instance of Pricing.
145 146 147 148 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 145 def initialize(price_details: nil, type: nil) @price_details = price_details @type = type end |
Instance Attribute Details
#price_details ⇒ Object
V1 price details. Required if type is price.
141 142 143 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 141 def price_details @price_details end |
#type ⇒ Object
The type of pricing.
143 144 145 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 143 def type @type end |
Class Method Details
.field_encodings ⇒ Object
150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/stripe/params/v2/billing/contract_update_params.rb', line 150 def self.field_encodings @field_encodings = { price_details: { kind: :object, fields: { quantity_changes: { kind: :array, element: { kind: :object, fields: { set: :decimal_string } }, }, }, }, } end |