Class: Stripe::V2::Billing::ContractCreateParams::PricingLine::Pricing
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::ContractCreateParams::PricingLine::Pricing
- Defined in:
- lib/stripe/params/v2/billing/contract_create_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.
275 276 277 278 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 275 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.
271 272 273 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 271 def price_details @price_details end |
#type ⇒ Object
The type of pricing.
273 274 275 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 273 def type @type end |
Class Method Details
.field_encodings ⇒ Object
280 281 282 283 284 285 286 287 288 289 290 291 292 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 280 def self.field_encodings @field_encodings = { price_details: { kind: :object, fields: { quantity_changes: { kind: :array, element: { kind: :object, fields: { set: :decimal_string } }, }, }, }, } end |