Class: Stripe::InvoiceUpcomingLinesService::ListParams::ScheduleDetails::Amendment::DiscountAction

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/invoice_upcoming_lines_service.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.



573
574
575
576
577
578
# File 'lib/stripe/services/invoice_upcoming_lines_service.rb', line 573

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.



562
563
564
# File 'lib/stripe/services/invoice_upcoming_lines_service.rb', line 562

def add
  @add
end

#removeObject

Details of the discount to remove.



565
566
567
# File 'lib/stripe/services/invoice_upcoming_lines_service.rb', line 565

def remove
  @remove
end

#setObject

Details of the discount to replace the existing discounts with.



568
569
570
# File 'lib/stripe/services/invoice_upcoming_lines_service.rb', line 568

def set
  @set
end

#typeObject

Determines the type of discount action.



571
572
573
# File 'lib/stripe/services/invoice_upcoming_lines_service.rb', line 571

def type
  @type
end