/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
stripe
/
types
/
/home/techb158/balavpn.abdallabala.com/node_modules/stripe/types
mkdir
upload
Name
Size
Mode
Actions
Apps/
-
0777
rm
Billing/
-
0777
rm
BillingPortal/
-
0777
rm
Checkout/
-
0777
rm
Climate/
-
0777
rm
crypto/
-
0777
rm
Entitlements/
-
0777
rm
FinancialConnections/
-
0777
rm
Forwarding/
-
0777
rm
Identity/
-
0777
rm
Issuing/
-
0777
rm
net/
-
0777
rm
Radar/
-
0777
rm
Reporting/
-
0777
rm
Sigma/
-
0777
rm
Tax/
-
0777
rm
Terminal/
-
0777
rm
test/
-
0777
rm
TestHelpers/
-
0777
rm
Treasury/
-
0777
rm
V2/
-
0777
rm
.eslintrc.js
620
0666
edit
dl
rm
AccountLinks.d.ts
893
0666
edit
dl
rm
AccountLinksResource.d.ts
2898
0666
edit
dl
rm
Accounts.d.ts
63448
0666
edit
dl
rm
AccountSessions.d.ts
17282
0666
edit
dl
rm
AccountSessionsResource.d.ts
19316
0666
edit
dl
rm
AccountsResource.d.ts
181754
0666
edit
dl
rm
ApplePayDomains.d.ts
1241
0666
edit
dl
rm
ApplePayDomainsResource.d.ts
1962
0666
edit
dl
rm
ApplicationFees.d.ts
3040
0666
edit
dl
rm
ApplicationFeesResource.d.ts
6115
0666
edit
dl
rm
Applications.d.ts
1064
0666
edit
dl
rm
Balance.d.ts
8675
0666
edit
dl
rm
BalanceResource.d.ts
817
0666
edit
dl
rm
BalanceTransactions.d.ts
6553
0666
edit
dl
rm
BalanceTransactionSources.d.ts
499
0666
edit
dl
rm
BalanceTransactionsResource.d.ts
3247
0666
edit
dl
rm
BankAccounts.d.ts
18753
0666
edit
dl
rm
Capabilities.d.ts
17891
0666
edit
dl
rm
Cards.d.ts
8674
0666
edit
dl
rm
CashBalances.d.ts
1711
0666
edit
dl
rm
Charges.d.ts
81258
0666
edit
dl
rm
ChargesResource.d.ts
19232
0666
edit
dl
rm
ConfirmationTokens.d.ts
54015
0666
edit
dl
rm
ConfirmationTokensResource.d.ts
698
0666
edit
dl
rm
ConnectCollectionTransfers.d.ts
1063
0666
edit
dl
rm
CountrySpecs.d.ts
2759
0666
edit
dl
rm
CountrySpecsResource.d.ts
1145
0666
edit
dl
rm
Coupons.d.ts
4525
0666
edit
dl
rm
CouponsResource.d.ts
7997
0666
edit
dl
rm
CreditNoteLineItems.d.ts
5515
0666
edit
dl
rm
CreditNotes.d.ts
10417
0666
edit
dl
rm
CreditNotesResource.d.ts
21683
0666
edit
dl
rm
CustomerBalanceTransactions.d.ts
3534
0666
edit
dl
rm
CustomerCashBalanceTransactions.d.ts
7655
0666
edit
dl
rm
Customers.d.ts
10312
0666
edit
dl
rm
CustomerSessions.d.ts
6659
0666
edit
dl
rm
CustomerSessionsResource.d.ts
5543
0666
edit
dl
rm
CustomerSources.d.ts
227
0666
edit
dl
rm
CustomersResource.d.ts
49272
0666
edit
dl
rm
Deprecations.d.ts
6759
0666
edit
dl
rm
Discounts.d.ts
5697
0666
edit
dl
rm
Disputes.d.ts
18934
0666
edit
dl
rm
DisputesResource.d.ts
15462
0666
edit
dl
rm
EphemeralKeys.d.ts
975
0666
edit
dl
rm
EphemeralKeysResource.d.ts
1793
0666
edit
dl
rm
Errors.d.ts
9706
0666
edit
dl
rm
Events.d.ts
14107
0666
edit
dl
rm
EventsResource.d.ts
2309
0666
edit
dl
rm
EventTypes.d.ts
120304
0666
edit
dl
rm
ExchangeRates.d.ts
2348
0666
edit
dl
rm
ExchangeRatesResource.d.ts
1294
0666
edit
dl
rm
ExternalAccounts.d.ts
210
0666
edit
dl
rm
FeeRefunds.d.ts
1730
0666
edit
dl
rm
FileLinks.d.ts
1529
0666
edit
dl
rm
FileLinksResource.d.ts
3788
0666
edit
dl
rm
Files.d.ts
2560
0666
edit
dl
rm
FilesResource.d.ts
4886
0666
edit
dl
rm
FundingInstructions.d.ts
7588
0666
edit
dl
rm
index.d.ts
26330
0666
edit
dl
rm
InvoiceItems.d.ts
5720
0666
edit
dl
rm
InvoiceItemsResource.d.ts
16679
0666
edit
dl
rm
InvoiceLineItems.d.ts
8170
0666
edit
dl
rm
InvoiceRenderingTemplates.d.ts
1735
0666
edit
dl
rm
InvoiceRenderingTemplatesResource.d.ts
3109
0666
edit
dl
rm
Invoices.d.ts
59291
0666
edit
dl
rm
InvoicesResource.d.ts
272335
0666
edit
dl
rm
lib.d.ts
9208
0666
edit
dl
rm
LineItems.d.ts
3747
0666
edit
dl
rm
LoginLinks.d.ts
805
0666
edit
dl
rm
Mandates.d.ts
6963
0666
edit
dl
rm
MandatesResource.d.ts
629
0666
edit
dl
rm
OAuth.d.ts
13056
0666
edit
dl
rm
PaymentIntents.d.ts
126400
0666
edit
dl
rm
PaymentIntentsResource.d.ts
425657
0666
edit
dl
rm
PaymentLinks.d.ts
26988
0666
edit
dl
rm
PaymentLinksResource.d.ts
61599
0666
edit
dl
rm
PaymentMethodConfigurations.d.ts
46290
0666
edit
dl
rm
PaymentMethodConfigurationsResource.d.ts
82027
0666
edit
dl
rm
PaymentMethodDomains.d.ts
5253
0666
edit
dl
rm
PaymentMethodDomainsResource.d.ts
4080
0666
edit
dl
rm
PaymentMethods.d.ts
48133
0666
edit
dl
rm
PaymentMethodsResource.d.ts
31934
0666
edit
dl
rm
Payouts.d.ts
6830
0666
edit
dl
rm
PayoutsResource.d.ts
8033
0666
edit
dl
rm
Persons.d.ts
28323
0666
edit
dl
rm
Plans.d.ts
7540
0666
edit
dl
rm
PlansResource.d.ts
11964
0666
edit
dl
rm
Prices.d.ts
12348
0666
edit
dl
rm
PricesResource.d.ts
23771
0666
edit
dl
rm
ProductFeatures.d.ts
1595
0666
edit
dl
rm
Products.d.ts
5225
0666
edit
dl
rm
ProductsResource.d.ts
22445
0666
edit
dl
rm
PromotionCodes.d.ts
4009
0666
edit
dl
rm
PromotionCodesResource.d.ts
7472
0666
edit
dl
rm
Quotes.d.ts
22541
0666
edit
dl
rm
QuotesResource.d.ts
32380
0666
edit
dl
rm
Refunds.d.ts
12150
0666
edit
dl
rm
RefundsResource.d.ts
6972
0666
edit
dl
rm
ReserveTransactions.d.ts
812
0666
edit
dl
rm
Reviews.d.ts
3939
0666
edit
dl
rm
ReviewsResource.d.ts
1895
0666
edit
dl
rm
SetupAttempts.d.ts
30914
0666
edit
dl
rm
SetupAttemptsResource.d.ts
972
0666
edit
dl
rm
SetupIntents.d.ts
35147
0666
edit
dl
rm
SetupIntentsResource.d.ts
130075
0666
edit
dl
rm
shared.d.ts
4263
0666
edit
dl
rm
ShippingRates.d.ts
4744
0666
edit
dl
rm
ShippingRatesResource.d.ts
8383
0666
edit
dl
rm
SourceMandateNotifications.d.ts
3491
0666
edit
dl
rm
Sources.d.ts
20443
0666
edit
dl
rm
SourcesResource.d.ts
19833
0666
edit
dl
rm
SourceTransactions.d.ts
5248
0666
edit
dl
rm
SubscriptionItems.d.ts
4653
0666
edit
dl
rm
SubscriptionItemsResource.d.ts
23230
0666
edit
dl
rm
Subscriptions.d.ts
30567
0666
edit
dl
rm
SubscriptionSchedules.d.ts
23402
0666
edit
dl
rm
SubscriptionSchedulesResource.d.ts
61127
0666
edit
dl
rm
SubscriptionsResource.d.ts
88064
0666
edit
dl
rm
TaxCodes.d.ts
685
0666
edit
dl
rm
TaxCodesResource.d.ts
1291
0666
edit
dl
rm
TaxDeductedAtSources.d.ts
886
0666
edit
dl
rm
TaxIds.d.ts
6322
0666
edit
dl
rm
TaxIdsResource.d.ts
6265
0666
edit
dl
rm
TaxRates.d.ts
5056
0666
edit
dl
rm
TaxRatesResource.d.ts
6537
0666
edit
dl
rm
ThinEvent.d.ts
847
0666
edit
dl
rm
Tokens.d.ts
3363
0666
edit
dl
rm
TokensResource.d.ts
34353
0666
edit
dl
rm
Topups.d.ts
3284
0666
edit
dl
rm
TopupsResource.d.ts
5249
0666
edit
dl
rm
TransferReversals.d.ts
2543
0666
edit
dl
rm
Transfers.d.ts
3676
0666
edit
dl
rm
TransfersResource.d.ts
10601
0666
edit
dl
rm
UpcomingInvoices.d.ts
108
0666
edit
dl
rm
UsageRecords.d.ts
1261
0666
edit
dl
rm
UsageRecordSummaries.d.ts
1474
0666
edit
dl
rm
WebhookEndpoints.d.ts
2865
0666
edit
dl
rm
WebhookEndpointsResource.d.ts
26655
0666
edit
dl
rm
Webhooks.d.ts
4627
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/stripe/types/TokensResource.d.ts
(34353B)
// File generated from our OpenAPI spec declare module 'stripe' { namespace Stripe { interface TokenCreateParams { /** * Information for the account this token represents. */ account?: TokenCreateParams.Account; /** * The bank account this token will represent. */ bank_account?: string | TokenCreateParams.BankAccount; /** * The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user's credit card details, with the options described below. */ card?: TokenCreateParams.Card | string; /** * 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 represents. */ cvc_update?: TokenCreateParams.CvcUpdate; /** * Specifies which fields in the response should be expanded. */ expand?: Array<string>; /** * Information for the person this token represents. */ person?: TokenCreateParams.Person; /** * The PII this token represents. */ pii?: TokenCreateParams.Pii; } namespace TokenCreateParams { interface Account { /** * The business type. */ business_type?: Account.BusinessType; /** * Information about the company or business. */ company?: Account.Company; /** * Information about the person represented by the account. */ individual?: Account.Individual; /** * Whether the user described by the data in the token has been shown [the Stripe Connected Account Agreement](https://stripe.com/connect/account-tokens#stripe-connected-account-agreement). When creating an account token to create a new Connect account, this value must be `true`. */ tos_shown_and_accepted?: boolean; } namespace Account { type BusinessType = | 'company' | 'government_entity' | 'individual' | 'non_profit'; interface Company { /** * The company's primary address. */ address?: Stripe.AddressParam; /** * The Kana variation of the company's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** * The Kanji variation of the company's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; /** * Whether the company's directors have been provided. Set this Boolean to `true` after creating all the company's directors with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.director` requirement. This value is not automatically set to `true` after creating directors, so it needs to be updated to indicate all directors have been provided. */ directors_provided?: boolean; /** * This hash is used to attest that the directors information provided to Stripe is both current and correct. */ directorship_declaration?: Company.DirectorshipDeclaration; /** * Whether the company's executives have been provided. Set this Boolean to `true` after creating all the company's executives with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.executive` requirement. */ executives_provided?: boolean; /** * The export license ID number of the company, also referred as Import Export Code (India only). */ export_license_id?: string; /** * The purpose code to use for export transactions (India only). */ export_purpose_code?: string; /** * The company's legal name. */ name?: string; /** * The Kana variation of the company's legal name (Japan only). */ name_kana?: string; /** * The Kanji variation of the company's legal name (Japan only). */ name_kanji?: string; /** * Whether the company's owners have been provided. Set this Boolean to `true` after creating all the company's owners with [the Persons API](https://stripe.com/api/persons) for accounts with a `relationship.owner` requirement. */ owners_provided?: boolean; /** * This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct. */ ownership_declaration?: Company.OwnershipDeclaration; /** * Whether the user described by the data in the token has been shown the Ownership Declaration and indicated that it is correct. */ ownership_declaration_shown_and_signed?: boolean; ownership_exemption_reason?: Stripe.Emptyable< Company.OwnershipExemptionReason >; /** * The company's phone number (used for verification). */ phone?: string; /** * The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). */ registration_number?: string; /** * The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. */ structure?: Stripe.Emptyable<Company.Structure>; /** * The business ID number of the company, as appropriate for the company's country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.) */ tax_id?: string; /** * The jurisdiction in which the `tax_id` is registered (Germany-based companies only). */ tax_id_registrar?: string; /** * The VAT number of the company. */ vat_id?: string; /** * Information on the verification state of the company. */ verification?: Company.Verification; } namespace Company { interface DirectorshipDeclaration { /** * The Unix timestamp marking when the directorship declaration attestation was made. */ date?: number; /** * The IP address from which the directorship declaration attestation was made. */ ip?: string; /** * The user agent of the browser from which the directorship declaration attestation was made. */ user_agent?: string; } interface OwnershipDeclaration { /** * The Unix timestamp marking when the beneficial owner attestation was made. */ date?: number; /** * The IP address from which the beneficial owner attestation was made. */ ip?: string; /** * The user agent of the browser from which the beneficial owner attestation was made. */ user_agent?: string; } type OwnershipExemptionReason = | 'qualified_entity_exceeds_ownership_threshold' | 'qualifies_as_financial_institution'; type Structure = | 'free_zone_establishment' | 'free_zone_llc' | 'government_instrumentality' | 'governmental_unit' | 'incorporated_non_profit' | 'incorporated_partnership' | 'limited_liability_partnership' | 'llc' | 'multi_member_llc' | 'private_company' | 'private_corporation' | 'private_partnership' | 'public_company' | 'public_corporation' | 'public_partnership' | 'registered_charity' | 'single_member_llc' | 'sole_establishment' | 'sole_proprietorship' | 'tax_exempt_government_instrumentality' | 'unincorporated_association' | 'unincorporated_non_profit' | 'unincorporated_partnership'; interface Verification { /** * A document verifying the business. */ document?: Verification.Document; } namespace Verification { interface Document { /** * The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ back?: string; /** * The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ front?: string; } } } interface Individual { /** * The individual's primary address. */ address?: Stripe.AddressParam; /** * The Kana variation of the individual's primary address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** * The Kanji variation of the individual's primary address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; /** * The individual's date of birth. */ dob?: Stripe.Emptyable<Individual.Dob>; /** * The individual's email address. */ email?: string; /** * The individual's first name. */ first_name?: string; /** * The Kana variation of the individual's first name (Japan only). */ first_name_kana?: string; /** * The Kanji variation of the individual's first name (Japan only). */ first_name_kanji?: string; /** * A list of alternate names or aliases that the individual is known by. */ full_name_aliases?: Stripe.Emptyable<Array<string>>; /** * The individual's gender */ gender?: string; /** * The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii). */ id_number?: string; /** * The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/js/tokens/create_token?type=pii). */ id_number_secondary?: string; /** * The individual's last name. */ last_name?: string; /** * The Kana variation of the individual's last name (Japan only). */ last_name_kana?: string; /** * The Kanji variation of the individual's last name (Japan only). */ last_name_kanji?: string; /** * The individual's maiden name. */ maiden_name?: string; /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ metadata?: Stripe.Emptyable<Stripe.MetadataParam>; /** * The individual's phone number. */ phone?: string; /** * Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. */ political_exposure?: Individual.PoliticalExposure; /** * The individual's registered address. */ registered_address?: Stripe.AddressParam; /** * Describes the person's relationship to the account. */ relationship?: Individual.Relationship; /** * The last four digits of the individual's Social Security Number (U.S. only). */ ssn_last_4?: string; /** * The individual's verification document information. */ verification?: Individual.Verification; } namespace Individual { interface Dob { /** * The day of birth, between 1 and 31. */ day: number; /** * The month of birth, between 1 and 12. */ month: number; /** * The four-digit year of birth. */ year: number; } type PoliticalExposure = 'existing' | 'none'; interface Relationship { /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. */ director?: boolean; /** * Whether the person has significant responsibility to control, manage, or direct the organization. */ executive?: boolean; /** * Whether the person is an owner of the account's legal entity. */ owner?: boolean; /** * The percent owned by the person of the account's legal entity. */ percent_ownership?: Stripe.Emptyable<number>; /** * The person's title (e.g., CEO, Support Engineer). */ title?: string; } interface Verification { /** * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. */ additional_document?: Verification.AdditionalDocument; /** * An identifying document, either a passport or local ID card. */ document?: Verification.Document; } namespace Verification { interface AdditionalDocument { /** * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ back?: string; /** * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ front?: string; } interface Document { /** * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ back?: string; /** * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ front?: string; } } } } interface BankAccount { /** * The name of the person or business that owns the bank account. This field is required when attaching the bank account to a `Customer` object. */ account_holder_name?: string; /** * The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object. */ account_holder_type?: BankAccount.AccountHolderType; /** * The account number for the bank account, in string form. Must be a checking account. */ account_number: string; /** * The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`. */ account_type?: BankAccount.AccountType; /** * The country in which the bank account is located. */ country: string; /** * The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](https://stripe.com/docs/payouts) */ currency?: string; /** * The ID of a Payment Method with a `type` of `us_bank_account`. The Payment Method's bank account information will be copied and returned as a Bank Account Token. This parameter is exclusive with respect to all other parameters in the `bank_account` hash. You must include the top-level `customer` parameter if the Payment Method is attached to a `Customer` object. If the Payment Method is not attached to a `Customer` object, it will be consumed and cannot be used again. You may not use Payment Methods which were created by a Setup Intent with `attach_to_self=true`. */ payment_method?: string; /** * The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. */ routing_number?: string; } namespace BankAccount { type AccountHolderType = 'company' | 'individual'; type AccountType = 'checking' | 'futsu' | 'savings' | 'toza'; } interface Card { /** * City / District / Suburb / Town / Village. */ address_city?: string; /** * Billing address country, if provided. */ address_country?: string; /** * Address line 1 (Street address / PO Box / Company name). */ address_line1?: string; /** * Address line 2 (Apartment / Suite / Unit / Building). */ address_line2?: string; /** * State / County / Province / Region. */ address_state?: string; /** * ZIP or postal code. */ address_zip?: string; /** * Required in order to add the card to an account; in all other cases, this parameter is not used. When added to an account, the card (which must be a debit card) can be used as a transfer destination for funds in this currency. */ currency?: string; /** * Card security code. Highly recommended to always include this value. */ cvc?: string; /** * Two-digit number representing the card's expiration month. */ exp_month: string; /** * Two- or four-digit number representing the card's expiration year. */ exp_year: string; /** * Cardholder's full name. */ name?: string; /** * Contains information about card networks used to process the payment. */ networks?: Card.Networks; /** * The card number, as a string without any separators. */ number: string; } namespace Card { interface Networks { /** * The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. */ preferred?: Networks.Preferred; } namespace Networks { type Preferred = 'cartes_bancaires' | 'mastercard' | 'visa'; } } interface CvcUpdate { /** * The CVC value, in string form. */ cvc: string; } interface Person { /** * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. */ additional_tos_acceptances?: Person.AdditionalTosAcceptances; /** * The person's address. */ address?: Stripe.AddressParam; /** * The Kana variation of the person's address (Japan only). */ address_kana?: Stripe.JapanAddressParam; /** * The Kanji variation of the person's address (Japan only). */ address_kanji?: Stripe.JapanAddressParam; /** * The person's date of birth. */ dob?: Stripe.Emptyable<Person.Dob>; /** * Documents that may be submitted to satisfy various informational requests. */ documents?: Person.Documents; /** * The person's email address. */ email?: string; /** * The person's first name. */ first_name?: string; /** * The Kana variation of the person's first name (Japan only). */ first_name_kana?: string; /** * The Kanji variation of the person's first name (Japan only). */ first_name_kanji?: string; /** * A list of alternate names or aliases that the person is known by. */ full_name_aliases?: Stripe.Emptyable<Array<string>>; /** * The person's gender (International regulations require either "male" or "female"). */ gender?: string; /** * The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii). */ id_number?: string; /** * The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii). */ id_number_secondary?: string; /** * The person's last name. */ last_name?: string; /** * The Kana variation of the person's last name (Japan only). */ last_name_kana?: string; /** * The Kanji variation of the person's last name (Japan only). */ last_name_kanji?: string; /** * The person's maiden name. */ maiden_name?: string; /** * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. */ metadata?: Stripe.Emptyable<Stripe.MetadataParam>; /** * The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable. */ nationality?: string; /** * The person's phone number. */ phone?: string; /** * Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. */ political_exposure?: string; /** * The person's registered address. */ registered_address?: Stripe.AddressParam; /** * The relationship that this person has with the account's legal entity. */ relationship?: Person.Relationship; /** * The last four digits of the person's Social Security number (U.S. only). */ ssn_last_4?: string; /** * The person's verification status. */ verification?: Person.Verification; } namespace Person { interface AdditionalTosAcceptances { /** * Details on the legal guardian's acceptance of the main Stripe service agreement. */ account?: AdditionalTosAcceptances.Account; } namespace AdditionalTosAcceptances { interface Account { /** * The Unix timestamp marking when the account representative accepted the service agreement. */ date?: number; /** * The IP address from which the account representative accepted the service agreement. */ ip?: string; /** * The user agent of the browser from which the account representative accepted the service agreement. */ user_agent?: Stripe.Emptyable<string>; } } interface Dob { /** * The day of birth, between 1 and 31. */ day: number; /** * The month of birth, between 1 and 12. */ month: number; /** * The four-digit year of birth. */ year: number; } interface Documents { /** * One or more documents that demonstrate proof that this person is authorized to represent the company. */ company_authorization?: Documents.CompanyAuthorization; /** * One or more documents showing the person's passport page with photo and personal data. */ passport?: Documents.Passport; /** * One or more documents showing the person's visa required for living in the country where they are residing. */ visa?: Documents.Visa; } namespace Documents { interface CompanyAuthorization { /** * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. */ files?: Array<string>; } interface Passport { /** * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. */ files?: Array<string>; } interface Visa { /** * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. */ files?: Array<string>; } } interface Relationship { /** * Whether the person is the authorizer of the account's representative. */ authorizer?: boolean; /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. */ director?: boolean; /** * Whether the person has significant responsibility to control, manage, or direct the organization. */ executive?: boolean; /** * Whether the person is the legal guardian of the account's representative. */ legal_guardian?: boolean; /** * Whether the person is an owner of the account's legal entity. */ owner?: boolean; /** * The percent owned by the person of the account's legal entity. */ percent_ownership?: Stripe.Emptyable<number>; /** * Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. */ representative?: boolean; /** * The person's title (e.g., CEO, Support Engineer). */ title?: string; } interface Verification { /** * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. */ additional_document?: Verification.AdditionalDocument; /** * An identifying document, either a passport or local ID card. */ document?: Verification.Document; } namespace Verification { interface AdditionalDocument { /** * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ back?: string; /** * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ front?: string; } interface Document { /** * The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ back?: string; /** * The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ front?: string; } } } interface Pii { /** * The `id_number` for the PII, in string form. */ id_number?: string; } } interface TokenRetrieveParams { /** * Specifies which fields in the response should be expanded. */ expand?: Array<string>; } class TokensResource { /** * Creates a single-use token that represents a bank account's details. * You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. */ create( params?: TokenCreateParams, options?: RequestOptions ): Promise<Stripe.Response<Stripe.Token>>; create(options?: RequestOptions): Promise<Stripe.Response<Stripe.Token>>; /** * Retrieves the token with the given ID. */ retrieve( id: string, params?: TokenRetrieveParams, options?: RequestOptions ): Promise<Stripe.Response<Stripe.Token>>; retrieve( id: string, options?: RequestOptions ): Promise<Stripe.Response<Stripe.Token>>; } } }
Save
cmd:
run