Class: Stripe::V2::Billing::ContractCreateParams::PricingLine::EndsAt

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

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(timestamp: nil, type: nil) ⇒ EndsAt

Returns a new instance of EndsAt.



146
147
148
149
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 146

def initialize(timestamp: nil, type: nil)
  @timestamp = timestamp
  @type = type
end

Instance Attribute Details

#timestampObject

The timestamp when the item ends. Required if type is timestamp.



142
143
144
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 142

def timestamp
  @timestamp
end

#typeObject

The type of the ends_at.



144
145
146
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 144

def type
  @type
end