Skip to content

Commit

Permalink
Update generated code for v570
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Sep 29, 2023
1 parent 465c7f3 commit abaa4e6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v565
v570
26 changes: 13 additions & 13 deletions types/Tokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ declare module 'stripe' {
* Tokenization is the process Stripe uses to collect sensitive card or bank
* account details, or personally identifiable information (PII), directly from
* your customers in a secure manner. A token representing this information is
* returned to your server to use. You should use our
* returned to your server to use. Use our
* [recommended payments integrations](https://stripe.com/docs/payments) to perform this process
* client-side. This ensures that no sensitive card data touches your server,
* on the client-side. This guarantees that no sensitive card data touches your server,
* and allows your integration to operate in a PCI-compliant way.
*
* If you cannot use client-side tokenization, you can also create tokens using
* the API with either your publishable or secret API key. Keep in mind that if
* your integration uses this method, you are responsible for any PCI compliance
* that may be required, and you must keep your secret API key safe. Unlike with
* client-side tokenization, your customer's information is not sent directly to
* Stripe, so we cannot determine how it is handled or stored.
* If you can't use client-side tokenization, you can also create tokens using
* the API with either your publishable or secret API key. If
* your integration uses this method, you're responsible for any PCI compliance
* that it might require, and you must keep your secret API key safe. Unlike with
* client-side tokenization, your customer's information isn't sent directly to
* Stripe, so we can't determine how it's handled or stored.
*
* Tokens cannot be stored or used more than once. To store card or bank account
* information for later use, you can create [Customer](https://stripe.com/docs/api#customers)
* objects or [Custom accounts](https://stripe.com/docs/api#external_accounts). Note that
* You can't store or use tokens more than once. To store card or bank account
* information for later use, create [Customer](https://stripe.com/docs/api#customers)
* objects or [Custom accounts](https://stripe.com/docs/api#external_accounts).
* [Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection,
* performs best with integrations that use client-side tokenization.
*/
Expand Down Expand Up @@ -56,7 +56,7 @@ declare module 'stripe' {
card?: Stripe.Card;

/**
* IP address of the client that generated the token.
* IP address of the client that generates the token.
*/
client_ip: string | null;

Expand All @@ -76,7 +76,7 @@ declare module 'stripe' {
type: string;

/**
* Whether this token has already been used (tokens can be used only once).
* Determines if you have already used this token (you can only use tokens once).
*/
used: boolean;
}
Expand Down
12 changes: 6 additions & 6 deletions types/TokensResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare module 'stripe' {
namespace Stripe {
interface TokenCreateParams {
/**
* Information for the account this token will represent.
* Information for the account this token represents.
*/
account?: TokenCreateParams.Account;

Expand All @@ -19,12 +19,12 @@ declare module 'stripe' {
card?: TokenCreateParams.Card | string;

/**
* The customer (owned by the application's account) for which to create a token. This can be used only with an [OAuth access token](https://stripe.com/docs/connect/standard-accounts) or [Stripe-Account header](https://stripe.com/docs/connect/authentication). For more details, see [Cloning Saved Payment Methods](https://stripe.com/docs/connect/cloning-saved-payment-methods).
* Create a token for the customer, which is owned by the application's account. You can only use this with an [OAuth access token](https://stripe.com/docs/connect/standard-accounts) or [Stripe-Account header](https://stripe.com/docs/connect/authentication). Learn more about [cloning saved payment methods](https://stripe.com/docs/connect/cloning-saved-payment-methods).
*/
customer?: string;

/**
* The updated CVC value this token will represent.
* The updated CVC value this token represents.
*/
cvc_update?: TokenCreateParams.CvcUpdate;

Expand All @@ -34,12 +34,12 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* Information for the person this token will represent.
* Information for the person this token represents.
*/
person?: TokenCreateParams.Person;

/**
* The PII this token will represent.
* The PII this token represents.
*/
pii?: TokenCreateParams.Pii;
}
Expand Down Expand Up @@ -798,7 +798,7 @@ declare module 'stripe' {
class TokensResource {
/**
* Creates a single-use token that represents a bank account's details.
* This token can be used with any API method in place of a bank account dictionary. This token can be used only once, by attaching it to a [Custom account](https://stripe.com/docs/api#accounts).
* You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [Custom account](https://stripe.com/docs/api#accounts).
*/
create(
params?: TokenCreateParams,
Expand Down

0 comments on commit abaa4e6

Please sign in to comment.