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.



1311
1312
1313
1314
# File 'lib/stripe/resources/invoice.rb', line 1311

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



1307
1308
1309
# File 'lib/stripe/resources/invoice.rb', line 1307

def action
  @action
end

#invoiceObject

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



1309
1310
1311
# File 'lib/stripe/resources/invoice.rb', line 1309

def invoice
  @invoice
end