Class: Stripe::Invoice::CreateParams::Rendering::Pdf

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(page_size: nil) ⇒ Pdf

Returns a new instance of Pdf.



1368
1369
1370
# File 'lib/stripe/resources/invoice.rb', line 1368

def initialize(page_size: nil)
  @page_size = page_size
end

Instance Attribute Details

#page_sizeObject

Page size for invoice PDF. Can be set to ‘a4`, `letter`, or `auto`.

If set to `auto`, invoice PDF page size defaults to `a4` for customers with
Japanese locale and `letter` for customers with other locales.


1366
1367
1368
# File 'lib/stripe/resources/invoice.rb', line 1366

def page_size
  @page_size
end