/
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/Subscriptions.d.ts
(30567B)
// File generated from our OpenAPI spec declare module 'stripe' { namespace Stripe { /** * Subscriptions allow you to charge a customer on a recurring basis. * * Related guide: [Creating subscriptions](https://stripe.com/docs/billing/subscriptions/creating) */ interface Subscription { /** * Unique identifier for the object. */ id: string; /** * String representing the object's type. Objects of the same type share the same value. */ object: 'subscription'; /** * ID of the Connect Application that created the subscription. */ application: | string | Stripe.Application | Stripe.DeletedApplication | null; /** * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. */ application_fee_percent: number | null; automatic_tax: Subscription.AutomaticTax; /** * The reference point that aligns future [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format. */ billing_cycle_anchor: number; /** * The fixed values used to calculate the `billing_cycle_anchor`. */ billing_cycle_anchor_config: Subscription.BillingCycleAnchorConfig | null; /** * Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period */ billing_thresholds: Subscription.BillingThresholds | null; /** * A date in the future at which the subscription will automatically get canceled */ cancel_at: number | null; /** * Whether this subscription will (if `status=active`) or did (if `status=canceled`) cancel at the end of the current billing period. */ cancel_at_period_end: boolean; /** * If the subscription has been canceled, the date of that cancellation. If the subscription was canceled with `cancel_at_period_end`, `canceled_at` will reflect the time of the most recent update request, not the end of the subscription period when the subscription is automatically moved to a canceled state. */ canceled_at: number | null; /** * Details about why this subscription was cancelled */ cancellation_details: Subscription.CancellationDetails | null; /** * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this subscription at the end of the cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions and mark the subscription as `active`. */ collection_method: Subscription.CollectionMethod; /** * Time at which the object was created. Measured in seconds since the Unix epoch. */ created: number; /** * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ currency: string; /** * End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created. */ current_period_end: number; /** * Start of the current period that the subscription has been invoiced for. */ current_period_start: number; /** * ID of the customer who owns the subscription. */ customer: string | Stripe.Customer | Stripe.DeletedCustomer; /** * Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`. */ days_until_due: number | null; /** * ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source). */ default_payment_method: string | Stripe.PaymentMethod | null; /** * ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source). */ default_source: string | Stripe.CustomerSource | null; /** * The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. */ default_tax_rates?: Array<Stripe.TaxRate> | null; /** * The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. */ description: string | null; /** * Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis. This field has been deprecated and will be removed in a future API version. Use `discounts` instead. */ discount: Stripe.Discount | null; /** * The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount. */ discounts: Array<string | Stripe.Discount>; /** * If the subscription has ended, the date the subscription ended. */ ended_at: number | null; invoice_settings: Subscription.InvoiceSettings; /** * List of subscription items, each with an attached price. */ items: ApiList<Stripe.SubscriptionItem>; /** * The most recent invoice this subscription has generated. */ latest_invoice: string | Stripe.Invoice | null; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. */ livemode: boolean; /** * 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. */ metadata: Stripe.Metadata; /** * Specifies the approximate timestamp on which any pending invoice items will be billed according to the schedule provided at `pending_invoice_item_interval`. */ next_pending_invoice_item_invoice: number | null; /** * The account (if any) the charge was made on behalf of for charges associated with this subscription. See the Connect documentation for details. */ on_behalf_of: string | Stripe.Account | null; /** * If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). */ pause_collection: Subscription.PauseCollection | null; /** * Payment settings passed on to invoices created by the subscription. */ payment_settings: Subscription.PaymentSettings | null; /** * Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://stripe.com/docs/api#create_invoice) for the given subscription at the specified interval. */ pending_invoice_item_interval: Subscription.PendingInvoiceItemInterval | null; /** * You can use this [SetupIntent](https://stripe.com/docs/api/setup_intents) to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-2). */ pending_setup_intent: string | Stripe.SetupIntent | null; /** * If specified, [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid. */ pending_update: Subscription.PendingUpdate | null; /** * The schedule attached to the subscription */ schedule: string | Stripe.SubscriptionSchedule | null; /** * Date when the subscription was first created. The date might differ from the `created` date due to backdating. */ start_date: number; /** * Possible values are `incomplete`, `incomplete_expired`, `trialing`, `active`, `past_due`, `canceled`, `unpaid`, or `paused`. * * For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this status can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` status. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal status, the open invoice will be voided and no further invoices will be generated. * * A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. * * A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. * * If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). * * If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. */ status: Subscription.Status; /** * ID of the test clock this subscription belongs to. */ test_clock: string | Stripe.TestHelpers.TestClock | null; /** * The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. */ transfer_data: Subscription.TransferData | null; /** * If the subscription has a trial, the end of that trial. */ trial_end: number | null; /** * Settings related to subscription trials. */ trial_settings: Subscription.TrialSettings | null; /** * If the subscription has a trial, the beginning of that trial. */ trial_start: number | null; } namespace Subscription { interface AutomaticTax { /** * If Stripe disabled automatic tax, this enum describes why. */ disabled_reason: 'requires_location_inputs' | null; /** * Whether Stripe automatically computes tax on this subscription. */ enabled: boolean; /** * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. */ liability: AutomaticTax.Liability | null; } namespace AutomaticTax { interface Liability { /** * The connected account being referenced when `type` is `account`. */ account?: string | Stripe.Account; /** * Type of the account referenced. */ type: Liability.Type; } namespace Liability { type Type = 'account' | 'self'; } } interface BillingCycleAnchorConfig { /** * The day of the month of the billing_cycle_anchor. */ day_of_month: number; /** * The hour of the day of the billing_cycle_anchor. */ hour: number | null; /** * The minute of the hour of the billing_cycle_anchor. */ minute: number | null; /** * The month to start full cycle billing periods. */ month: number | null; /** * The second of the minute of the billing_cycle_anchor. */ second: number | null; } interface BillingThresholds { /** * Monetary threshold that triggers the subscription to create an invoice */ amount_gte: number | null; /** * Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`. */ reset_billing_cycle_anchor: boolean | null; } interface CancellationDetails { /** * Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. */ comment: string | null; /** * The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. */ feedback: CancellationDetails.Feedback | null; /** * Why this subscription was canceled. */ reason: CancellationDetails.Reason | null; } namespace CancellationDetails { type Feedback = | 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused'; type Reason = | 'cancellation_requested' | 'payment_disputed' | 'payment_failed'; } type CollectionMethod = 'charge_automatically' | 'send_invoice'; interface InvoiceSettings { /** * The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. */ account_tax_ids: Array< string | Stripe.TaxId | Stripe.DeletedTaxId > | null; issuer: InvoiceSettings.Issuer; } namespace InvoiceSettings { interface Issuer { /** * The connected account being referenced when `type` is `account`. */ account?: string | Stripe.Account; /** * Type of the account referenced. */ type: Issuer.Type; } namespace Issuer { type Type = 'account' | 'self'; } } interface PauseCollection { /** * The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. */ behavior: PauseCollection.Behavior; /** * The time after which the subscription will resume collecting payments. */ resumes_at: number | null; } namespace PauseCollection { type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void'; } interface PaymentSettings { /** * Payment-method-specific configuration to provide to invoices created by the subscription. */ payment_method_options: PaymentSettings.PaymentMethodOptions | null; /** * The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). */ payment_method_types: Array<PaymentSettings.PaymentMethodType> | null; /** * Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`. */ save_default_payment_method: PaymentSettings.SaveDefaultPaymentMethod | null; } namespace PaymentSettings { interface PaymentMethodOptions { /** * This sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to invoices created by the subscription. */ acss_debit: PaymentMethodOptions.AcssDebit | null; /** * This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription. */ bancontact: PaymentMethodOptions.Bancontact | null; /** * This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription. */ card: PaymentMethodOptions.Card | null; /** * This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription. */ customer_balance: PaymentMethodOptions.CustomerBalance | null; /** * This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription. */ konbini: PaymentMethodOptions.Konbini | null; /** * This sub-hash contains details about the SEPA Direct Debit payment method options to pass to invoices created by the subscription. */ sepa_debit: PaymentMethodOptions.SepaDebit | null; /** * This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription. */ us_bank_account: PaymentMethodOptions.UsBankAccount | null; } namespace PaymentMethodOptions { interface AcssDebit { mandate_options?: AcssDebit.MandateOptions; /** * Bank account verification method. */ verification_method?: AcssDebit.VerificationMethod; } namespace AcssDebit { interface MandateOptions { /** * Transaction type of the mandate. */ transaction_type: MandateOptions.TransactionType | null; } namespace MandateOptions { type TransactionType = 'business' | 'personal'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; } interface Bancontact { /** * Preferred language of the Bancontact authorization page that the customer is redirected to. */ preferred_language: Bancontact.PreferredLanguage; } namespace Bancontact { type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; } interface Card { mandate_options?: Card.MandateOptions; /** * Selected network to process this Subscription on. Depends on the available networks of the card attached to the Subscription. Can be only set confirm-time. */ network: Card.Network | null; /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ request_three_d_secure: Card.RequestThreeDSecure | null; } namespace Card { interface MandateOptions { /** * Amount to be charged for future payments. */ amount: number | null; /** * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. */ amount_type: MandateOptions.AmountType | null; /** * A description of the mandate or subscription that is meant to be displayed to the customer. */ description: string | null; } namespace MandateOptions { type AmountType = 'fixed' | 'maximum'; } type Network = | 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'girocard' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; } interface CustomerBalance { bank_transfer?: CustomerBalance.BankTransfer; /** * The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. */ funding_type: 'bank_transfer' | null; } namespace CustomerBalance { interface BankTransfer { eu_bank_transfer?: BankTransfer.EuBankTransfer; /** * The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. */ type: string | null; } namespace BankTransfer { interface EuBankTransfer { /** * The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. */ country: EuBankTransfer.Country; } namespace EuBankTransfer { type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; } } } interface Konbini {} interface SepaDebit {} interface UsBankAccount { financial_connections?: UsBankAccount.FinancialConnections; /** * Bank account verification method. */ verification_method?: UsBankAccount.VerificationMethod; } namespace UsBankAccount { interface FinancialConnections { filters?: FinancialConnections.Filters; /** * The list of permissions to request. The `payment_method` permission must be included. */ permissions?: Array<FinancialConnections.Permission>; /** * Data features requested to be retrieved upon account creation. */ prefetch: Array<FinancialConnections.Prefetch> | null; } namespace FinancialConnections { interface Filters { /** * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. */ account_subcategories?: Array<Filters.AccountSubcategory>; } namespace Filters { type AccountSubcategory = 'checking' | 'savings'; } type Permission = | 'balances' | 'ownership' | 'payment_method' | 'transactions'; type Prefetch = 'balances' | 'ownership' | 'transactions'; } type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; } } type PaymentMethodType = | 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'p24' | 'payco' | 'paynow' | 'paypal' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'us_bank_account' | 'wechat_pay'; type SaveDefaultPaymentMethod = 'off' | 'on_subscription'; } interface PendingInvoiceItemInterval { /** * Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. */ interval: PendingInvoiceItemInterval.Interval; /** * The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). */ interval_count: number; } namespace PendingInvoiceItemInterval { type Interval = 'day' | 'month' | 'week' | 'year'; } interface PendingUpdate { /** * If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. */ billing_cycle_anchor: number | null; /** * The point after which the changes reflected by this update will be discarded and no longer applied. */ expires_at: number; /** * List of subscription items, each with an attached plan, that will be set if the update is applied. */ subscription_items: Array<Stripe.SubscriptionItem> | null; /** * Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied. */ trial_end: number | null; /** * Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more. */ trial_from_plan: boolean | null; } type Status = | 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid'; interface TransferData { /** * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. */ amount_percent: number | null; /** * The account where funds from the payment will be transferred to upon payment success. */ destination: string | Stripe.Account; } interface TrialSettings { /** * Defines how a subscription behaves when a free trial ends. */ end_behavior: TrialSettings.EndBehavior; } namespace TrialSettings { interface EndBehavior { /** * Indicates how the subscription should change when the trial ends if the user did not provide a payment method. */ missing_payment_method: EndBehavior.MissingPaymentMethod; } namespace EndBehavior { type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause'; } } } } }
Save
cmd:
run