From 642c22b6700d2ba51b608eb0a27c7c54f2b61ee6 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 23 May 2023 10:00:44 -0700 Subject: [PATCH] Update generated code (#1501) * Update generated code for v353 * Update generated code for v353 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- lib/Account.php | 2 +- tests/Stripe/GeneratedExamplesTest.php | 25 +++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b35f1d06f..d646e1409 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v346 \ No newline at end of file +v353 \ No newline at end of file diff --git a/lib/Account.php b/lib/Account.php index 798040771..10d296c1e 100644 --- a/lib/Account.php +++ b/lib/Account.php @@ -26,7 +26,7 @@ * @property null|int $created Time at which the account was connected. Measured in seconds since the Unix epoch. * @property null|string $default_currency Three-letter ISO currency code representing the default currency for the account. This must be a currency that Stripe supports in the account's country. * @property null|bool $details_submitted Whether account details have been submitted. Standard accounts cannot receive payouts before this is true. - * @property null|string $email An email address associated with the account. You can treat this as metadata: it is not used for authentication or messaging account holders. + * @property null|string $email An email address associated with the account. It's not used for authentication and Stripe doesn't market to this field without explicit approval from the platform. * @property null|\Stripe\Collection<\Stripe\BankAccount|\Stripe\Card> $external_accounts External accounts (bank accounts and debit cards) currently attached to this account * @property null|\Stripe\StripeObject $future_requirements * @property null|\Stripe\Person $individual

This is an object representing a person associated with a Stripe account.

A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account. See the Standard onboarding or Express onboarding documentation for information about platform pre-filling and account onboarding steps.

Related guide: Handling identity verification with the API

diff --git a/tests/Stripe/GeneratedExamplesTest.php b/tests/Stripe/GeneratedExamplesTest.php index e2b2038d8..e8fc4894c 100644 --- a/tests/Stripe/GeneratedExamplesTest.php +++ b/tests/Stripe/GeneratedExamplesTest.php @@ -4057,4 +4057,29 @@ public function testListLineItemsQuote() static::assertInstanceOf(\Stripe\Collection::class, $result); static::assertInstanceOf(\Stripe\LineItem::class, $result->data[0]); } + + public function testCreateCalculation() + { + $this->expectsRequest('post', '/v1/tax/calculations'); + $result = $this->client->tax->calculations->create([ + 'currency' => 'usd', + 'line_items' => [ + [ + 'amount' => 1000, + 'reference' => 'L1', + ], + ], + 'customer_details' => [ + 'address' => [ + 'line1' => '354 Oyster Point Blvd', + 'city' => 'South San Francisco', + 'state' => 'CA', + 'postal_code' => '94080', + 'country' => 'US', + ], + 'address_source' => 'shipping', + ], + ]); + static::assertInstanceOf(\Stripe\Tax\Calculation::class, $result); + } }