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.



1152
1153
1154
1155
# File 'lib/stripe/resources/invoice.rb', line 1152

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



1148
1149
1150
# File 'lib/stripe/resources/invoice.rb', line 1148

def action
  @action
end

#invoiceObject

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



1150
1151
1152
# File 'lib/stripe/resources/invoice.rb', line 1150

def invoice
  @invoice
end