Skip to content

Commit

Permalink
Codegen for openapi 0e77e37
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Mar 3, 2020
1 parent b574444 commit 5c5b557
Show file tree
Hide file tree
Showing 86 changed files with 34,504 additions and 0 deletions.
76 changes: 76 additions & 0 deletions types/2020-03-02/AccountLinks.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
declare module 'stripe' {
namespace Stripe {
/**
* The AccountLink object.
*/
interface AccountLink {
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'account_link';

/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
created: number;

/**
* The timestamp at which this account link will expire.
*/
expires_at: number;

/**
* The URL for the account link.
*/
url: string;
}

interface AccountLinkCreateParams {
/**
* The identifier of the account to create an account link for.
*/
account: string;

/**
* The URL that the user will be redirected to if the account link is no longer valid.
*/
failure_url: string;

/**
* The URL that the user will be redirected to upon leaving or completing the linked flow successfully.
*/
success_url: string;

/**
* The type of account link the user is requesting. Possible values are `custom_account_verification` or `custom_account_update`.
*/
type: AccountLinkCreateParams.Type;

/**
* Which information the platform needs to collect from the user. One of `currently_due` or `eventually_due`. Default is `currently_due`.
*/
collect?: AccountLinkCreateParams.Collect;

/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}

namespace AccountLinkCreateParams {
type Collect = 'currently_due' | 'eventually_due';

type Type = 'custom_account_update' | 'custom_account_verification';
}

class AccountLinksResource {
/**
* Creates an AccountLink object that returns a single-use Stripe URL that the user can redirect their user to in order to take them through the Connect Onboarding flow.
*/
create(
params: AccountLinkCreateParams,
options?: RequestOptions
): Promise<Stripe.AccountLink>;
}
}
}
Loading

0 comments on commit 5c5b557

Please sign in to comment.