Class: Stripe::InvoiceCreateParams::FromInvoice

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/invoice_create_params.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.



62
63
64
65
# File 'lib/stripe/params/invoice_create_params.rb', line 62

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



58
59
60
# File 'lib/stripe/params/invoice_create_params.rb', line 58

def action
  @action
end

#invoiceObject

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



60
61
62
# File 'lib/stripe/params/invoice_create_params.rb', line 60

def invoice
  @invoice
end