From 9115c65941d999cb4d8da050d5b967628bbc5bfd Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:11:03 -0700 Subject: [PATCH] Update generated code (#1745) * Update generated code for v1254 * Update generated code for v1261 * Update generated code for v1266 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/ErrorObject.php | 1 + lib/Invoice.php | 1 + lib/InvoiceRenderingTemplate.php | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ad548b855..1f205edf7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1260 \ No newline at end of file +v1266 \ No newline at end of file diff --git a/lib/ErrorObject.php b/lib/ErrorObject.php index 4c3b04b40..a7268d39c 100644 --- a/lib/ErrorObject.php +++ b/lib/ErrorObject.php @@ -203,6 +203,7 @@ class ErrorObject extends StripeObject const CODE_TERMINAL_LOCATION_COUNTRY_UNSUPPORTED = 'terminal_location_country_unsupported'; const CODE_TERMINAL_READER_BUSY = 'terminal_reader_busy'; const CODE_TERMINAL_READER_HARDWARE_FAULT = 'terminal_reader_hardware_fault'; + const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_ACTIVATION = 'terminal_reader_invalid_location_for_activation'; const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_PAYMENT = 'terminal_reader_invalid_location_for_payment'; const CODE_TERMINAL_READER_OFFLINE = 'terminal_reader_offline'; const CODE_TERMINAL_READER_TIMEOUT = 'terminal_reader_timeout'; diff --git a/lib/Invoice.php b/lib/Invoice.php index 499848796..e15ada76d 100644 --- a/lib/Invoice.php +++ b/lib/Invoice.php @@ -53,6 +53,7 @@ * @property bool $attempted Whether an attempt has been made to pay the invoice. An invoice is not attempted until 1 hour after the invoice.created webhook, for example, so you might not want to display that invoice as unpaid to your users. * @property null|bool $auto_advance Controls whether Stripe performs automatic collection of the invoice. If false, the invoice's state doesn't automatically advance without an explicit action. * @property \Stripe\StripeObject $automatic_tax + * @property null|int $automatically_finalizes_at The time when this invoice is currently scheduled to be automatically finalized. The field will be null if the invoice is not scheduled to finalize in the future. If the invoice is not in the draft state, this field will always be null - see finalized_at for the time when an already-finalized invoice was finalized. * @property null|string $billing_reason

Indicates the reason why the invoice was created.

* manual: Unrelated to a subscription, for example, created via the invoice editor. * subscription: No longer in use. Applies to subscriptions from before May 2018 where no distinction was made between updates, cycles, and thresholds. * subscription_create: A new subscription was created. * subscription_cycle: A subscription advanced into a new period. * subscription_threshold: A subscription reached a billing threshold. * subscription_update: A subscription was updated. * upcoming: Reserved for simulated invoices, per the upcoming invoice endpoint.

* @property null|string|\Stripe\Charge $charge ID of the latest charge generated for this invoice, if any. * @property string $collection_method Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. diff --git a/lib/InvoiceRenderingTemplate.php b/lib/InvoiceRenderingTemplate.php index 576fd5945..f6ca508fd 100644 --- a/lib/InvoiceRenderingTemplate.php +++ b/lib/InvoiceRenderingTemplate.php @@ -5,6 +5,9 @@ namespace Stripe; /** + * Invoice Rendering Templates are used to configure how invoices are rendered on surfaces like the PDF. Invoice Rendering Templates + * can be created from within the Dashboard, and they can be used over the API when creating invoices. + * * @property string $id Unique identifier for the object. * @property string $object String representing the object's type. Objects of the same type share the same value. * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.