Skip to content

Commit

Permalink
Update generated code (#1501)
Browse files Browse the repository at this point in the history
* Update generated code for v353

* Update generated code for v353

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored May 23, 2023
1 parent 6357a73 commit 642c22b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v346
v353
2 changes: 1 addition & 1 deletion lib/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="https://stripe.com/docs/payouts">Stripe supports in the account's country</a>.
* @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 <p>This is an object representing a person associated with a Stripe account.</p><p>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 <a href="https://stripe.com/docs/connect/standard-accounts">Standard onboarding</a> or <a href="https://stripe.com/docs/connect/express-accounts">Express onboarding documentation</a> for information about platform pre-filling and account onboarding steps.</p><p>Related guide: <a href="https://stripe.com/docs/connect/identity-verification-api#person-information">Handling identity verification with the API</a></p>
Expand Down
25 changes: 25 additions & 0 deletions tests/Stripe/GeneratedExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 642c22b

Please sign in to comment.