Class: Stripe::InvoiceCreatePreviewParams::ScheduleDetails::Amendment::DiscountAction

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

Defined Under Namespace

Classes: Add, Remove, Set

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, new, #to_h

Constructor Details

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

Returns a new instance of DiscountAction.



669
670
671
672
673
674
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 669

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.



661
662
663
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 661

def add
  @add
end

#removeObject

Details of the discount to remove.



663
664
665
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 663

def remove
  @remove
end

#setObject

Details of the discount to replace the existing discounts with.



665
666
667
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 665

def set
  @set
end

#typeObject

Determines the type of discount action.



667
668
669
# File 'lib/stripe/params/invoice_create_preview_params.rb', line 667

def type
  @type
end