Class: Stripe::PaymentPlanUpdateParams::Schedule::AmountsDue::Amount::DueDate

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_plan_update_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(absolute: nil, relative: nil, type: nil) ⇒ DueDate

Returns a new instance of DueDate.



28
29
30
31
32
# File 'lib/stripe/params/payment_plan_update_params.rb', line 28

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

Instance Attribute Details

#absoluteObject

Unix timestamp. Required when type is 'absolute'.



22
23
24
# File 'lib/stripe/params/payment_plan_update_params.rb', line 22

def absolute
  @absolute
end

#relativeObject

Required when type is 'relative'.



24
25
26
# File 'lib/stripe/params/payment_plan_update_params.rb', line 24

def relative
  @relative
end

#typeObject

Either 'absolute' or 'relative'.



26
27
28
# File 'lib/stripe/params/payment_plan_update_params.rb', line 26

def type
  @type
end