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.
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, field_encodings, new, #to_h
Constructor Details
#initialize(price_details: nil, type: nil) ⇒ Pricing
Returns a new instance of Pricing.
533 534 535 536 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 533 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`.
529 530 531 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 529 def price_details @price_details end |
#type ⇒ Object
The type of pricing.
531 532 533 |
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 531 def type @type end |