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.



177
178
179
180
181
182
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 177

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.



169
170
171
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 169

def add
  @add
end

#removeObject

Details of the discount to remove.



171
172
173
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 171

def remove
  @remove
end

#setObject

Details of the discount to replace the existing discounts with.



173
174
175
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 173

def set
  @set
end

#typeObject

Determines the type of discount action.



175
176
177
# File 'lib/stripe/params/subscription_schedule_amend_params.rb', line 175

def type
  @type
end