Class: Stripe::V2::Billing::ContractCreateParams::PricingLine::Pricing

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/contract_create_params.rb

Defined Under Namespace

Classes: PriceDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

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_detailsObject

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

#typeObject

The type of pricing.



531
532
533
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 531

def type
  @type
end