Class: Stripe::Invoice::CreateParams::FromInvoice

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(action: nil, invoice: nil) ⇒ FromInvoice

Returns a new instance of FromInvoice.



1767
1768
1769
1770
# File 'lib/stripe/resources/invoice.rb', line 1767

def initialize(action: nil, invoice: nil)
  @action = action
  @invoice = invoice
end

Instance Attribute Details

#actionObject

The relation between the new invoice and the original invoice. Currently, only ‘revision’ is permitted



1763
1764
1765
# File 'lib/stripe/resources/invoice.rb', line 1763

def action
  @action
end

#invoiceObject

The ‘id` of the invoice that will be cloned.



1765
1766
1767
# File 'lib/stripe/resources/invoice.rb', line 1765

def invoice
  @invoice
end