From ccdb1689ea8ce5f9070498592897fca275648a38 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 13 Apr 2023 07:56:54 -0700 Subject: [PATCH 1/4] Update generated code for v296 (#1478) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- tests/Stripe/GeneratedExamplesTest.php | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0e2fd6c97..22402537f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v294 \ No newline at end of file +v296 \ No newline at end of file diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php index 279be6135..7f0ec38af 100644 --- a/tests/Stripe/GeneratedExamplesTest.php +++ b/tests/Stripe/GeneratedExamplesTest.php @@ -4030,4 +4030,17 @@ public function testListLineItemsCalculation() static::assertInstanceOf(\Stripe\Collection::class, $result); static::assertInstanceOf(\Stripe\Tax\CalculationLineItem::class, $result->data[0]); } + + public function testCreatePaymentIntent3() + { + $this->expectsRequest('post', '/v1/payment_intents'); + $result = $this->client->paymentIntents->create( + [ + 'amount' => 200, + 'currency' => 'usd', + 'payment_method_data' => ['type' => 'p24', 'p24' => ['bank' => 'blik']], + ] + ); + static::assertInstanceOf(\Stripe\PaymentIntent::class, $result); + } } From df05eb6278b291cde59822225b43f6055fa8a9c3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 19 Apr 2023 09:32:23 +0000 Subject: [PATCH 2/4] Update generated code for v302 --- OPENAPI_VERSION | 2 +- lib/Tax/Registration.php | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 9010b7ef9..4e8d2efa6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v301 \ No newline at end of file +v302 \ No newline at end of file diff --git a/lib/Tax/Registration.php b/lib/Tax/Registration.php index 6b01b9f40..b1464fdae 100644 --- a/lib/Tax/Registration.php +++ b/lib/Tax/Registration.php @@ -18,12 +18,11 @@ * @property string $object String representing the object's type. Objects of the same type share the same value. * @property int $active_from Time at which the registration becomes active. Measured in seconds since the Unix epoch. * @property string $country Two-letter country code (ISO 3166-1 alpha-2). + * @property \Stripe\StripeObject $country_options * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property null|int $expires_at If set, the registration stops being active at this time. If not set, the registration will be active indefinitely. Measured in seconds since the Unix epoch. * @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 $state State, county, province, or region. * @property string $status The status of the registration. This field is present for convenience and can be deduced from active_from and expires_at. - * @property string $type The type of the registration. See our guide for more information about registration types. */ class Registration extends \Stripe\ApiResource { @@ -36,11 +35,4 @@ class Registration extends \Stripe\ApiResource const STATUS_ACTIVE = 'active'; const STATUS_EXPIRED = 'expired'; const STATUS_SCHEDULED = 'scheduled'; - - const TYPE_DOMESTIC_SMALL_SELLER = 'domestic_small_seller'; - const TYPE_IOSS = 'ioss'; - const TYPE_SIMPLIFIED = 'simplified'; - const TYPE_STANDARD = 'standard'; - const TYPE_VAT_OSS_NON_UNION = 'vat_oss_non_union'; - const TYPE_VAT_OSS_UNION = 'vat_oss_union'; } From 948b6197e3080194572c1952b51b570544aed202 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 20 Apr 2023 14:52:34 +0000 Subject: [PATCH 3/4] Update generated code for v305 --- OPENAPI_VERSION | 2 +- lib/Tax/Registration.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4e8d2efa6..b7f624b83 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v302 \ No newline at end of file +v305 \ No newline at end of file diff --git a/lib/Tax/Registration.php b/lib/Tax/Registration.php index b1464fdae..e7be1c82c 100644 --- a/lib/Tax/Registration.php +++ b/lib/Tax/Registration.php @@ -9,7 +9,7 @@ * collect tax on payments within a region, enabling you to automatically collect tax. * - * Stripe will not register on your behalf with the relevant authorities when you + * Stripe doesn't register on your behalf with the relevant authorities when you * create a Tax Registration object. For more information on how to * register to collect tax, see our guide. From ca6e69df97439f10ca28f2c5dbab4bbc7caf777a Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 20 Apr 2023 10:52:40 -0700 Subject: [PATCH 4/4] Update generated code for v301 (#1480) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/Identity/VerificationReport.php | 4 ++-- lib/Identity/VerificationSession.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 22402537f..9010b7ef9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v296 \ No newline at end of file +v301 \ No newline at end of file diff --git a/lib/Identity/VerificationReport.php b/lib/Identity/VerificationReport.php index df457e026..805c56bb4 100644 --- a/lib/Identity/VerificationReport.php +++ b/lib/Identity/VerificationReport.php @@ -28,9 +28,9 @@ * @property null|\Stripe\StripeObject $document Result from a document check * @property null|\Stripe\StripeObject $id_number Result from an id_number check * @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 $options + * @property null|\Stripe\StripeObject $options * @property null|\Stripe\StripeObject $selfie Result from a selfie check - * @property string $type Type of report. + * @property null|string $type Type of report. * @property null|string $verification_session ID of the VerificationSession that created this report. */ class VerificationReport extends \Stripe\ApiResource diff --git a/lib/Identity/VerificationSession.php b/lib/Identity/VerificationSession.php index 180e5091e..d3462d5f2 100644 --- a/lib/Identity/VerificationSession.php +++ b/lib/Identity/VerificationSession.php @@ -28,10 +28,10 @@ * @property null|string|\Stripe\Identity\VerificationReport $last_verification_report ID of the most recent VerificationReport. Learn more about accessing detailed verification results. * @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. - * @property \Stripe\StripeObject $options + * @property null|\Stripe\StripeObject $options A set of options for the session’s verification checks. * @property null|\Stripe\StripeObject $redaction Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null. * @property string $status Status of this VerificationSession. Learn more about the lifecycle of sessions. - * @property string $type The type of verification check to be performed. + * @property null|string $type The type of verification check to be performed. * @property null|string $url The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe. * @property null|\Stripe\StripeObject $verified_outputs The user’s verified data. */