Class: Stripe::V2::Billing::ContractCreateParams::PricingOverride::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.



577
578
579
580
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 577

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`.



573
574
575
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 573

def timestamp
  @timestamp
end

#typeObject

The type of the ends_at.



575
576
577
# File 'lib/stripe/params/v2/billing/contract_create_params.rb', line 575

def type
  @type
end