Class: Stripe::ProductCatalog::TrialOfferCreateParams::Duration

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/product_catalog/trial_offer_create_params.rb

Defined Under Namespace

Classes: Relative

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(relative: nil, type: nil) ⇒ Duration

Returns a new instance of Duration.



21
22
23
24
# File 'lib/stripe/params/product_catalog/trial_offer_create_params.rb', line 21

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

Instance Attribute Details

#relativeObject

The relative duration of the trial period computed as the number of recurring price intervals.



17
18
19
# File 'lib/stripe/params/product_catalog/trial_offer_create_params.rb', line 17

def relative
  @relative
end

#typeObject

Specifies how the trial offer duration is determined.



19
20
21
# File 'lib/stripe/params/product_catalog/trial_offer_create_params.rb', line 19

def type
  @type
end