Class: Stripe::SubscriptionScheduleAmendParams::Amendment::DiscountAction

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

Defined Under Namespace

Classes: Add, Remove, Set

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(add: nil, remove: nil, set: nil, type: nil) ⇒ DiscountAction

Returns a new instance of DiscountAction.



269
270
271
272
273
274
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 269

def initialize(add: nil, remove: nil, set: nil, type: nil)
  @add = add
  @remove = remove
  @set = set
  @type = type
end

Instance Attribute Details

#addObject

Details of the discount to add.



261
262
263
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 261

def add
  @add
end

#removeObject

Details of the discount to remove.



263
264
265
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 263

def remove
  @remove
end

#setObject

Details of the discount to replace the existing discounts with.



265
266
267
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 265

def set
  @set
end

#typeObject

Determines the type of discount action.



267
268
269
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 267

def type
  @type
end