Skip to content

Commit cc3a4b5

Browse files
Update generated code for v2277 and d59a1f4bdea3032b8e282d40badc032cb021fc60
1 parent c55a237 commit cc3a4b5

12 files changed

Lines changed: 205 additions & 29 deletions

File tree

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9e9ef9ec9df30a59ccafb74c27b81311fa2896d5
1+
d59a1f4bdea3032b8e282d40badc032cb021fc60

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2276
1+
v2277

src/resources/V2/Core/AccountTokens.ts

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import {RequestOptions, Response} from '../../../lib.js';
77

88
export class AccountTokenResource extends StripeResource {
99
/**
10-
* Creates an Account Token.
10+
* Create an account token with a publishable key and pass it to the Accounts v2 API to
11+
* create or update an account without its data touching your server.
12+
* Learn more about [account tokens](https://docs.stripe.com/connect/account-tokens).
13+
* In live mode, you can only create account tokens with your application's publishable key.
14+
* In test mode, you can create account tokens with your secret key or publishable key.
1115
* @throws Stripe.RateLimitError
1216
*/
1317
create(
@@ -94,7 +98,7 @@ export namespace V2 {
9498
export namespace Core {
9599
export interface AccountTokenCreateParams {
96100
/**
97-
* The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
101+
* The primary contact email address for the Account.
98102
*/
99103
contact_email?: string;
100104

@@ -260,7 +264,7 @@ export namespace V2 {
260264
documents?: Individual.Documents;
261265

262266
/**
263-
* The individual's email address.
267+
* The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account.
264268
*/
265269
email?: string;
266270

@@ -454,7 +458,7 @@ export namespace V2 {
454458
proof_of_address?: Documents.ProofOfAddress;
455459

456460
/**
457-
* One or more documents showing the company's proof of registration with the national business registry.
461+
* One or more documents that demonstrate proof of ultimate beneficial ownership.
458462
*/
459463
proof_of_registration?: Documents.ProofOfRegistration;
460464

@@ -661,6 +665,11 @@ export namespace V2 {
661665
*/
662666
files: Array<string>;
663667

668+
/**
669+
* Person that is signing the document.
670+
*/
671+
signer?: ProofOfRegistration.Signer;
672+
664673
/**
665674
* The format of the document. Currently supports `files` only.
666675
*/
@@ -673,6 +682,11 @@ export namespace V2 {
673682
*/
674683
files: Array<string>;
675684

685+
/**
686+
* Person that is signing the document.
687+
*/
688+
signer?: ProofOfUltimateBeneficialOwnership.Signer;
689+
676690
/**
677691
* The format of the document. Currently supports `files` only.
678692
*/
@@ -692,6 +706,24 @@ export namespace V2 {
692706
front?: string;
693707
}
694708
}
709+
710+
export namespace ProofOfRegistration {
711+
export interface Signer {
712+
/**
713+
* Person signing the document.
714+
*/
715+
person: string;
716+
}
717+
}
718+
719+
export namespace ProofOfUltimateBeneficialOwnership {
720+
export interface Signer {
721+
/**
722+
* Person signing the document.
723+
*/
724+
person: string;
725+
}
726+
}
695727
}
696728

697729
export namespace IdNumber {

0 commit comments

Comments
 (0)