From 5635cc4f2fb93889941d3cda82b3bb172d83ef52 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 8 Jun 2023 21:06:47 +0000
Subject: [PATCH 1/5] Update generated code for v379
---
OPENAPI_VERSION | 2 +-
lib/Invoice.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 7dc295934..e55c97220 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v376
\ No newline at end of file
+v379
\ No newline at end of file
diff --git a/lib/Invoice.php b/lib/Invoice.php
index 5ab37e553..9ff53894e 100644
--- a/lib/Invoice.php
+++ b/lib/Invoice.php
@@ -14,7 +14,7 @@
* If your invoice is configured to be billed through automatic charges,
* Stripe automatically finalizes your invoice and attempts payment. Note
* that finalizing the invoice,
- * when automatic, does
+ * when automatic, does
* not happen immediately as the invoice is created. Stripe waits
* until one hour after the last webhook was successfully sent (or the last
* webhook timed out after failing). If you (and the platforms you may have
@@ -51,7 +51,7 @@
* @property null|int $application_fee_amount The fee in %s that will be applied to the invoice and transferred to the application owner's Stripe account when the invoice is paid.
* @property int $attempt_count Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule.
* @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 will perform automatic collection of the invoice. When false
, the invoice's state will not automatically advance without an explicit action.
+ * @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|string $billing_reason Indicates the reason why the invoice was created. subscription_cycle
indicates an invoice created by a subscription advancing into a new period. subscription_create
indicates an invoice created due to creating a subscription. subscription_update
indicates an invoice created due to updating a subscription. subscription
is set for all old invoices to indicate either a change to a subscription or a period advancement. manual
is set for all invoices unrelated to a subscription (for example: created via the invoice editor). The upcoming
value is reserved for simulated invoices per the upcoming invoice endpoint. subscription_threshold
indicates an invoice created due to a billing threshold being reached.
* @property null|string|\Stripe\Charge $charge ID of the latest charge generated for this invoice, if any.
From ab0b9560c611ab9b0d44eaa899c88403165464db Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Thu, 8 Jun 2023 21:28:34 +0000
Subject: [PATCH 2/5] Update generated code for v380
---
OPENAPI_VERSION | 2 +-
lib/Service/PaymentIntentService.php | 5 +++--
lib/Service/SetupIntentService.php | 3 ++-
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index e55c97220..288efc7fa 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v379
\ No newline at end of file
+v380
\ No newline at end of file
diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php
index 787a873f5..a27651957 100644
--- a/lib/Service/PaymentIntentService.php
+++ b/lib/Service/PaymentIntentService.php
@@ -94,8 +94,9 @@ public function capture($id, $params = null, $opts = null)
* If the selected payment method requires additional authentication steps, the
* PaymentIntent will transition to the requires_action
status and
* suggest additional actions via next_action
. If payment fails, the
- * PaymentIntent will transition to the requires_payment_method
- * status. If payment succeeds, the PaymentIntent will transition to the
+ * PaymentIntent transitions to the requires_payment_method
status or
+ * the canceled
status if the confirmation limit is reached. If
+ * payment succeeds, the PaymentIntent will transition to the
* succeeded
status (or requires_capture
, if
* capture_method
is set to manual
). If the
* confirmation_method
is automatic
, payment may be
diff --git a/lib/Service/SetupIntentService.php b/lib/Service/SetupIntentService.php
index 3dea24cbc..e41f4a0ae 100644
--- a/lib/Service/SetupIntentService.php
+++ b/lib/Service/SetupIntentService.php
@@ -52,7 +52,8 @@ public function cancel($id, $params = null, $opts = null)
*
* Otherwise, it will transition to the requires_action
status and
* suggest additional actions via next_action
. If setup fails, the
- * SetupIntent will transition to the requires_payment_method
status.
+ * SetupIntent will transition to the requires_payment_method
status
+ * or the canceled
status if the confirmation limit is reached.
*
* @param string $id
* @param null|array $params
From 00a17b601a4e362d85263b800c910a1a6deb6bd9 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Fri, 9 Jun 2023 18:53:13 +0000
Subject: [PATCH 3/5] Update generated code for v382
---
OPENAPI_VERSION | 2 +-
lib/Checkout/Session.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index 288efc7fa..b9fa23c79 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v380
\ No newline at end of file
+v382
\ No newline at end of file
diff --git a/lib/Checkout/Session.php b/lib/Checkout/Session.php
index 38fb44b6e..111a9bdd9 100644
--- a/lib/Checkout/Session.php
+++ b/lib/Checkout/Session.php
@@ -65,7 +65,7 @@
* @property null|string $status The status of the Checkout Session, one of open
, complete
, or expired
.
* @property null|string $submit_type Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the submit button. submit_type
can only be specified on Checkout Sessions in payment
mode, but not Checkout Sessions in subscription
or setup
mode.
* @property null|string|\Stripe\Subscription $subscription The ID of the subscription for Checkout Sessions in subscription
mode.
- * @property string $success_url The URL the customer will be directed to after the payment or subscription creation is successful.
+ * @property null|string $success_url The URL the customer will be directed to after the payment or subscription creation is successful.
* @property null|\Stripe\StripeObject $tax_id_collection
* @property null|\Stripe\StripeObject $total_details Tax and discount details for the computed total amount.
* @property null|string $url The URL to the Checkout Session. Redirect customers to this URL to take them to Checkout. If you’re using Custom Domains, the URL will use your subdomain. Otherwise, it’ll use checkout.stripe.com.
This value is only present when the session is active.
From dce3d10f745621a91212f608660f3575a0bf5696 Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Sat, 10 Jun 2023 00:26:38 +0000
Subject: [PATCH 4/5] Update generated code for v384
---
OPENAPI_VERSION | 2 +-
lib/Service/Issuing/AuthorizationService.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index b9fa23c79..b6eb47d27 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v382
\ No newline at end of file
+v384
\ No newline at end of file
diff --git a/lib/Service/Issuing/AuthorizationService.php b/lib/Service/Issuing/AuthorizationService.php
index d36f48ed9..60d78b7cc 100644
--- a/lib/Service/Issuing/AuthorizationService.php
+++ b/lib/Service/Issuing/AuthorizationService.php
@@ -29,7 +29,7 @@ public function all($params = null, $opts = null)
* href="/docs/issuing/controls/real-time-authorizations">real-time
* authorization flow. You can also respond directly to the webhook request to
* approve an authorization (preferred). More details can be found here.
+ * href="/docs/issuing/controls/real-time-authorizations#authorization-handling">here.
*
* @param string $id
* @param null|array $params
@@ -50,7 +50,7 @@ public function approve($id, $params = null, $opts = null)
* href="/docs/issuing/controls/real-time-authorizations">real time
* authorization flow. You can also respond directly to the webhook request to
* decline an authorization (preferred). More details can be found here.
+ * href="/docs/issuing/controls/real-time-authorizations#authorization-handling">here.
*
* @param string $id
* @param null|array $params
From 4b31829b8ae5adf5c87bf576d3659adbd369ca9d Mon Sep 17 00:00:00 2001
From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Date: Tue, 13 Jun 2023 19:48:29 +0000
Subject: [PATCH 5/5] Update generated code for v385
---
OPENAPI_VERSION | 2 +-
tests/Stripe/GeneratedExamplesTest.php | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION
index b6eb47d27..86e861958 100644
--- a/OPENAPI_VERSION
+++ b/OPENAPI_VERSION
@@ -1 +1 @@
-v384
\ No newline at end of file
+v385
\ No newline at end of file
diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php
index e8fc4894c..792471ee2 100644
--- a/tests/Stripe/GeneratedExamplesTest.php
+++ b/tests/Stripe/GeneratedExamplesTest.php
@@ -4082,4 +4082,15 @@ public function testCreateCalculation()
]);
static::assertInstanceOf(\Stripe\Tax\Calculation::class, $result);
}
+
+ public function testPreviewLinesCreditNote()
+ {
+ $this->expectsRequest('get', '/v1/credit_notes/preview/lines');
+ $result = $this->client->creditNotes->previewLines([
+ 'limit' => 3,
+ 'invoice' => 'in_xxxxxxxxxxxxx',
+ ]);
+ static::assertInstanceOf(\Stripe\Collection::class, $result);
+ static::assertInstanceOf(\Stripe\CreditNoteLineItem::class, $result->data[0]);
+ }
}