Class: Stripe::InvoiceService::FinalizeInvoiceParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/invoice_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(auto_advance: nil, expand: nil) ⇒ FinalizeInvoiceParams

Returns a new instance of FinalizeInvoiceParams.



1711
1712
1713
1714
# File 'lib/stripe/services/invoice_service.rb', line 1711

def initialize(auto_advance: nil, expand: nil)
  @auto_advance = auto_advance
  @expand = expand
end

Instance Attribute Details

#auto_advanceObject

Controls whether Stripe performs [automatic collection](stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If ‘false`, the invoice’s state doesn’t automatically advance without an explicit action.



1707
1708
1709
# File 'lib/stripe/services/invoice_service.rb', line 1707

def auto_advance
  @auto_advance
end

#expandObject

Specifies which fields in the response should be expanded.



1709
1710
1711
# File 'lib/stripe/services/invoice_service.rb', line 1709

def expand
  @expand
end