From 163798443b86c0fd26b1a2f3d6dd7c3dcd04179c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 29 Aug 2024 22:05:09 +0000 Subject: [PATCH 01/10] Update generated code for v1232 --- OPENAPI_VERSION | 2 +- init.php | 1 + lib/Billing/MeterErrorReport.php | 19 +++++++++++++++++++ lib/Event.php | 1 + lib/Util/ObjectTypes.php | 1 + 5 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 lib/Billing/MeterErrorReport.php diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a02063ef6..b948012ca 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1230 +v1232 \ No newline at end of file diff --git a/init.php b/init.php index 66d9183ce..f44ddb645 100644 --- a/init.php +++ b/init.php @@ -95,6 +95,7 @@ require __DIR__ . '/lib/Billing/Alert.php'; require __DIR__ . '/lib/Billing/AlertTriggered.php'; require __DIR__ . '/lib/Billing/Meter.php'; +require __DIR__ . '/lib/Billing/MeterErrorReport.php'; require __DIR__ . '/lib/Billing/MeterEvent.php'; require __DIR__ . '/lib/Billing/MeterEventAdjustment.php'; require __DIR__ . '/lib/Billing/MeterEventSummary.php'; diff --git a/lib/Billing/MeterErrorReport.php b/lib/Billing/MeterErrorReport.php new file mode 100644 index 000000000..23da46ef9 --- /dev/null +++ b/lib/Billing/MeterErrorReport.php @@ -0,0 +1,19 @@ + \Stripe\Billing\Alert::class, \Stripe\Billing\AlertTriggered::OBJECT_NAME => \Stripe\Billing\AlertTriggered::class, \Stripe\Billing\Meter::OBJECT_NAME => \Stripe\Billing\Meter::class, + \Stripe\Billing\MeterErrorReport::OBJECT_NAME => \Stripe\Billing\MeterErrorReport::class, \Stripe\Billing\MeterEvent::OBJECT_NAME => \Stripe\Billing\MeterEvent::class, \Stripe\Billing\MeterEventAdjustment::OBJECT_NAME => \Stripe\Billing\MeterEventAdjustment::class, \Stripe\Billing\MeterEventSummary::OBJECT_NAME => \Stripe\Billing\MeterEventSummary::class, From f4862461984e0aa8c29d638588b4f3fca049e2d9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 16:46:14 +0000 Subject: [PATCH 02/10] Update generated code for v1233 --- OPENAPI_VERSION | 2 +- lib/Billing/Alert.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b948012ca..b7a62c218 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1232 \ No newline at end of file +v1233 \ No newline at end of file diff --git a/lib/Billing/Alert.php b/lib/Billing/Alert.php index 5846efb1a..34c27d992 100644 --- a/lib/Billing/Alert.php +++ b/lib/Billing/Alert.php @@ -12,6 +12,7 @@ * @property string $alert_type Defines the type of the alert. * @property null|\Stripe\StripeObject $filter Limits the scope of the alert to a specific customer. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. + * @property null|\Stripe\StripeObject $spend_threshold_config Encapsulates configuration of the spend to monitoring spend on a Subscription or Subscription item. * @property null|string $status Status of the alert. This can be active, inactive or archived. * @property string $title Title of the alert. * @property null|\Stripe\StripeObject $usage_threshold_config Encapsulates configuration of the alert to monitor usage on a specific Billing Meter. @@ -20,6 +21,9 @@ class Alert extends \Stripe\ApiResource { const OBJECT_NAME = 'billing.alert'; + const ALERT_TYPE_SPEND_THRESHOLD = 'spend_threshold'; + const ALERT_TYPE_USAGE_THRESHOLD = 'usage_threshold'; + const STATUS_ACTIVE = 'active'; const STATUS_ARCHIVED = 'archived'; const STATUS_INACTIVE = 'inactive'; From c592a7cad604890495a9a51676c17080ceb86d52 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 18:49:50 +0000 Subject: [PATCH 03/10] Update generated code for v1235 --- OPENAPI_VERSION | 2 +- lib/Service/PaymentIntentService.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b7a62c218..aaa1c3795 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1233 \ No newline at end of file +v1235 \ No newline at end of file diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index 99aad6f3e..58b54bd33 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -115,7 +115,10 @@ public function capture($id, $params = null, $opts = null) * If any actions are required for the payment, the PaymentIntent will return to * the requires_confirmation state after those actions are completed. * Your server needs to then explicitly re-confirm the PaymentIntent to initiate - * the next payment attempt. + * the next payment attempt. There is a variable upper limit on how many times a + * PaymentIntent can be confirmed. After this limit is reached, any further calls + * to this endpoint will transition the PaymentIntent to the canceled + * state. * * @param string $id * @param null|array $params From 07a88d526b870ad4b9faea0837d909c5fecfe2d4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 21:03:13 +0000 Subject: [PATCH 04/10] Update generated code for v1238 --- OPENAPI_VERSION | 2 +- lib/Transfer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index aaa1c3795..cf9ff03af 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1235 \ No newline at end of file +v1238 \ No newline at end of file diff --git a/lib/Transfer.php b/lib/Transfer.php index d0b766db8..16c7b1b28 100644 --- a/lib/Transfer.php +++ b/lib/Transfer.php @@ -30,7 +30,7 @@ * @property \Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. * @property \Stripe\Collection<\Stripe\TransferReversal> $reversals A list of reversals that have been applied to the transfer. * @property bool $reversed Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false. - * @property null|string|\Stripe\Charge $source_transaction ID of the charge or payment that was used to fund the transfer. If null, the transfer was funded from the available balance. + * @property null|string|\Stripe\Charge $source_transaction ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance. * @property null|string $source_type The source balance this transfer came from. One of card, fpx, or bank_account. * @property null|string $transfer_group A string that identifies this transaction as part of a group. See the Connect documentation for details. */ From 3350aa809a95f3ffd8e245c5c497d8412f9e92e1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:22:38 +0000 Subject: [PATCH 05/10] Update generated code for v1243 --- OPENAPI_VERSION | 2 +- lib/Checkout/Session.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cf9ff03af..1023f9e1c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1238 \ No newline at end of file +v1243 \ No newline at end of file diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php index 3d5689999..d00d5b148 100644 --- a/lib/Checkout/Session.php +++ b/lib/Checkout/Session.php @@ -59,7 +59,7 @@ * @property string $payment_status The payment status of the Checkout Session, one of paid, unpaid, or no_payment_required. You can use this value to decide when to fulfill your customer's order. * @property null|\Stripe\StripeObject $phone_number_collection * @property null|string $recovered_from The ID of the original expired Checkout Session that triggered the recovery flow. - * @property null|string $redirect_on_completion This parameter applies to ui_mode: embedded. Learn more about the redirect behavior of embedded sessions. Defaults to always. + * @property null|string $redirect_on_completion This parameter applies to ui_mode: embedded. Learn more about the redirect behavior of embedded sessions. Defaults to always. * @property null|string $return_url Applies to Checkout Sessions with ui_mode: embedded. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. * @property null|\Stripe\StripeObject $saved_payment_method_options Controls saved payment method settings for the session. Only available in payment and subscription mode. * @property null|string|\Stripe\SetupIntent $setup_intent The ID of the SetupIntent for Checkout Sessions in setup mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, expire the Checkout Session instead. From b8f7c06bccdca3a8378ecae1deef58a110756081 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 17:15:09 +0000 Subject: [PATCH 06/10] Update generated code for v1244 --- OPENAPI_VERSION | 2 +- lib/Billing/Alert.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1023f9e1c..02835b066 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1243 \ No newline at end of file +v1244 \ No newline at end of file diff --git a/lib/Billing/Alert.php b/lib/Billing/Alert.php index 34c27d992..5846efb1a 100644 --- a/lib/Billing/Alert.php +++ b/lib/Billing/Alert.php @@ -12,7 +12,6 @@ * @property string $alert_type Defines the type of the alert. * @property null|\Stripe\StripeObject $filter Limits the scope of the alert to a specific customer. * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. - * @property null|\Stripe\StripeObject $spend_threshold_config Encapsulates configuration of the spend to monitoring spend on a Subscription or Subscription item. * @property null|string $status Status of the alert. This can be active, inactive or archived. * @property string $title Title of the alert. * @property null|\Stripe\StripeObject $usage_threshold_config Encapsulates configuration of the alert to monitor usage on a specific Billing Meter. @@ -21,9 +20,6 @@ class Alert extends \Stripe\ApiResource { const OBJECT_NAME = 'billing.alert'; - const ALERT_TYPE_SPEND_THRESHOLD = 'spend_threshold'; - const ALERT_TYPE_USAGE_THRESHOLD = 'usage_threshold'; - const STATUS_ACTIVE = 'active'; const STATUS_ARCHIVED = 'archived'; const STATUS_INACTIVE = 'inactive'; From bfe8e1eec86895a4a4c6505637062d294c47ff11 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:56:00 +0000 Subject: [PATCH 07/10] Update generated code for v1246 --- OPENAPI_VERSION | 2 +- init.php | 1 - lib/Billing/MeterErrorReport.php | 19 ------------------- lib/Event.php | 1 - lib/Util/ObjectTypes.php | 1 - 5 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 lib/Billing/MeterErrorReport.php diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 02835b066..340c4578c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1244 \ No newline at end of file +v1246 \ No newline at end of file diff --git a/init.php b/init.php index f44ddb645..66d9183ce 100644 --- a/init.php +++ b/init.php @@ -95,7 +95,6 @@ require __DIR__ . '/lib/Billing/Alert.php'; require __DIR__ . '/lib/Billing/AlertTriggered.php'; require __DIR__ . '/lib/Billing/Meter.php'; -require __DIR__ . '/lib/Billing/MeterErrorReport.php'; require __DIR__ . '/lib/Billing/MeterEvent.php'; require __DIR__ . '/lib/Billing/MeterEventAdjustment.php'; require __DIR__ . '/lib/Billing/MeterEventSummary.php'; diff --git a/lib/Billing/MeterErrorReport.php b/lib/Billing/MeterErrorReport.php deleted file mode 100644 index 23da46ef9..000000000 --- a/lib/Billing/MeterErrorReport.php +++ /dev/null @@ -1,19 +0,0 @@ - \Stripe\Billing\Alert::class, \Stripe\Billing\AlertTriggered::OBJECT_NAME => \Stripe\Billing\AlertTriggered::class, \Stripe\Billing\Meter::OBJECT_NAME => \Stripe\Billing\Meter::class, - \Stripe\Billing\MeterErrorReport::OBJECT_NAME => \Stripe\Billing\MeterErrorReport::class, \Stripe\Billing\MeterEvent::OBJECT_NAME => \Stripe\Billing\MeterEvent::class, \Stripe\Billing\MeterEventAdjustment::OBJECT_NAME => \Stripe\Billing\MeterEventAdjustment::class, \Stripe\Billing\MeterEventSummary::OBJECT_NAME => \Stripe\Billing\MeterEventSummary::class, From 8247d401100f64f88710bf98df4b01619197ce84 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 18:27:54 +0000 Subject: [PATCH 08/10] Update generated code for v1252 --- OPENAPI_VERSION | 2 +- lib/InvoiceLineItem.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 340c4578c..068fe5345 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1246 \ No newline at end of file +v1252 \ No newline at end of file diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php index 6a1626171..2344d115a 100644 --- a/lib/InvoiceLineItem.php +++ b/lib/InvoiceLineItem.php @@ -30,8 +30,8 @@ * @property null|int $quantity The quantity of the subscription, if the line item is a subscription or a proration. * @property null|string|\Stripe\Subscription $subscription The subscription that the invoice item pertains to, if any. * @property null|string|\Stripe\SubscriptionItem $subscription_item The subscription item that generated this line item. Left empty if the line item is not an explicit result of a subscription. - * @property null|\Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item - * @property null|\Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item. + * @property \Stripe\StripeObject[] $tax_amounts The amount of tax calculated per tax rate for this line item + * @property \Stripe\TaxRate[] $tax_rates The tax rates which apply to the line item. * @property string $type A string identifying the type of the source of this line item, either an invoiceitem or a subscription. * @property null|string $unit_amount_excluding_tax The amount in cents (or local equivalent) representing the unit amount for this line item, excluding all tax and discounts. */ From d2dbec92bfd94442bc82ed71ddc8b9c59d81ea1a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 23:57:53 +0000 Subject: [PATCH 09/10] Update generated code for v1255 --- OPENAPI_VERSION | 2 +- init.php | 2 + lib/InvoiceRenderingTemplate.php | 96 +++++++++++++++++++ lib/Service/CoreServiceFactory.php | 2 + .../InvoiceRenderingTemplateService.php | 82 ++++++++++++++++ lib/StripeClient.php | 1 + lib/Util/ObjectTypes.php | 1 + 7 files changed, 185 insertions(+), 1 deletion(-) create mode 100644 lib/InvoiceRenderingTemplate.php create mode 100644 lib/Service/InvoiceRenderingTemplateService.php diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 068fe5345..6dbaaddab 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1252 \ No newline at end of file +v1255 \ No newline at end of file diff --git a/init.php b/init.php index 66d9183ce..63fcfe467 100644 --- a/init.php +++ b/init.php @@ -140,6 +140,7 @@ require __DIR__ . '/lib/Invoice.php'; require __DIR__ . '/lib/InvoiceItem.php'; require __DIR__ . '/lib/InvoiceLineItem.php'; +require __DIR__ . '/lib/InvoiceRenderingTemplate.php'; require __DIR__ . '/lib/Issuing/Authorization.php'; require __DIR__ . '/lib/Issuing/Card.php'; require __DIR__ . '/lib/Issuing/Cardholder.php'; @@ -222,6 +223,7 @@ require __DIR__ . '/lib/Service/Identity/VerificationReportService.php'; require __DIR__ . '/lib/Service/Identity/VerificationSessionService.php'; require __DIR__ . '/lib/Service/InvoiceItemService.php'; +require __DIR__ . '/lib/Service/InvoiceRenderingTemplateService.php'; require __DIR__ . '/lib/Service/InvoiceService.php'; require __DIR__ . '/lib/Service/Issuing/AuthorizationService.php'; require __DIR__ . '/lib/Service/Issuing/CardService.php'; diff --git a/lib/InvoiceRenderingTemplate.php b/lib/InvoiceRenderingTemplate.php new file mode 100644 index 000000000..576fd5945 --- /dev/null +++ b/lib/InvoiceRenderingTemplate.php @@ -0,0 +1,96 @@ +true if the object exists in live mode or the value false if the object exists in test mode. + * @property null|\Stripe\StripeObject $metadata Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * @property null|string $nickname A brief description of the template, hidden from customers + * @property string $status The status of the template, one of active or archived. + * @property int $version Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering + */ +class InvoiceRenderingTemplate extends ApiResource +{ + const OBJECT_NAME = 'invoice_rendering_template'; + + const STATUS_ACTIVE = 'active'; + const STATUS_ARCHIVED = 'archived'; + + /** + * List all templates, ordered by creation date, with the most recently created + * template appearing first. + * + * @param null|array $params + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\Collection<\Stripe\InvoiceRenderingTemplate> of ApiResources + */ + public static function all($params = null, $opts = null) + { + $url = static::classUrl(); + + return static::_requestPage($url, \Stripe\Collection::class, $params, $opts); + } + + /** + * Retrieves an invoice rendering template with the given ID. It by default returns + * the latest version of the template. Optionally, specify a version to see + * previous versions. + * + * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\InvoiceRenderingTemplate + */ + public static function retrieve($id, $opts = null) + { + $opts = \Stripe\Util\RequestOptions::parse($opts); + $instance = new static($id, $opts); + $instance->refresh(); + + return $instance; + } + + /** + * @param null|array $params + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\InvoiceRenderingTemplate the archived invoice rendering template + */ + public function archive($params = null, $opts = null) + { + $url = $this->instanceUrl() . '/archive'; + list($response, $opts) = $this->_request('post', $url, $params, $opts); + $this->refreshFrom($response, $opts); + + return $this; + } + + /** + * @param null|array $params + * @param null|array|string $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\InvoiceRenderingTemplate the unarchived invoice rendering template + */ + public function unarchive($params = null, $opts = null) + { + $url = $this->instanceUrl() . '/unarchive'; + list($response, $opts) = $this->_request('post', $url, $params, $opts); + $this->refreshFrom($response, $opts); + + return $this; + } +} diff --git a/lib/Service/CoreServiceFactory.php b/lib/Service/CoreServiceFactory.php index e292c2a18..6c9af6d1b 100644 --- a/lib/Service/CoreServiceFactory.php +++ b/lib/Service/CoreServiceFactory.php @@ -37,6 +37,7 @@ * @property Forwarding\ForwardingServiceFactory $forwarding * @property Identity\IdentityServiceFactory $identity * @property InvoiceItemService $invoiceItems + * @property InvoiceRenderingTemplateService $invoiceRenderingTemplates * @property InvoiceService $invoices * @property Issuing\IssuingServiceFactory $issuing * @property MandateService $mandates @@ -114,6 +115,7 @@ class CoreServiceFactory extends \Stripe\Service\AbstractServiceFactory 'forwarding' => Forwarding\ForwardingServiceFactory::class, 'identity' => Identity\IdentityServiceFactory::class, 'invoiceItems' => InvoiceItemService::class, + 'invoiceRenderingTemplates' => InvoiceRenderingTemplateService::class, 'invoices' => InvoiceService::class, 'issuing' => Issuing\IssuingServiceFactory::class, 'mandates' => MandateService::class, diff --git a/lib/Service/InvoiceRenderingTemplateService.php b/lib/Service/InvoiceRenderingTemplateService.php new file mode 100644 index 000000000..90d8f23a5 --- /dev/null +++ b/lib/Service/InvoiceRenderingTemplateService.php @@ -0,0 +1,82 @@ + + */ + public function all($params = null, $opts = null) + { + return $this->requestCollection('get', '/v1/invoice_rendering_templates', $params, $opts); + } + + /** + * Updates the status of an invoice rendering template to ‘archived’ so no new + * Stripe objects (customers, invoices, etc.) can reference it. The template can + * also no longer be updated. However, if the template is already set on a Stripe + * object, it will continue to be applied on invoices generated by it. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\InvoiceRenderingTemplate + */ + public function archive($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/invoice_rendering_templates/%s/archive', $id), $params, $opts); + } + + /** + * Retrieves an invoice rendering template with the given ID. It by default returns + * the latest version of the template. Optionally, specify a version to see + * previous versions. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\InvoiceRenderingTemplate + */ + public function retrieve($id, $params = null, $opts = null) + { + return $this->request('get', $this->buildPath('/v1/invoice_rendering_templates/%s', $id), $params, $opts); + } + + /** + * Unarchive an invoice rendering template so it can be used on new Stripe objects + * again. + * + * @param string $id + * @param null|array $params + * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts + * + * @throws \Stripe\Exception\ApiErrorException if the request fails + * + * @return \Stripe\InvoiceRenderingTemplate + */ + public function unarchive($id, $params = null, $opts = null) + { + return $this->request('post', $this->buildPath('/v1/invoice_rendering_templates/%s/unarchive', $id), $params, $opts); + } +} diff --git a/lib/StripeClient.php b/lib/StripeClient.php index 4103c5c79..d46751f14 100644 --- a/lib/StripeClient.php +++ b/lib/StripeClient.php @@ -37,6 +37,7 @@ * @property \Stripe\Service\Forwarding\ForwardingServiceFactory $forwarding * @property \Stripe\Service\Identity\IdentityServiceFactory $identity * @property \Stripe\Service\InvoiceItemService $invoiceItems + * @property \Stripe\Service\InvoiceRenderingTemplateService $invoiceRenderingTemplates * @property \Stripe\Service\InvoiceService $invoices * @property \Stripe\Service\Issuing\IssuingServiceFactory $issuing * @property \Stripe\Service\MandateService $mandates diff --git a/lib/Util/ObjectTypes.php b/lib/Util/ObjectTypes.php index c79cc6bb6..cbe5a4f70 100644 --- a/lib/Util/ObjectTypes.php +++ b/lib/Util/ObjectTypes.php @@ -73,6 +73,7 @@ class ObjectTypes \Stripe\Invoice::OBJECT_NAME => \Stripe\Invoice::class, \Stripe\InvoiceItem::OBJECT_NAME => \Stripe\InvoiceItem::class, \Stripe\InvoiceLineItem::OBJECT_NAME => \Stripe\InvoiceLineItem::class, + \Stripe\InvoiceRenderingTemplate::OBJECT_NAME => \Stripe\InvoiceRenderingTemplate::class, \Stripe\Issuing\Authorization::OBJECT_NAME => \Stripe\Issuing\Authorization::class, \Stripe\Issuing\Card::OBJECT_NAME => \Stripe\Issuing\Card::class, \Stripe\Issuing\Cardholder::OBJECT_NAME => \Stripe\Issuing\Cardholder::class, From c340f6fd0eb1f7939f0b6f5b396fbb4d9936c278 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 10 Sep 2024 20:48:49 +0000 Subject: [PATCH 10/10] Update generated code for v1260 --- OPENAPI_VERSION | 2 +- lib/TestHelpers/TestClock.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 6dbaaddab..ad548b855 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1255 \ No newline at end of file +v1260 \ No newline at end of file diff --git a/lib/TestHelpers/TestClock.php b/lib/TestHelpers/TestClock.php index cd9fc4456..361b2692f 100644 --- a/lib/TestHelpers/TestClock.php +++ b/lib/TestHelpers/TestClock.php @@ -17,7 +17,7 @@ * @property bool $livemode Has the value true if the object exists in live mode or the value false if the object exists in test mode. * @property null|string $name The custom name supplied at creation. * @property string $status The status of the Test Clock. - * @property null|\Stripe\StripeObject $status_details + * @property \Stripe\StripeObject $status_details */ class TestClock extends \Stripe\ApiResource {