Class: Stripe::QuoteUpdateParams::Line::Action

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/quote_update_params.rb

Defined Under Namespace

Classes: AddDiscount, AddItem, RemoveDiscount, RemoveItem, SetDiscount, SetItem

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(add_discount: nil, add_item: nil, add_metadata: nil, remove_discount: nil, remove_item: nil, remove_metadata: nil, set_discounts: nil, set_items: nil, set_metadata: nil, type: nil) ⇒ Action

Returns a new instance of Action.



565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
# File 'lib/stripe/params/quote_update_params.rb', line 565

def initialize(
  add_discount: nil,
  add_item: nil,
  add_metadata: nil,
  remove_discount: nil,
  remove_item: nil,
  remove_metadata: nil,
  set_discounts: nil,
  set_items: nil,
  set_metadata: nil,
  type: nil
)
  @add_discount = add_discount
  @add_item = add_item
  @add_metadata = 
  @remove_discount = remove_discount
  @remove_item = remove_item
  @remove_metadata = 
  @set_discounts = set_discounts
  @set_items = set_items
  @set_metadata = 
  @type = type
end

Instance Attribute Details

#add_discountObject

Details for the ‘add_discount` type.



545
546
547
# File 'lib/stripe/params/quote_update_params.rb', line 545

def add_discount
  @add_discount
end

#add_itemObject

Details for the ‘add_item` type.



547
548
549
# File 'lib/stripe/params/quote_update_params.rb', line 547

def add_item
  @add_item
end

#add_metadataObject

Details for the ‘add_metadata` type: specify a hash of key-value pairs.



549
550
551
# File 'lib/stripe/params/quote_update_params.rb', line 549

def 
  @add_metadata
end

#remove_discountObject

Details for the ‘remove_discount` type.



551
552
553
# File 'lib/stripe/params/quote_update_params.rb', line 551

def remove_discount
  @remove_discount
end

#remove_itemObject

Details for the ‘remove_item` type.



553
554
555
# File 'lib/stripe/params/quote_update_params.rb', line 553

def remove_item
  @remove_item
end

#remove_metadataObject

Details for the ‘remove_metadata` type: specify an array of metadata keys.



555
556
557
# File 'lib/stripe/params/quote_update_params.rb', line 555

def 
  @remove_metadata
end

#set_discountsObject

Details for the ‘set_discounts` type.



557
558
559
# File 'lib/stripe/params/quote_update_params.rb', line 557

def set_discounts
  @set_discounts
end

#set_itemsObject

Details for the ‘set_items` type.



559
560
561
# File 'lib/stripe/params/quote_update_params.rb', line 559

def set_items
  @set_items
end

#set_metadataObject

Details for the ‘set_metadata` type: specify an array of key-value pairs.



561
562
563
# File 'lib/stripe/params/quote_update_params.rb', line 561

def 
  @set_metadata
end

#typeObject

The type of action the quote line performs.



563
564
565
# File 'lib/stripe/params/quote_update_params.rb', line 563

def type
  @type
end