From f25c3f87c15e4d851be44f46e33544981b1cc361 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 21 Apr 2023 00:38:09 +0000 Subject: [PATCH 1/4] Update generated code for v307 --- OPENAPI_VERSION | 2 +- lib/Service/PaymentIntentService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 23f214678..56e18f3e7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v306 \ No newline at end of file +v307 \ No newline at end of file diff --git a/lib/Service/PaymentIntentService.php b/lib/Service/PaymentIntentService.php index f3f81d5cf..787a873f5 100644 --- a/lib/Service/PaymentIntentService.php +++ b/lib/Service/PaymentIntentService.php @@ -45,7 +45,7 @@ public function applyCustomerBalance($id, $params = null, $opts = null) * * Once canceled, no additional charges will be made by the PaymentIntent and any * operations on the PaymentIntent will fail with an error. For PaymentIntents with - * status=’requires_capture’, the remaining + * a status of requires_capture, the remaining * amount_capturable will automatically be refunded. * * You cannot cancel the PaymentIntent for a Checkout Session. Date: Mon, 24 Apr 2023 16:59:34 +0000 Subject: [PATCH 2/4] Update generated code for v309 --- OPENAPI_VERSION | 2 +- tests/Stripe/GeneratedExamplesTest.php | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 56e18f3e7..8d9af222c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v307 \ No newline at end of file +v309 \ No newline at end of file diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php index 724e76154..3f2c3c5f1 100644 --- a/tests/Stripe/GeneratedExamplesTest.php +++ b/tests/Stripe/GeneratedExamplesTest.php @@ -2291,6 +2291,20 @@ public function testCreatePlan() static::assertInstanceOf(\Stripe\Plan::class, $result); } + public function testCreatePlan2() + { + $this->expectsRequest('post', '/v1/plans'); + $result = $this->client->plans->create( + [ + 'amount' => 2000, + 'currency' => 'usd', + 'interval' => 'month', + 'product' => ['name' => 'My product'], + ] + ); + static::assertInstanceOf(\Stripe\Plan::class, $result); + } + public function testDeletePlan() { $this->expectsRequest('delete', '/v1/plans/price_xxxxxxxxxxxxx'); From bd2d87f6491141b1571e4454d357d2a86b557200 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 24 Apr 2023 22:46:26 +0000 Subject: [PATCH 3/4] Update generated code for v311 --- OPENAPI_VERSION | 2 +- lib/InvoiceLineItem.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8d9af222c..0b3f04f2a 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v309 \ No newline at end of file +v311 \ No newline at end of file diff --git a/lib/InvoiceLineItem.php b/lib/InvoiceLineItem.php index d70b18b10..411712190 100644 --- a/lib/InvoiceLineItem.php +++ b/lib/InvoiceLineItem.php @@ -14,7 +14,7 @@ * @property null|\Stripe\StripeObject[] $discount_amounts The amount of discount calculated per discount for this line item. * @property bool $discountable If true, discounts will apply to this line item. Always false for prorations. * @property null|(string|\Stripe\Discount)[] $discounts The discounts applied to the invoice line item. Line item discounts are applied before invoice discounts. Use expand[]=discounts to expand each discount. - * @property null|string $invoice_item The ID of the invoice item associated with this line item if any. + * @property null|string|\Stripe\InvoiceItem $invoice_item The ID of the invoice item associated with this line item if any. * @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 \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. Note that for line items with type=subscription this will reflect the metadata of the subscription that caused the line item to be created. * @property \Stripe\StripeObject $period @@ -23,8 +23,8 @@ * @property bool $proration Whether this is a proration. * @property null|\Stripe\StripeObject $proration_details Additional details for proration line items * @property null|int $quantity The quantity of the subscription, if the line item is a subscription or a proration. - * @property null|string $subscription The subscription that the invoice item pertains to, if any. - * @property null|string $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|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 string $type A string identifying the type of the source of this line item, either an invoiceitem or a subscription. From 7d2d3a8d8147b20e2b91ffd7982ab7d997cf19a9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 26 Apr 2023 11:10:54 +0000 Subject: [PATCH 4/4] Update generated code for v313 --- OPENAPI_VERSION | 2 +- lib/TaxRate.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0b3f04f2a..2b3b8788c 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v311 \ No newline at end of file +v313 \ No newline at end of file diff --git a/lib/TaxRate.php b/lib/TaxRate.php index d083dac31..acf7b9ba3 100644 --- a/lib/TaxRate.php +++ b/lib/TaxRate.php @@ -26,7 +26,7 @@ * @property null|string $jurisdiction The jurisdiction for the tax rate. You can use this label field for tax reporting purposes. It also appears on your customer’s invoice. * @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 $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 float $percentage This represents the tax rate percent out of 100. + * @property float $percentage Tax rate percentage out of 100. For tax calculations with automatic_tax[enabled]=true, this percentage includes the statutory tax rate of non-taxable jurisdictions. * @property null|string $state ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States. * @property null|string $tax_type The high-level tax type, such as vat or sales_tax. */