Class: Stripe::InvoiceRemoveLinesParams::Line

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(behavior: nil, id: nil) ⇒ Line

Returns a new instance of Line.



12
13
14
15
# File 'lib/stripe/params/invoice_remove_lines_params.rb', line 12

def initialize(behavior: nil, id: nil)
  @behavior = behavior
  @id = id
end

Instance Attribute Details

#behaviorObject

Either ‘delete` or `unassign`. Deleted line items are permanently deleted. Unassigned line items can be reassigned to an invoice.



8
9
10
# File 'lib/stripe/params/invoice_remove_lines_params.rb', line 8

def behavior
  @behavior
end

#idObject

ID of an existing line item to remove from this invoice.



10
11
12
# File 'lib/stripe/params/invoice_remove_lines_params.rb', line 10

def id
  @id
end