Initial project import
This commit is contained in:
76
node_modules/stripe/esm/resources/AccountLinks.d.ts
generated
vendored
Normal file
76
node_modules/stripe/esm/resources/AccountLinks.d.ts
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../lib.js';
|
||||
export declare class AccountLinkResource extends StripeResource {
|
||||
/**
|
||||
* Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
|
||||
*/
|
||||
create(params: AccountLinkCreateParams, options?: RequestOptions): Promise<Response<AccountLink>>;
|
||||
}
|
||||
export 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;
|
||||
}
|
||||
export interface AccountLinkCreateParams {
|
||||
/**
|
||||
* The identifier of the account to create an account link for.
|
||||
*/
|
||||
account: string;
|
||||
/**
|
||||
* The type of account link the user is requesting.
|
||||
*
|
||||
* You can create Account Links of type `account_update` only for connected accounts where your platform is responsible for collecting requirements, including Custom accounts. You can't create them for accounts that have access to a Stripe-hosted Dashboard. If you use [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components), you can include components that allow your connected accounts to update their own information. For an account without Stripe-hosted Dashboard access where Stripe is liable for negative balances, you must use embedded components.
|
||||
*/
|
||||
type: AccountLinkCreateParams.Type;
|
||||
/**
|
||||
* The collect parameter is deprecated. Use `collection_options` instead.
|
||||
*/
|
||||
collect?: AccountLinkCreateParams.Collect;
|
||||
/**
|
||||
* Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
|
||||
*/
|
||||
collection_options?: AccountLinkCreateParams.CollectionOptions;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
|
||||
*/
|
||||
refresh_url?: string;
|
||||
/**
|
||||
* The URL that the user will be redirected to upon leaving or completing the linked flow.
|
||||
*/
|
||||
return_url?: string;
|
||||
}
|
||||
export declare namespace AccountLinkCreateParams {
|
||||
type Type = 'account_onboarding' | 'account_update';
|
||||
type Collect = 'currently_due' | 'eventually_due';
|
||||
interface CollectionOptions {
|
||||
/**
|
||||
* Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
|
||||
*/
|
||||
fields?: CollectionOptions.Fields;
|
||||
/**
|
||||
* Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
||||
*/
|
||||
future_requirements?: CollectionOptions.FutureRequirements;
|
||||
}
|
||||
namespace CollectionOptions {
|
||||
type Fields = 'currently_due' | 'eventually_due';
|
||||
type FutureRequirements = 'include' | 'omit';
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/AccountLinks.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/AccountLinks.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class AccountLinkResource extends StripeResource {
|
||||
/**
|
||||
* Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/account_links', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=AccountLinks.js.map
|
||||
1
node_modules/stripe/esm/resources/AccountLinks.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/AccountLinks.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AccountLinks.js","sourceRoot":"","sources":["../../src/resources/AccountLinks.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAGpD,MAAM,OAAO,mBAAoB,SAAQ,cAAc;IACrD;;OAEG;IACH,MAAM,CACJ,MAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,mBAAmB,EACnB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
1075
node_modules/stripe/esm/resources/AccountSessions.d.ts
generated
vendored
Normal file
1075
node_modules/stripe/esm/resources/AccountSessions.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
11
node_modules/stripe/esm/resources/AccountSessions.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/AccountSessions.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class AccountSessionResource extends StripeResource {
|
||||
/**
|
||||
* Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/account_sessions', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=AccountSessions.js.map
|
||||
1
node_modules/stripe/esm/resources/AccountSessions.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/AccountSessions.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AccountSessions.js","sourceRoot":"","sources":["../../src/resources/AccountSessions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAGpD,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;;OAEG;IACH,MAAM,CACJ,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
5296
node_modules/stripe/esm/resources/Accounts.d.ts
generated
vendored
Normal file
5296
node_modules/stripe/esm/resources/Accounts.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
178
node_modules/stripe/esm/resources/Accounts.js
generated
vendored
Normal file
178
node_modules/stripe/esm/resources/Accounts.js
generated
vendored
Normal file
@@ -0,0 +1,178 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class AccountResource extends StripeResource {
|
||||
/**
|
||||
* With [Connect](https://docs.stripe.com/connect), you can delete accounts you manage.
|
||||
*
|
||||
* Test-mode accounts can be deleted at any time.
|
||||
*
|
||||
* Live-mode accounts that have access to the standard dashboard and Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. All other Live-mode accounts, can be deleted when all [balances](https://docs.stripe.com/api/balance/balance_object) are zero.
|
||||
*
|
||||
* If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
|
||||
*/
|
||||
del(id, params, options) {
|
||||
return this._makeRequest('DELETE', `/v1/accounts/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves the details of an account. Pass `null` as the account id to retrieve details about your own account.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
if (typeof id === 'string') {
|
||||
return this._makeRequest('GET', `/v1/accounts/${id}`, params, options);
|
||||
}
|
||||
else {
|
||||
return this._makeRequest('GET', '/v1/account', params, options);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Updates a [connected account](https://docs.stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
|
||||
* left unchanged.
|
||||
*
|
||||
* For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
||||
* is application, which includes Custom accounts, you can update any information on the account.
|
||||
*
|
||||
* For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
|
||||
* is stripe, which includes Standard and Express accounts, you can update all information until you create
|
||||
* an [Account Link or <a href="/api/account_sessions">Account Session](https://docs.stripe.com/api/account_links) to start Connect onboarding,
|
||||
* after which some properties can no longer be updated.
|
||||
*
|
||||
* To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
|
||||
* [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves the details of an account.
|
||||
*/
|
||||
retrieveCurrent(params, options) {
|
||||
return this._makeRequest('GET', '/v1/account', params, options);
|
||||
}
|
||||
/**
|
||||
* Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/accounts', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* With [Connect](https://docs.stripe.com/docs/connect), you can create Stripe accounts for your users.
|
||||
* To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
|
||||
*
|
||||
* If you've already collected information for your connected accounts, you [can prefill that information](https://docs.stripe.com/docs/connect/best-practices#onboarding) when
|
||||
* creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
|
||||
* You can prefill any information on the account.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/accounts', params, options);
|
||||
}
|
||||
/**
|
||||
* With [Connect](https://docs.stripe.com/connect), you can reject accounts that you have flagged as suspicious.
|
||||
*
|
||||
* Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
|
||||
*/
|
||||
reject(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(id)}/reject`, params, options);
|
||||
}
|
||||
/**
|
||||
* Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.
|
||||
*/
|
||||
listCapabilities(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/accounts/${encodeURIComponent(id)}/capabilities`, params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves information about the specified Account Capability.
|
||||
*/
|
||||
retrieveCapability(accountId, id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/accounts/${encodeURIComponent(accountId)}/capabilities/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates an existing Account Capability. Request or remove a capability by updating its requested parameter.
|
||||
*/
|
||||
updateCapability(accountId, id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(accountId)}/capabilities/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Delete a specified external account for a given account.
|
||||
*/
|
||||
deleteExternalAccount(accountId, id, params, options) {
|
||||
return this._makeRequest('DELETE', `/v1/accounts/${encodeURIComponent(accountId)}/external_accounts/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieve a specified external account for a given account.
|
||||
*/
|
||||
retrieveExternalAccount(accountId, id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/accounts/${encodeURIComponent(accountId)}/external_accounts/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates the metadata, account holder name, account holder type of a bank account belonging to
|
||||
* a connected account and optionally sets it as the default for its currency. Other bank account
|
||||
* details are not editable by design.
|
||||
*
|
||||
* You can only update bank accounts when [account.controller.requirement_collection is application, which includes <a href="/connect/custom-accounts">Custom accounts](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection).
|
||||
*
|
||||
* You can re-enable a disabled bank account by performing an update call without providing any
|
||||
* arguments or changes.
|
||||
*/
|
||||
updateExternalAccount(accountId, id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(accountId)}/external_accounts/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* List external accounts for an account.
|
||||
*/
|
||||
listExternalAccounts(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/accounts/${encodeURIComponent(id)}/external_accounts`, params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create an external account for a given account.
|
||||
*/
|
||||
createExternalAccount(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(id)}/external_accounts`, params, options);
|
||||
}
|
||||
/**
|
||||
* Creates a login link for a connected account to access the Express Dashboard.
|
||||
*
|
||||
* You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform.
|
||||
*/
|
||||
createLoginLink(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(id)}/login_links`, params, options);
|
||||
}
|
||||
/**
|
||||
* Deletes an existing person's relationship to the account's legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the account_opener. If your integration is using the executive parameter, you cannot delete the only verified executive on file.
|
||||
*/
|
||||
deletePerson(accountId, id, params, options) {
|
||||
return this._makeRequest('DELETE', `/v1/accounts/${encodeURIComponent(accountId)}/persons/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves an existing person.
|
||||
*/
|
||||
retrievePerson(accountId, id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/accounts/${encodeURIComponent(accountId)}/persons/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates an existing person.
|
||||
*/
|
||||
updatePerson(accountId, id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(accountId)}/persons/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first.
|
||||
*/
|
||||
listPersons(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/accounts/${encodeURIComponent(id)}/persons`, params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a new person.
|
||||
*/
|
||||
createPerson(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/accounts/${encodeURIComponent(id)}/persons`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Accounts.js.map
|
||||
1
node_modules/stripe/esm/resources/Accounts.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Accounts.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Accounts.js","sourceRoot":"","sources":["../../src/resources/Accounts.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAmBpD,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD;;;;;;;;OAQG;IACH,GAAG,CACD,EAAU,EACV,MAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACxC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAiB,EACjB,MAA8B,EAC9B,OAAwB;QAExB,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;YAC1B,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gBAAgB,EAAE,EAAE,EACpB,MAAM,EACN,OAAO,CACD,CAAC;SACV;aAAM;YACL,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAQ,CAAC;SACxE;IACH,CAAC;IACD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAU,EACV,MAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACxC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,eAAe,CACb,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAQ,CAAC;IACzE,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE;YAC/D,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;;;;;;OAOG;IACH,MAAM,CACJ,MAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAQ,CAAC;IAC3E,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,MAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,gBAAgB,CACd,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,eAAe,EACrD,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,kBAAkB,CAChB,SAAiB,EACjB,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gBAAgB,kBAAkB,CAChC,SAAS,CACV,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC1C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,gBAAgB,CACd,SAAiB,EACjB,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAChC,SAAS,CACV,iBAAiB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC1C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,qBAAqB,CACnB,SAAiB,EACjB,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,gBAAgB,kBAAkB,CAChC,SAAS,CACV,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,uBAAuB,CACrB,SAAiB,EACjB,EAAU,EACV,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gBAAgB,kBAAkB,CAChC,SAAS,CACV,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;;;;;OASG;IACH,qBAAqB,CACnB,SAAiB,EACjB,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAChC,SAAS,CACV,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,oBAAoB,CAClB,EAAU,EACV,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,oBAAoB,EAC1D,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,qBAAqB,CACnB,EAAU,EACV,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,oBAAoB,EAC1D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,eAAe,CACb,EAAU,EACV,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,cAAc,EACpD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,YAAY,CACV,SAAiB,EACjB,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,gBAAgB,kBAAkB,CAChC,SAAS,CACV,YAAY,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,cAAc,CACZ,SAAiB,EACjB,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gBAAgB,kBAAkB,CAChC,SAAS,CACV,YAAY,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,YAAY,CACV,SAAiB,EACjB,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAChC,SAAS,CACV,YAAY,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,WAAW,CACT,EAAU,EACV,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAChD,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,YAAY,CACV,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,gBAAgB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAChD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
80
node_modules/stripe/esm/resources/ApplePayDomains.d.ts
generated
vendored
Normal file
80
node_modules/stripe/esm/resources/ApplePayDomains.d.ts
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { PaginationParams } from '../shared.js';
|
||||
import { RequestOptions, Response, ApiListPromise } from '../lib.js';
|
||||
export declare class ApplePayDomainResource extends StripeResource {
|
||||
/**
|
||||
* Delete an apple pay domain.
|
||||
*/
|
||||
del(id: string, params?: ApplePayDomainDeleteParams, options?: RequestOptions): Promise<Response<DeletedApplePayDomain>>;
|
||||
/**
|
||||
* Retrieve an apple pay domain.
|
||||
*/
|
||||
retrieve(id: string, params?: ApplePayDomainRetrieveParams, options?: RequestOptions): Promise<Response<ApplePayDomain>>;
|
||||
/**
|
||||
* List apple pay domains.
|
||||
*/
|
||||
list(params?: ApplePayDomainListParams, options?: RequestOptions): ApiListPromise<ApplePayDomain>;
|
||||
/**
|
||||
* Create an apple pay domain.
|
||||
*/
|
||||
create(params: ApplePayDomainCreateParams, options?: RequestOptions): Promise<Response<ApplePayDomain>>;
|
||||
}
|
||||
export interface ApplePayDomain {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'apple_pay_domain';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted?: void;
|
||||
domain_name: string;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
}
|
||||
export interface DeletedApplePayDomain {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'apple_pay_domain';
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted: true;
|
||||
}
|
||||
export interface ApplePayDomainCreateParams {
|
||||
domain_name: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface ApplePayDomainRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface ApplePayDomainListParams extends PaginationParams {
|
||||
domain_name?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface ApplePayDomainDeleteParams {
|
||||
}
|
||||
31
node_modules/stripe/esm/resources/ApplePayDomains.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/ApplePayDomains.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class ApplePayDomainResource extends StripeResource {
|
||||
/**
|
||||
* Delete an apple pay domain.
|
||||
*/
|
||||
del(id, params, options) {
|
||||
return this._makeRequest('DELETE', `/v1/apple_pay/domains/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieve an apple pay domain.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/apple_pay/domains/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* List apple pay domains.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/apple_pay/domains', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create an apple pay domain.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/apple_pay/domains', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ApplePayDomains.js.map
|
||||
1
node_modules/stripe/esm/resources/ApplePayDomains.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/ApplePayDomains.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ApplePayDomains.js","sourceRoot":"","sources":["../../src/resources/ApplePayDomains.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAIpD,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;;OAEG;IACH,GAAG,CACD,EAAU,EACV,MAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,QAAQ,EACR,yBAAyB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACjD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,yBAAyB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACjD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,uBAAuB,EAAE,MAAM,EAAE,OAAO,EAAE;YACxE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,uBAAuB,EACvB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
181
node_modules/stripe/esm/resources/ApplicationFees.d.ts
generated
vendored
Normal file
181
node_modules/stripe/esm/resources/ApplicationFees.d.ts
generated
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { FeeRefund } from './FeeRefunds.js';
|
||||
import { Account } from './Accounts.js';
|
||||
import { Application } from './Applications.js';
|
||||
import { BalanceTransaction } from './BalanceTransactions.js';
|
||||
import { Charge } from './Charges.js';
|
||||
import { PaginationParams, RangeQueryParam, MetadataParam, Emptyable } from '../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response, ApiList } from '../lib.js';
|
||||
export declare class ApplicationFeeResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
|
||||
*/
|
||||
list(params?: ApplicationFeeListParams, options?: RequestOptions): ApiListPromise<ApplicationFee>;
|
||||
/**
|
||||
* Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
|
||||
*/
|
||||
retrieve(id: string, params?: ApplicationFeeRetrieveParams, options?: RequestOptions): Promise<Response<ApplicationFee>>;
|
||||
/**
|
||||
* By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee.
|
||||
*/
|
||||
retrieveRefund(feeId: string, id: string, params?: ApplicationFeeRetrieveRefundParams, options?: RequestOptions): Promise<Response<FeeRefund>>;
|
||||
/**
|
||||
* Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*
|
||||
* This request only accepts metadata as an argument.
|
||||
*/
|
||||
updateRefund(feeId: string, id: string, params?: ApplicationFeeUpdateRefundParams, options?: RequestOptions): Promise<Response<FeeRefund>>;
|
||||
/**
|
||||
* You can see a list of the refunds belonging to a specific application fee. Note that the 10 most recent refunds are always available by default on the application fee object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds.
|
||||
*/
|
||||
listRefunds(id: string, params?: ApplicationFeeListRefundsParams, options?: RequestOptions): ApiListPromise<FeeRefund>;
|
||||
/**
|
||||
* Refunds an application fee that has previously been collected but not yet refunded.
|
||||
* Funds will be refunded to the Stripe account from which the fee was originally collected.
|
||||
*
|
||||
* You can optionally refund only part of an application fee.
|
||||
* You can do so multiple times, until the entire fee has been refunded.
|
||||
*
|
||||
* Once entirely refunded, an application fee can't be refunded again.
|
||||
* This method will raise an error when called on an already-refunded application fee,
|
||||
* or when trying to refund more money than is left on an application fee.
|
||||
*/
|
||||
createRefund(id: string, params?: ApplicationFeeCreateRefundParams, options?: RequestOptions): Promise<Response<FeeRefund>>;
|
||||
}
|
||||
export interface ApplicationFee {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'application_fee';
|
||||
/**
|
||||
* ID of the Stripe account this fee was taken from.
|
||||
*/
|
||||
account: string | Account;
|
||||
/**
|
||||
* Amount earned, in cents (or local equivalent).
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
|
||||
*/
|
||||
amount_refunded: number;
|
||||
/**
|
||||
* ID of the Connect application that earned the fee.
|
||||
*/
|
||||
application: string | Application;
|
||||
/**
|
||||
* Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
|
||||
*/
|
||||
balance_transaction: string | BalanceTransaction | null;
|
||||
/**
|
||||
* ID of the charge that the application fee was taken from.
|
||||
*/
|
||||
charge: string | Charge;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.
|
||||
*/
|
||||
fee_source: ApplicationFee.FeeSource | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* ID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter.
|
||||
*/
|
||||
originating_transaction: string | Charge | null;
|
||||
/**
|
||||
* Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
|
||||
*/
|
||||
refunded: boolean;
|
||||
/**
|
||||
* A list of refunds that have been applied to the fee.
|
||||
*/
|
||||
refunds: ApiList<FeeRefund>;
|
||||
}
|
||||
export declare namespace ApplicationFee {
|
||||
interface FeeSource {
|
||||
/**
|
||||
* Charge ID that created this application fee.
|
||||
*/
|
||||
charge?: string;
|
||||
/**
|
||||
* Payout ID that created this application fee.
|
||||
*/
|
||||
payout?: string;
|
||||
/**
|
||||
* Type of object that created the application fee.
|
||||
*/
|
||||
type: FeeSource.Type;
|
||||
}
|
||||
namespace FeeSource {
|
||||
type Type = 'charge' | 'payout';
|
||||
}
|
||||
}
|
||||
export interface ApplicationFeeRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface ApplicationFeeListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return application fees for the charge specified by this charge ID.
|
||||
*/
|
||||
charge?: string;
|
||||
/**
|
||||
* Only return applications fees that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface ApplicationFeeCreateRefundParams {
|
||||
/**
|
||||
* A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee.
|
||||
*/
|
||||
amount?: number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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?: MetadataParam;
|
||||
}
|
||||
export interface ApplicationFeeListRefundsParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface ApplicationFeeRetrieveRefundParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface ApplicationFeeUpdateRefundParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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?: Emptyable<MetadataParam>;
|
||||
}
|
||||
55
node_modules/stripe/esm/resources/ApplicationFees.js
generated
vendored
Normal file
55
node_modules/stripe/esm/resources/ApplicationFees.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class ApplicationFeeResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/application_fees', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/application_fees/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee.
|
||||
*/
|
||||
retrieveRefund(feeId, id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/application_fees/${encodeURIComponent(feeId)}/refunds/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*
|
||||
* This request only accepts metadata as an argument.
|
||||
*/
|
||||
updateRefund(feeId, id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/application_fees/${encodeURIComponent(feeId)}/refunds/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* You can see a list of the refunds belonging to a specific application fee. Note that the 10 most recent refunds are always available by default on the application fee object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds.
|
||||
*/
|
||||
listRefunds(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/application_fees/${encodeURIComponent(id)}/refunds`, params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Refunds an application fee that has previously been collected but not yet refunded.
|
||||
* Funds will be refunded to the Stripe account from which the fee was originally collected.
|
||||
*
|
||||
* You can optionally refund only part of an application fee.
|
||||
* You can do so multiple times, until the entire fee has been refunded.
|
||||
*
|
||||
* Once entirely refunded, an application fee can't be refunded again.
|
||||
* This method will raise an error when called on an already-refunded application fee,
|
||||
* or when trying to refund more money than is left on an application fee.
|
||||
*/
|
||||
createRefund(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/application_fees/${encodeURIComponent(id)}/refunds`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ApplicationFees.js.map
|
||||
1
node_modules/stripe/esm/resources/ApplicationFees.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/ApplicationFees.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ApplicationFees.js","sourceRoot":"","sources":["../../src/resources/ApplicationFees.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAcpD,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;;OAEG;IACH,IAAI,CACF,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,sBAAsB,EAAE,MAAM,EAAE,OAAO,EAAE;YACvE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAChD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,cAAc,CACZ,KAAa,EACb,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,wBAAwB,kBAAkB,CACxC,KAAK,CACN,YAAY,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,YAAY,CACV,KAAa,EACb,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,wBAAwB,kBAAkB,CACxC,KAAK,CACN,YAAY,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,WAAW,CACT,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EACxD,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;;;;;;;;;OAUG;IACH,YAAY,CACV,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EACxD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
36
node_modules/stripe/esm/resources/Applications.d.ts
generated
vendored
Normal file
36
node_modules/stripe/esm/resources/Applications.d.ts
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
export interface Application {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'application';
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted?: void;
|
||||
/**
|
||||
* The name of the application.
|
||||
*/
|
||||
name: string | null;
|
||||
}
|
||||
export interface DeletedApplication {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'application';
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted: true;
|
||||
/**
|
||||
* The name of the application.
|
||||
*/
|
||||
name: string | null;
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/Applications.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/Applications.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=Applications.js.map
|
||||
1
node_modules/stripe/esm/resources/Applications.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Applications.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Applications.js","sourceRoot":"","sources":["../../src/resources/Applications.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
201
node_modules/stripe/esm/resources/Apps/Secrets.d.ts
generated
vendored
Normal file
201
node_modules/stripe/esm/resources/Apps/Secrets.d.ts
generated
vendored
Normal file
@@ -0,0 +1,201 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { PaginationParams } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class SecretResource extends StripeResource {
|
||||
/**
|
||||
* List all secrets stored on the given scope.
|
||||
*/
|
||||
list(params: Apps.SecretListParams, options?: RequestOptions): ApiListPromise<Secret>;
|
||||
/**
|
||||
* Create or replace a secret in the secret store.
|
||||
*/
|
||||
create(params: Apps.SecretCreateParams, options?: RequestOptions): Promise<Response<Secret>>;
|
||||
/**
|
||||
* Finds a secret in the secret store by name and scope.
|
||||
*/
|
||||
find(params: Apps.SecretFindParams, options?: RequestOptions): Promise<Response<Secret>>;
|
||||
/**
|
||||
* Deletes a secret from the secret store by name and scope.
|
||||
*/
|
||||
deleteWhere(params: Apps.SecretDeleteWhereParams, options?: RequestOptions): Promise<Response<Secret>>;
|
||||
}
|
||||
export interface Secret {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'apps.secret';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* If true, indicates that this secret has been deleted
|
||||
*/
|
||||
deleted?: boolean;
|
||||
/**
|
||||
* The Unix timestamp for the expiry time of the secret, after which the secret deletes.
|
||||
*/
|
||||
expires_at: number | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The plaintext secret value to be stored.
|
||||
*/
|
||||
payload?: string | null;
|
||||
scope: Apps.Secret.Scope;
|
||||
}
|
||||
export declare namespace Apps {
|
||||
namespace Secret {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID, if type is set to "user"
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretCreateParams {
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The plaintext secret value to be stored.
|
||||
*/
|
||||
payload: string;
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretCreateParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The Unix timestamp for the expiry time of the secret, after which the secret deletes.
|
||||
*/
|
||||
expires_at?: number;
|
||||
}
|
||||
namespace SecretCreateParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretListParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretListParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace SecretListParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretDeleteWhereParams {
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretDeleteWhereParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace SecretDeleteWhereParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Apps {
|
||||
interface SecretFindParams {
|
||||
/**
|
||||
* A name for the secret that's unique within the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Specifies the scoping of the secret. Requests originating from UI extensions can only access account-scoped secrets or secrets scoped to their own user.
|
||||
*/
|
||||
scope: SecretFindParams.Scope;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace SecretFindParams {
|
||||
interface Scope {
|
||||
/**
|
||||
* The secret scope type.
|
||||
*/
|
||||
type: Scope.Type;
|
||||
/**
|
||||
* The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`.
|
||||
*/
|
||||
user?: string;
|
||||
}
|
||||
namespace Scope {
|
||||
type Type = 'account' | 'user';
|
||||
}
|
||||
}
|
||||
}
|
||||
31
node_modules/stripe/esm/resources/Apps/Secrets.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/Apps/Secrets.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class SecretResource extends StripeResource {
|
||||
/**
|
||||
* List all secrets stored on the given scope.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/apps/secrets', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create or replace a secret in the secret store.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/apps/secrets', params, options);
|
||||
}
|
||||
/**
|
||||
* Finds a secret in the secret store by name and scope.
|
||||
*/
|
||||
find(params, options) {
|
||||
return this._makeRequest('GET', '/v1/apps/secrets/find', params, options);
|
||||
}
|
||||
/**
|
||||
* Deletes a secret from the secret store by name and scope.
|
||||
*/
|
||||
deleteWhere(params, options) {
|
||||
return this._makeRequest('POST', '/v1/apps/secrets/delete', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Secrets.js.map
|
||||
1
node_modules/stripe/esm/resources/Apps/Secrets.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Apps/Secrets.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Secrets.js","sourceRoot":"","sources":["../../../src/resources/Apps/Secrets.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAIvD,MAAM,OAAO,cAAe,SAAQ,cAAc;IAChD;;OAEG;IACH,IAAI,CACF,MAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE;YACnE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,kBAAkB,EAClB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,IAAI,CACF,MAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,uBAAuB,EACvB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,WAAW,CACT,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,yBAAyB,EACzB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
15
node_modules/stripe/esm/resources/Apps/index.d.ts
generated
vendored
Normal file
15
node_modules/stripe/esm/resources/Apps/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Apps as AppsNamespace0, Secret, SecretResource } from './Secrets.js';
|
||||
export { Secret } from './Secrets.js';
|
||||
export declare class Apps {
|
||||
private readonly stripe;
|
||||
secrets: SecretResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Apps {
|
||||
export import SecretListParams = AppsNamespace0.SecretListParams;
|
||||
export import SecretCreateParams = AppsNamespace0.SecretCreateParams;
|
||||
export import SecretFindParams = AppsNamespace0.SecretFindParams;
|
||||
export import SecretDeleteWhereParams = AppsNamespace0.SecretDeleteWhereParams;
|
||||
export { Secret };
|
||||
}
|
||||
9
node_modules/stripe/esm/resources/Apps/index.js
generated
vendored
Normal file
9
node_modules/stripe/esm/resources/Apps/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { SecretResource } from './Secrets.js';
|
||||
export class Apps {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.secrets = new SecretResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/Apps/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Apps/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Apps/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAAiC,cAAc,EAAC,MAAM,cAAc,CAAC;AAI5E,MAAM,OAAO,IAAI;IAGf,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACF"}
|
||||
285
node_modules/stripe/esm/resources/Balance.d.ts
generated
vendored
Normal file
285
node_modules/stripe/esm/resources/Balance.d.ts
generated
vendored
Normal file
@@ -0,0 +1,285 @@
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../lib.js';
|
||||
export declare class BalanceResource extends StripeResource {
|
||||
/**
|
||||
* Retrieves the current account balance, based on the authentication that was used to make the request.
|
||||
* For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
|
||||
*/
|
||||
retrieve(params?: BalanceRetrieveParams, options?: RequestOptions): Promise<Response<Balance>>;
|
||||
}
|
||||
export interface Balance {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'balance';
|
||||
/**
|
||||
* Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://api.stripe.com#transfers) or [Payouts API](https://api.stripe.com#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
|
||||
*/
|
||||
available: Array<Balance.Available>;
|
||||
/**
|
||||
* Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
|
||||
*/
|
||||
connect_reserved?: Array<Balance.ConnectReserved>;
|
||||
/**
|
||||
* Funds that you can pay out using Instant Payouts.
|
||||
*/
|
||||
instant_available?: Array<Balance.InstantAvailable>;
|
||||
issuing?: Balance.Issuing;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
|
||||
*/
|
||||
pending: Array<Balance.Pending>;
|
||||
refund_and_dispute_prefunding?: Balance.RefundAndDisputePrefunding;
|
||||
}
|
||||
export declare namespace Balance {
|
||||
interface Available {
|
||||
/**
|
||||
* Balance amount.
|
||||
*/
|
||||
amount: 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;
|
||||
source_types?: Available.SourceTypes;
|
||||
}
|
||||
interface ConnectReserved {
|
||||
/**
|
||||
* Balance amount.
|
||||
*/
|
||||
amount: 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;
|
||||
source_types?: ConnectReserved.SourceTypes;
|
||||
}
|
||||
interface InstantAvailable {
|
||||
/**
|
||||
* Balance amount.
|
||||
*/
|
||||
amount: 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;
|
||||
/**
|
||||
* Breakdown of balance by destination.
|
||||
*/
|
||||
net_available?: Array<InstantAvailable.NetAvailable>;
|
||||
source_types?: InstantAvailable.SourceTypes;
|
||||
}
|
||||
interface Issuing {
|
||||
/**
|
||||
* Funds that are available for use.
|
||||
*/
|
||||
available: Array<Issuing.Available>;
|
||||
}
|
||||
interface Pending {
|
||||
/**
|
||||
* Balance amount.
|
||||
*/
|
||||
amount: 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;
|
||||
source_types?: Pending.SourceTypes;
|
||||
}
|
||||
interface RefundAndDisputePrefunding {
|
||||
/**
|
||||
* Funds that are available for use.
|
||||
*/
|
||||
available: Array<RefundAndDisputePrefunding.Available>;
|
||||
/**
|
||||
* Funds that are pending
|
||||
*/
|
||||
pending: Array<RefundAndDisputePrefunding.Pending>;
|
||||
}
|
||||
namespace Available {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
namespace ConnectReserved {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
namespace InstantAvailable {
|
||||
interface NetAvailable {
|
||||
/**
|
||||
* Net balance amount, subtracting fees from platform-set pricing.
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* ID of the external account for this net balance (not expandable).
|
||||
*/
|
||||
destination: string;
|
||||
source_types?: NetAvailable.SourceTypes;
|
||||
}
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
namespace NetAvailable {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace Issuing {
|
||||
interface Available {
|
||||
/**
|
||||
* Balance amount.
|
||||
*/
|
||||
amount: 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;
|
||||
source_types?: Available.SourceTypes;
|
||||
}
|
||||
namespace Available {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace Pending {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
namespace RefundAndDisputePrefunding {
|
||||
interface Available {
|
||||
/**
|
||||
* Balance amount.
|
||||
*/
|
||||
amount: 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;
|
||||
source_types?: Available.SourceTypes;
|
||||
}
|
||||
interface Pending {
|
||||
/**
|
||||
* Balance amount.
|
||||
*/
|
||||
amount: 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;
|
||||
source_types?: Pending.SourceTypes;
|
||||
}
|
||||
namespace Available {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
namespace Pending {
|
||||
interface SourceTypes {
|
||||
/**
|
||||
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
||||
*/
|
||||
bank_account?: number;
|
||||
/**
|
||||
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
||||
*/
|
||||
card?: number;
|
||||
/**
|
||||
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
||||
*/
|
||||
fpx?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export interface BalanceRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
12
node_modules/stripe/esm/resources/Balance.js
generated
vendored
Normal file
12
node_modules/stripe/esm/resources/Balance.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class BalanceResource extends StripeResource {
|
||||
/**
|
||||
* Retrieves the current account balance, based on the authentication that was used to make the request.
|
||||
* For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances).
|
||||
*/
|
||||
retrieve(params, options) {
|
||||
return this._makeRequest('GET', '/v1/balance', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Balance.js.map
|
||||
1
node_modules/stripe/esm/resources/Balance.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Balance.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Balance.js","sourceRoot":"","sources":["../../src/resources/Balance.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAGpD,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD;;;OAGG;IACH,QAAQ,CACN,MAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAQ,CAAC;IACzE,CAAC;CACF"}
|
||||
250
node_modules/stripe/esm/resources/BalanceSettings.d.ts
generated
vendored
Normal file
250
node_modules/stripe/esm/resources/BalanceSettings.d.ts
generated
vendored
Normal file
@@ -0,0 +1,250 @@
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { Emptyable } from '../shared.js';
|
||||
import { RequestOptions, Response } from '../lib.js';
|
||||
export declare class BalanceSettingResource extends StripeResource {
|
||||
/**
|
||||
* Retrieves balance settings for a given connected account.
|
||||
* Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
||||
*/
|
||||
retrieve(params?: BalanceSettingsRetrieveParams, options?: RequestOptions): Promise<Response<BalanceSettings>>;
|
||||
/**
|
||||
* Updates balance settings for a given connected account.
|
||||
* Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
||||
*/
|
||||
update(params?: BalanceSettingsUpdateParams, options?: RequestOptions): Promise<Response<BalanceSettings>>;
|
||||
}
|
||||
export interface BalanceSettings {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'balance_settings';
|
||||
payments: BalanceSettings.Payments;
|
||||
}
|
||||
export declare namespace BalanceSettings {
|
||||
interface Payments {
|
||||
/**
|
||||
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
||||
*/
|
||||
debit_negative_balances: boolean | null;
|
||||
/**
|
||||
* Settings specific to the account's payouts.
|
||||
*/
|
||||
payouts: Payments.Payouts | null;
|
||||
settlement_timing: Payments.SettlementTiming;
|
||||
}
|
||||
namespace Payments {
|
||||
interface Payouts {
|
||||
/**
|
||||
* Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount.
|
||||
*/
|
||||
automatic_transfer_rules_by_currency: {
|
||||
[key: string]: Array<Payouts.AutomaticTransferRulesByCurrency>;
|
||||
} | null;
|
||||
/**
|
||||
* The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts).
|
||||
*/
|
||||
minimum_balance_by_currency: {
|
||||
[key: string]: number;
|
||||
} | null;
|
||||
/**
|
||||
* Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation for details.
|
||||
*/
|
||||
schedule: Payouts.Schedule | null;
|
||||
/**
|
||||
* The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
||||
*/
|
||||
statement_descriptor: string | null;
|
||||
/**
|
||||
* Whether the funds in this account can be paid out.
|
||||
*/
|
||||
status: Payouts.Status;
|
||||
}
|
||||
interface SettlementTiming {
|
||||
/**
|
||||
* The number of days charge funds are held before becoming available.
|
||||
*/
|
||||
delay_days: number;
|
||||
/**
|
||||
* The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account.
|
||||
*/
|
||||
delay_days_override?: number;
|
||||
/**
|
||||
* Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation.
|
||||
*/
|
||||
start_of_day: SettlementTiming.StartOfDay | null;
|
||||
}
|
||||
namespace Payouts {
|
||||
interface AutomaticTransferRulesByCurrency {
|
||||
/**
|
||||
* The ID of the FinancialAccount that funds will be transferred to during automatic transfers.
|
||||
*/
|
||||
payout_method: string;
|
||||
/**
|
||||
* The maximum amount in minor units to transfer to the FinancialAccount. Only applicable when `type` is `transfer_up_to_amount`.
|
||||
*/
|
||||
transfer_up_to_amount: number | null;
|
||||
/**
|
||||
* The type of automatic transfer rule.
|
||||
*/
|
||||
type: AutomaticTransferRulesByCurrency.Type;
|
||||
}
|
||||
interface Schedule {
|
||||
/**
|
||||
* How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
|
||||
*/
|
||||
interval: Schedule.Interval | null;
|
||||
/**
|
||||
* The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
|
||||
*/
|
||||
monthly_payout_days?: Array<number>;
|
||||
/**
|
||||
* The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
|
||||
*/
|
||||
weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
|
||||
}
|
||||
type Status = 'disabled' | 'enabled';
|
||||
namespace AutomaticTransferRulesByCurrency {
|
||||
type Type = 'transfer_all' | 'transfer_up_to_amount';
|
||||
}
|
||||
namespace Schedule {
|
||||
type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
|
||||
type WeeklyPayoutDay = 'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday';
|
||||
}
|
||||
}
|
||||
namespace SettlementTiming {
|
||||
interface StartOfDay {
|
||||
/**
|
||||
* Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs).
|
||||
*/
|
||||
hour: number;
|
||||
/**
|
||||
* Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30.
|
||||
*/
|
||||
minutes: number;
|
||||
/**
|
||||
* Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs).
|
||||
*/
|
||||
timezone: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export interface BalanceSettingsRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface BalanceSettingsUpdateParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
|
||||
*/
|
||||
payments?: BalanceSettingsUpdateParams.Payments;
|
||||
}
|
||||
export declare namespace BalanceSettingsUpdateParams {
|
||||
interface Payments {
|
||||
/**
|
||||
* A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
|
||||
*/
|
||||
debit_negative_balances?: boolean;
|
||||
/**
|
||||
* Settings specific to the account's payouts.
|
||||
*/
|
||||
payouts?: Payments.Payouts;
|
||||
/**
|
||||
* Settings related to the account's balance settlement timing.
|
||||
*/
|
||||
settlement_timing?: Payments.SettlementTiming;
|
||||
}
|
||||
namespace Payments {
|
||||
interface Payouts {
|
||||
/**
|
||||
* Configures per-currency rules for automatically transferring funds from the payments balance to a FinancialAccount.
|
||||
*/
|
||||
automatic_transfer_rules_by_currency?: Emptyable<{
|
||||
[key: string]: Emptyable<Array<Payouts.AutomaticTransferRulesByCurrency>>;
|
||||
}>;
|
||||
/**
|
||||
* The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts).
|
||||
*/
|
||||
minimum_balance_by_currency?: Emptyable<{
|
||||
[key: string]: Emptyable<number>;
|
||||
}>;
|
||||
/**
|
||||
* Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
|
||||
*/
|
||||
schedule?: Payouts.Schedule;
|
||||
/**
|
||||
* The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
||||
*/
|
||||
statement_descriptor?: string;
|
||||
}
|
||||
interface SettlementTiming {
|
||||
/**
|
||||
* Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](https://docs.stripe.com/connect/manage-payout-schedule).
|
||||
*/
|
||||
delay_days_override?: Emptyable<number>;
|
||||
/**
|
||||
* Customized start of day configuration for automatic payouts to group and send payments in local timezones with a customized day starting time. For details, see our [Customized start of day](https://docs.stripe.com/connect/customized-start-of-day) documentation.
|
||||
*/
|
||||
start_of_day?: Emptyable<SettlementTiming.StartOfDay>;
|
||||
}
|
||||
namespace Payouts {
|
||||
interface AutomaticTransferRulesByCurrency {
|
||||
/**
|
||||
* The ID of the FinancialAccount that funds will be transferred to during automatic transfers.
|
||||
*/
|
||||
payout_method: string;
|
||||
/**
|
||||
* The maximum amount in minor units to transfer to the FinancialAccount. Required and only applicable when `type` is `transfer_up_to_amount`.
|
||||
*/
|
||||
transfer_up_to_amount?: number;
|
||||
/**
|
||||
* The type of automatic transfer rule.
|
||||
*/
|
||||
type: AutomaticTransferRulesByCurrency.Type;
|
||||
}
|
||||
interface Schedule {
|
||||
/**
|
||||
* How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
|
||||
*/
|
||||
interval?: Schedule.Interval;
|
||||
/**
|
||||
* The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
||||
*/
|
||||
monthly_payout_days?: Array<number>;
|
||||
/**
|
||||
* The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.
|
||||
*/
|
||||
weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
|
||||
}
|
||||
namespace AutomaticTransferRulesByCurrency {
|
||||
type Type = 'transfer_all' | 'transfer_up_to_amount';
|
||||
}
|
||||
namespace Schedule {
|
||||
type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
|
||||
type WeeklyPayoutDay = 'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday';
|
||||
}
|
||||
}
|
||||
namespace SettlementTiming {
|
||||
interface StartOfDay {
|
||||
/**
|
||||
* Hour at which the customized start of day begins according to the given timezone. Must be a [supported customized start of day hour](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs).
|
||||
*/
|
||||
hour?: number;
|
||||
/**
|
||||
* Minutes at which the customized start of day begins according to the given timezone. Must be either 0 or 30.
|
||||
*/
|
||||
minutes?: number;
|
||||
/**
|
||||
* Timezone for the customized start of day. Must be a [supported customized start of day timezone](https://docs.stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs).
|
||||
*/
|
||||
timezone?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
19
node_modules/stripe/esm/resources/BalanceSettings.js
generated
vendored
Normal file
19
node_modules/stripe/esm/resources/BalanceSettings.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class BalanceSettingResource extends StripeResource {
|
||||
/**
|
||||
* Retrieves balance settings for a given connected account.
|
||||
* Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
||||
*/
|
||||
retrieve(params, options) {
|
||||
return this._makeRequest('GET', '/v1/balance_settings', params, options);
|
||||
}
|
||||
/**
|
||||
* Updates balance settings for a given connected account.
|
||||
* Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
||||
*/
|
||||
update(params, options) {
|
||||
return this._makeRequest('POST', '/v1/balance_settings', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=BalanceSettings.js.map
|
||||
1
node_modules/stripe/esm/resources/BalanceSettings.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/BalanceSettings.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"BalanceSettings.js","sourceRoot":"","sources":["../../src/resources/BalanceSettings.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAIpD,MAAM,OAAO,sBAAuB,SAAQ,cAAc;IACxD;;;OAGG;IACH,QAAQ,CACN,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sBAAsB,EACtB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;OAGG;IACH,MAAM,CACJ,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
15
node_modules/stripe/esm/resources/BalanceTransactionSources.d.ts
generated
vendored
Normal file
15
node_modules/stripe/esm/resources/BalanceTransactionSources.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ApplicationFee } from './ApplicationFees.js';
|
||||
import { Charge } from './Charges.js';
|
||||
import { ConnectCollectionTransfer } from './ConnectCollectionTransfers.js';
|
||||
import { CustomerCashBalanceTransaction } from './CustomerCashBalanceTransactions.js';
|
||||
import { Dispute } from './Disputes.js';
|
||||
import { FeeRefund } from './FeeRefunds.js';
|
||||
import { Payout } from './Payouts.js';
|
||||
import { Refund } from './Refunds.js';
|
||||
import { ReserveTransaction } from './ReserveTransactions.js';
|
||||
import { TaxDeductedAtSource } from './TaxDeductedAtSources.js';
|
||||
import { Topup } from './Topups.js';
|
||||
import { Transfer } from './Transfers.js';
|
||||
import { TransferReversal } from './TransferReversals.js';
|
||||
import * as Issuing from './Issuing/index.js';
|
||||
export type BalanceTransactionSource = ApplicationFee | Charge | ConnectCollectionTransfer | CustomerCashBalanceTransaction | Dispute | FeeRefund | Issuing.Authorization | Issuing.Dispute | Issuing.Transaction | Payout | Refund | ReserveTransaction | TaxDeductedAtSource | Topup | Transfer | TransferReversal;
|
||||
3
node_modules/stripe/esm/resources/BalanceTransactionSources.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/BalanceTransactionSources.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=BalanceTransactionSources.js.map
|
||||
1
node_modules/stripe/esm/resources/BalanceTransactionSources.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/BalanceTransactionSources.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"BalanceTransactionSources.js","sourceRoot":"","sources":["../../src/resources/BalanceTransactionSources.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
142
node_modules/stripe/esm/resources/BalanceTransactions.d.ts
generated
vendored
Normal file
142
node_modules/stripe/esm/resources/BalanceTransactions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
import { BalanceTransactionSource } from './BalanceTransactionSources.js';
|
||||
import { PaginationParams, RangeQueryParam } from '../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../lib.js';
|
||||
export declare class BalanceTransactionResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.
|
||||
*
|
||||
* Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
|
||||
*/
|
||||
list(params?: BalanceTransactionListParams, options?: RequestOptions): ApiListPromise<BalanceTransaction>;
|
||||
/**
|
||||
* Retrieves the balance transaction with the given ID.
|
||||
*
|
||||
* Note that this endpoint previously used the path /v1/balance/history/:id.
|
||||
*/
|
||||
retrieve(id: string, params?: BalanceTransactionRetrieveParams, options?: RequestOptions): Promise<Response<BalanceTransaction>>;
|
||||
}
|
||||
export interface BalanceTransaction {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'balance_transaction';
|
||||
/**
|
||||
* Gross amount of this transaction (in cents (or local equivalent)). A positive value represents funds charged to another party, and a negative value represents funds sent to another party.
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* The date that the transaction's net funds become available in the Stripe balance.
|
||||
*/
|
||||
available_on: number;
|
||||
/**
|
||||
* The balance that this transaction impacts.
|
||||
*/
|
||||
balance_type: BalanceTransaction.BalanceType;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* If applicable, this transaction uses an exchange rate. If money converts from currency A to currency B, then the `amount` in currency A, multipled by the `exchange_rate`, equals the `amount` in currency B. For example, if you charge a customer 10.00 EUR, the PaymentIntent's `amount` is `1000` and `currency` is `eur`. If this converts to 12.34 USD in your Stripe account, the BalanceTransaction's `amount` is `1234`, its `currency` is `usd`, and the `exchange_rate` is `1.234`.
|
||||
*/
|
||||
exchange_rate: number | null;
|
||||
/**
|
||||
* Fees (in cents (or local equivalent)) paid for this transaction. Represented as a positive integer when assessed.
|
||||
*/
|
||||
fee: number;
|
||||
/**
|
||||
* Detailed breakdown of fees (in cents (or local equivalent)) paid for this transaction.
|
||||
*/
|
||||
fee_details: Array<BalanceTransaction.FeeDetail>;
|
||||
/**
|
||||
* Net impact to a Stripe balance (in cents (or local equivalent)). A positive value represents incrementing a Stripe balance, and a negative value decrementing a Stripe balance. You can calculate the net impact of a transaction on a balance by `amount` - `fee`
|
||||
*/
|
||||
net: number;
|
||||
/**
|
||||
* Learn more about how [reporting categories](https://stripe.com/docs/reports/reporting-categories) can help you understand balance transactions from an accounting perspective.
|
||||
*/
|
||||
reporting_category: string;
|
||||
/**
|
||||
* This transaction relates to the Stripe object.
|
||||
*/
|
||||
source: string | BalanceTransactionSource | null;
|
||||
/**
|
||||
* The transaction's net funds status in the Stripe balance, which are either `available` or `pending`.
|
||||
*/
|
||||
status: string;
|
||||
/**
|
||||
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
|
||||
*/
|
||||
type: BalanceTransaction.Type;
|
||||
}
|
||||
export declare namespace BalanceTransaction {
|
||||
type BalanceType = 'issuing' | 'payments' | 'refund_and_dispute_prefunding' | 'risk_reserved';
|
||||
interface FeeDetail {
|
||||
/**
|
||||
* Amount of the fee, in cents.
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* ID of the Connect application that earned the fee.
|
||||
*/
|
||||
application: string | null;
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* An arbitrary string attached to the object. Often useful for displaying to users.
|
||||
*/
|
||||
description: string | null;
|
||||
/**
|
||||
* Type of the fee, one of: `application_fee`, `payment_method_passthrough_fee`, `stripe_fee`, `tax`, or `withheld_tax`.
|
||||
*/
|
||||
type: string;
|
||||
}
|
||||
type Type = 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'fee_credit_funding' | 'inbound_transfer' | 'inbound_transfer_reversal' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'payout_minimum_balance_hold' | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_hold' | 'reserve_release' | 'reserve_transaction' | 'reserved_funds' | 'stripe_balance_payment_debit' | 'stripe_balance_payment_debit_reversal' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund';
|
||||
}
|
||||
export interface BalanceTransactionRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
export interface BalanceTransactionListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return transactions that were created during the given date interval.
|
||||
*/
|
||||
created?: RangeQueryParam | number;
|
||||
/**
|
||||
* Only return transactions in a certain currency. 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;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* For automatic Stripe payouts only, only returns transactions that were paid out on the specified payout ID.
|
||||
*/
|
||||
payout?: string;
|
||||
/**
|
||||
* Only returns transactions associated with the given object.
|
||||
*/
|
||||
source?: string;
|
||||
/**
|
||||
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`.
|
||||
*/
|
||||
type?: string;
|
||||
}
|
||||
23
node_modules/stripe/esm/resources/BalanceTransactions.js
generated
vendored
Normal file
23
node_modules/stripe/esm/resources/BalanceTransactions.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class BalanceTransactionResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.
|
||||
*
|
||||
* Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/balance_transactions', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves the balance transaction with the given ID.
|
||||
*
|
||||
* Note that this endpoint previously used the path /v1/balance/history/:id.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/balance_transactions/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=BalanceTransactions.js.map
|
||||
1
node_modules/stripe/esm/resources/BalanceTransactions.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/BalanceTransactions.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"BalanceTransactions.js","sourceRoot":"","sources":["../../src/resources/BalanceTransactions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAKpD,MAAM,OAAO,0BAA2B,SAAQ,cAAc;IAC5D;;;;OAIG;IACH,IAAI,CACF,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,0BAA0B,EAC1B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,QAAQ,CACN,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,4BAA4B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACpD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
182
node_modules/stripe/esm/resources/BankAccounts.d.ts
generated
vendored
Normal file
182
node_modules/stripe/esm/resources/BankAccounts.d.ts
generated
vendored
Normal file
@@ -0,0 +1,182 @@
|
||||
import { Account } from './Accounts.js';
|
||||
import { Customer, DeletedCustomer } from './Customers.js';
|
||||
import { Metadata } from '../shared.js';
|
||||
export interface BankAccount {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'bank_account';
|
||||
/**
|
||||
* The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](https://docs.stripe.com/api/external_account_bank_accounts/object) where [controller.is_controller](https://docs.stripe.com/api/accounts/object#account_object-controller-is_controller) is `true`.
|
||||
*/
|
||||
account?: string | Account | null;
|
||||
/**
|
||||
* The name of the person or business that owns the bank account.
|
||||
*/
|
||||
account_holder_name: string | null;
|
||||
/**
|
||||
* The type of entity that holds the account. This can be either `individual` or `company`.
|
||||
*/
|
||||
account_holder_type: string | null;
|
||||
/**
|
||||
* 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: string | null;
|
||||
/**
|
||||
* A set of available payout methods for this bank account. Only values from this set should be passed as the `method` when creating a payout.
|
||||
*/
|
||||
available_payout_methods?: Array<BankAccount.AvailablePayoutMethod> | null;
|
||||
/**
|
||||
* Name of the bank associated with the routing number (e.g., `WELLS FARGO`).
|
||||
*/
|
||||
bank_name: string | null;
|
||||
/**
|
||||
* Two-letter ISO code representing the country the bank account is located in.
|
||||
*/
|
||||
country: string;
|
||||
/**
|
||||
* Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* The ID of the customer that the bank account is associated with.
|
||||
*/
|
||||
customer?: string | Customer | DeletedCustomer | null;
|
||||
/**
|
||||
* Whether this bank account is the default external account for its currency.
|
||||
*/
|
||||
default_for_currency?: boolean | null;
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted?: void;
|
||||
/**
|
||||
* Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
||||
*/
|
||||
fingerprint: string | null;
|
||||
/**
|
||||
* Information about the [upcoming new requirements for the bank account](https://docs.stripe.com/connect/custom-accounts/future-requirements), including what information needs to be collected, and by when.
|
||||
*/
|
||||
future_requirements?: BankAccount.FutureRequirements | null;
|
||||
/**
|
||||
* The last four digits of the bank account number.
|
||||
*/
|
||||
last4: string;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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?: Metadata | null;
|
||||
/**
|
||||
* Information about the requirements for the bank account, including what information needs to be collected.
|
||||
*/
|
||||
requirements?: BankAccount.Requirements | null;
|
||||
/**
|
||||
* The routing transit number for the bank account.
|
||||
*/
|
||||
routing_number: string | null;
|
||||
/**
|
||||
* For bank accounts, possible values are `new`, `validated`, `verified`, `verification_failed`, `tokenized_account_number_deactivated` or `errored`. A bank account that hasn't had any activity or validation performed is `new`. If Stripe can determine that the bank account exists, its status will be `validated`. Note that there often isn't enough information to know (e.g., for smaller credit unions), and the validation is not always run. If customer bank account verification has succeeded, the bank account status will be `verified`. If the verification failed for any reason, such as microdeposit failure, the status will be `verification_failed`. If the status is `tokenized_account_number_deactivated`, the account utilizes a tokenized account number which has been deactivated due to expiration or revocation. This account will need to be reverified to continue using it for money movement. If a payout sent to this bank account fails, we'll set the status to `errored` and will not continue to send [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) until the bank details are updated.
|
||||
*
|
||||
* For external accounts, possible values are `new`, `errored`, `verification_failed`, and `tokenized_account_number_deactivated`. If a payout fails, the status is set to `errored` and scheduled payouts are stopped until account details are updated. In the US and India, if we can't [verify the owner of the bank account](https://support.stripe.com/questions/bank-account-ownership-verification), we'll set the status to `verification_failed`. Other validations aren't run against external accounts because they're only used for payouts. This means the other statuses don't apply.
|
||||
*/
|
||||
status: string;
|
||||
}
|
||||
export interface DeletedBankAccount {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'bank_account';
|
||||
/**
|
||||
* Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
|
||||
*/
|
||||
currency?: string | null;
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted: true;
|
||||
}
|
||||
export declare namespace BankAccount {
|
||||
type AvailablePayoutMethod = 'instant' | 'standard';
|
||||
interface FutureRequirements {
|
||||
/**
|
||||
* Fields that need to be resolved to keep the external account enabled. If not resolved by `current_deadline`, these fields will appear in `past_due` as well, and the account is disabled.
|
||||
*/
|
||||
currently_due: Array<string> | null;
|
||||
/**
|
||||
* Details about validation and verification failures for `due` requirements that must be resolved.
|
||||
*/
|
||||
errors: Array<FutureRequirements.Error> | null;
|
||||
/**
|
||||
* Fields that haven't been resolved by `current_deadline`. These fields need to be resolved to enable the external account.
|
||||
*/
|
||||
past_due: Array<string> | null;
|
||||
/**
|
||||
* Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.
|
||||
*/
|
||||
pending_verification: Array<string> | null;
|
||||
}
|
||||
interface Requirements {
|
||||
/**
|
||||
* Fields that need to be resolved to keep the external account enabled. If not resolved by `current_deadline`, these fields will appear in `past_due` as well, and the account is disabled.
|
||||
*/
|
||||
currently_due: Array<string> | null;
|
||||
/**
|
||||
* Details about validation and verification failures for `due` requirements that must be resolved.
|
||||
*/
|
||||
errors: Array<Requirements.Error> | null;
|
||||
/**
|
||||
* Fields that haven't been resolved by `current_deadline`. These fields need to be resolved to enable the external account.
|
||||
*/
|
||||
past_due: Array<string> | null;
|
||||
/**
|
||||
* Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.
|
||||
*/
|
||||
pending_verification: Array<string> | null;
|
||||
}
|
||||
namespace FutureRequirements {
|
||||
interface Error {
|
||||
/**
|
||||
* The code for the type of error.
|
||||
*/
|
||||
code: Error.Code;
|
||||
/**
|
||||
* An informative message that indicates the error type and provides additional details about the error.
|
||||
*/
|
||||
reason: string;
|
||||
/**
|
||||
* The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
*/
|
||||
requirement: string;
|
||||
}
|
||||
namespace Error {
|
||||
type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
|
||||
}
|
||||
}
|
||||
namespace Requirements {
|
||||
interface Error {
|
||||
/**
|
||||
* The code for the type of error.
|
||||
*/
|
||||
code: Error.Code;
|
||||
/**
|
||||
* An informative message that indicates the error type and provides additional details about the error.
|
||||
*/
|
||||
reason: string;
|
||||
/**
|
||||
* The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
*/
|
||||
requirement: string;
|
||||
}
|
||||
namespace Error {
|
||||
type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
|
||||
}
|
||||
}
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/BankAccounts.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/BankAccounts.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=BankAccounts.js.map
|
||||
1
node_modules/stripe/esm/resources/BankAccounts.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/BankAccounts.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"BankAccounts.js","sourceRoot":"","sources":["../../src/resources/BankAccounts.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
27
node_modules/stripe/esm/resources/Billing/AlertTriggereds.d.ts
generated
vendored
Normal file
27
node_modules/stripe/esm/resources/Billing/AlertTriggereds.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Alert } from './Alerts.js';
|
||||
export interface AlertTriggered {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.alert_triggered';
|
||||
/**
|
||||
* A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests.
|
||||
*/
|
||||
alert: Alert;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* ID of customer for which the alert triggered
|
||||
*/
|
||||
customer: string;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The value triggering the alert
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/Billing/AlertTriggereds.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/Billing/AlertTriggereds.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=AlertTriggereds.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/AlertTriggereds.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/AlertTriggereds.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AlertTriggereds.js","sourceRoot":"","sources":["../../../src/resources/Billing/AlertTriggereds.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
193
node_modules/stripe/esm/resources/Billing/Alerts.d.ts
generated
vendored
Normal file
193
node_modules/stripe/esm/resources/Billing/Alerts.d.ts
generated
vendored
Normal file
@@ -0,0 +1,193 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Meter } from './Meters.js';
|
||||
import { Customer } from './../Customers.js';
|
||||
import { PaginationParams } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class AlertResource extends StripeResource {
|
||||
/**
|
||||
* Lists billing active and inactive alerts
|
||||
*/
|
||||
list(params?: Billing.AlertListParams, options?: RequestOptions): ApiListPromise<Alert>;
|
||||
/**
|
||||
* Creates a billing alert
|
||||
*/
|
||||
create(params: Billing.AlertCreateParams, options?: RequestOptions): Promise<Response<Alert>>;
|
||||
/**
|
||||
* Retrieves a billing alert given an ID
|
||||
*/
|
||||
retrieve(id: string, params?: Billing.AlertRetrieveParams, options?: RequestOptions): Promise<Response<Alert>>;
|
||||
/**
|
||||
* Reactivates this alert, allowing it to trigger again.
|
||||
*/
|
||||
activate(id: string, params?: Billing.AlertActivateParams, options?: RequestOptions): Promise<Response<Alert>>;
|
||||
/**
|
||||
* Archives this alert, removing it from the list view and APIs. This is non-reversible.
|
||||
*/
|
||||
archive(id: string, params?: Billing.AlertArchiveParams, options?: RequestOptions): Promise<Response<Alert>>;
|
||||
/**
|
||||
* Deactivates this alert, preventing it from triggering.
|
||||
*/
|
||||
deactivate(id: string, params?: Billing.AlertDeactivateParams, options?: RequestOptions): Promise<Response<Alert>>;
|
||||
}
|
||||
export interface Alert {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.alert';
|
||||
/**
|
||||
* Defines the type of the alert.
|
||||
*/
|
||||
alert_type: 'usage_threshold';
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Status of the alert. This can be active, inactive or archived.
|
||||
*/
|
||||
status: Billing.Alert.Status | null;
|
||||
/**
|
||||
* Title of the alert.
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* Encapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://docs.stripe.com/api/billing/meter).
|
||||
*/
|
||||
usage_threshold: Billing.Alert.UsageThreshold | null;
|
||||
}
|
||||
export declare namespace Billing {
|
||||
namespace Alert {
|
||||
type Status = 'active' | 'archived' | 'inactive';
|
||||
interface UsageThreshold {
|
||||
/**
|
||||
* The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time.
|
||||
*/
|
||||
filters: Array<UsageThreshold.Filter> | null;
|
||||
/**
|
||||
* The value at which this alert will trigger.
|
||||
*/
|
||||
gte: number;
|
||||
/**
|
||||
* The [Billing Meter](https://docs.stripe.com/api/billing/meter) ID whose usage is monitored.
|
||||
*/
|
||||
meter: string | Meter;
|
||||
/**
|
||||
* Defines how the alert will behave.
|
||||
*/
|
||||
recurrence: 'one_time';
|
||||
}
|
||||
namespace UsageThreshold {
|
||||
interface Filter {
|
||||
/**
|
||||
* Limit the scope of the alert to this customer ID
|
||||
*/
|
||||
customer: string | Customer | null;
|
||||
type: 'customer';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface AlertCreateParams {
|
||||
/**
|
||||
* The type of alert to create.
|
||||
*/
|
||||
alert_type: 'usage_threshold';
|
||||
/**
|
||||
* The title of the alert.
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The configuration of the usage threshold.
|
||||
*/
|
||||
usage_threshold?: AlertCreateParams.UsageThreshold;
|
||||
}
|
||||
namespace AlertCreateParams {
|
||||
interface UsageThreshold {
|
||||
/**
|
||||
* The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.
|
||||
*/
|
||||
filters?: Array<UsageThreshold.Filter>;
|
||||
/**
|
||||
* Defines the threshold value that triggers the alert.
|
||||
*/
|
||||
gte: number;
|
||||
/**
|
||||
* The [Billing Meter](https://docs.stripe.com/api/billing/meter) ID whose usage is monitored.
|
||||
*/
|
||||
meter: string;
|
||||
/**
|
||||
* Defines how the alert will behave.
|
||||
*/
|
||||
recurrence: 'one_time';
|
||||
}
|
||||
namespace UsageThreshold {
|
||||
interface Filter {
|
||||
/**
|
||||
* Limit the scope to this usage alert only to this customer.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* What type of filter is being applied to this usage alert.
|
||||
*/
|
||||
type: 'customer';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface AlertRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface AlertListParams extends PaginationParams {
|
||||
/**
|
||||
* Filter results to only include this type of alert.
|
||||
*/
|
||||
alert_type?: 'usage_threshold';
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Filter results to only include alerts with the given meter.
|
||||
*/
|
||||
meter?: string;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface AlertActivateParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface AlertArchiveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface AlertDeactivateParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
43
node_modules/stripe/esm/resources/Billing/Alerts.js
generated
vendored
Normal file
43
node_modules/stripe/esm/resources/Billing/Alerts.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class AlertResource extends StripeResource {
|
||||
/**
|
||||
* Lists billing active and inactive alerts
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/billing/alerts', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a billing alert
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/billing/alerts', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a billing alert given an ID
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/billing/alerts/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Reactivates this alert, allowing it to trigger again.
|
||||
*/
|
||||
activate(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/alerts/${encodeURIComponent(id)}/activate`, params, options);
|
||||
}
|
||||
/**
|
||||
* Archives this alert, removing it from the list view and APIs. This is non-reversible.
|
||||
*/
|
||||
archive(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/alerts/${encodeURIComponent(id)}/archive`, params, options);
|
||||
}
|
||||
/**
|
||||
* Deactivates this alert, preventing it from triggering.
|
||||
*/
|
||||
deactivate(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/alerts/${encodeURIComponent(id)}/deactivate`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Alerts.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/Alerts.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/Alerts.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Alerts.js","sourceRoot":"","sources":["../../../src/resources/Billing/Alerts.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAMvD,MAAM,OAAO,aAAc,SAAQ,cAAc;IAC/C;;OAEG;IACH,IAAI,CACF,MAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE;YACrE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,oBAAoB,EACpB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,WAAW,EACvD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,OAAO,CACL,EAAU,EACV,MAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EACtD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,UAAU,CACR,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,aAAa,EACzD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
142
node_modules/stripe/esm/resources/Billing/CreditBalanceSummary.d.ts
generated
vendored
Normal file
142
node_modules/stripe/esm/resources/Billing/CreditBalanceSummary.d.ts
generated
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Customer, DeletedCustomer } from './../Customers.js';
|
||||
import { RequestOptions, Response } from '../../lib.js';
|
||||
export declare class CreditBalanceSummaryResource extends StripeResource {
|
||||
/**
|
||||
* Retrieves the credit balance summary for a customer.
|
||||
*/
|
||||
retrieve(params: Billing.CreditBalanceSummaryRetrieveParams, options?: RequestOptions): Promise<Response<CreditBalanceSummary>>;
|
||||
}
|
||||
export interface CreditBalanceSummary {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.credit_balance_summary';
|
||||
/**
|
||||
* The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry.
|
||||
*/
|
||||
balances: Array<Billing.CreditBalanceSummary.Balance>;
|
||||
/**
|
||||
* The customer the balance is for.
|
||||
*/
|
||||
customer: string | Customer | DeletedCustomer;
|
||||
/**
|
||||
* The account the balance is for.
|
||||
*/
|
||||
customer_account: string | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
}
|
||||
export declare namespace Billing {
|
||||
namespace CreditBalanceSummary {
|
||||
interface Balance {
|
||||
available_balance: Balance.AvailableBalance;
|
||||
ledger_balance: Balance.LedgerBalance;
|
||||
}
|
||||
namespace Balance {
|
||||
interface AvailableBalance {
|
||||
/**
|
||||
* The monetary amount.
|
||||
*/
|
||||
monetary: AvailableBalance.Monetary | null;
|
||||
/**
|
||||
* The type of this amount. We currently only support `monetary` billing credits.
|
||||
*/
|
||||
type: 'monetary';
|
||||
}
|
||||
interface LedgerBalance {
|
||||
/**
|
||||
* The monetary amount.
|
||||
*/
|
||||
monetary: LedgerBalance.Monetary | null;
|
||||
/**
|
||||
* The type of this amount. We currently only support `monetary` billing credits.
|
||||
*/
|
||||
type: 'monetary';
|
||||
}
|
||||
namespace AvailableBalance {
|
||||
interface Monetary {
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* A positive integer representing the amount.
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
}
|
||||
namespace LedgerBalance {
|
||||
interface Monetary {
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* A positive integer representing the amount.
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditBalanceSummaryRetrieveParams {
|
||||
/**
|
||||
* The filter criteria for the credit balance summary.
|
||||
*/
|
||||
filter: CreditBalanceSummaryRetrieveParams.Filter;
|
||||
/**
|
||||
* The customer whose credit balance summary you're retrieving.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* The account representing the customer whose credit balance summary you're retrieving.
|
||||
*/
|
||||
customer_account?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace CreditBalanceSummaryRetrieveParams {
|
||||
interface Filter {
|
||||
/**
|
||||
* The billing credit applicability scope for which to fetch credit balance summary.
|
||||
*/
|
||||
applicability_scope?: Filter.ApplicabilityScope;
|
||||
/**
|
||||
* The credit grant for which to fetch credit balance summary.
|
||||
*/
|
||||
credit_grant?: string;
|
||||
/**
|
||||
* Specify the type of this filter.
|
||||
*/
|
||||
type: Filter.Type;
|
||||
}
|
||||
namespace Filter {
|
||||
interface ApplicabilityScope {
|
||||
/**
|
||||
* The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
||||
*/
|
||||
price_type?: 'metered';
|
||||
/**
|
||||
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
|
||||
*/
|
||||
prices?: Array<ApplicabilityScope.Price>;
|
||||
}
|
||||
type Type = 'applicability_scope' | 'credit_grant';
|
||||
namespace ApplicabilityScope {
|
||||
interface Price {
|
||||
/**
|
||||
* The price ID this credit grant should apply to.
|
||||
*/
|
||||
id: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/Billing/CreditBalanceSummary.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/Billing/CreditBalanceSummary.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class CreditBalanceSummaryResource extends StripeResource {
|
||||
/**
|
||||
* Retrieves the credit balance summary for a customer.
|
||||
*/
|
||||
retrieve(params, options) {
|
||||
return this._makeRequest('GET', '/v1/billing/credit_balance_summary', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=CreditBalanceSummary.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/CreditBalanceSummary.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/CreditBalanceSummary.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CreditBalanceSummary.js","sourceRoot":"","sources":["../../../src/resources/Billing/CreditBalanceSummary.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAIvD,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9D;;OAEG;IACH,QAAQ,CACN,MAAkD,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,oCAAoC,EACpC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
183
node_modules/stripe/esm/resources/Billing/CreditBalanceTransactions.d.ts
generated
vendored
Normal file
183
node_modules/stripe/esm/resources/Billing/CreditBalanceTransactions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,183 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { CreditGrant } from './CreditGrants.js';
|
||||
import { Invoice } from './../Invoices.js';
|
||||
import * as TestHelpers from './../TestHelpers/index.js';
|
||||
import { PaginationParams } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class CreditBalanceTransactionResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of credit balance transactions.
|
||||
*/
|
||||
list(params?: Billing.CreditBalanceTransactionListParams, options?: RequestOptions): ApiListPromise<CreditBalanceTransaction>;
|
||||
/**
|
||||
* Retrieves a credit balance transaction.
|
||||
*/
|
||||
retrieve(id: string, params?: Billing.CreditBalanceTransactionRetrieveParams, options?: RequestOptions): Promise<Response<CreditBalanceTransaction>>;
|
||||
}
|
||||
export interface CreditBalanceTransaction {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.credit_balance_transaction';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* Credit details for this credit balance transaction. Only present if type is `credit`.
|
||||
*/
|
||||
credit: Billing.CreditBalanceTransaction.Credit | null;
|
||||
/**
|
||||
* The credit grant associated with this credit balance transaction.
|
||||
*/
|
||||
credit_grant: string | CreditGrant;
|
||||
/**
|
||||
* Debit details for this credit balance transaction. Only present if type is `debit`.
|
||||
*/
|
||||
debit: Billing.CreditBalanceTransaction.Debit | null;
|
||||
/**
|
||||
* The effective time of this credit balance transaction.
|
||||
*/
|
||||
effective_at: number;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* ID of the test clock this credit balance transaction belongs to.
|
||||
*/
|
||||
test_clock: string | TestHelpers.TestClock | null;
|
||||
/**
|
||||
* The type of credit balance transaction (credit or debit).
|
||||
*/
|
||||
type: Billing.CreditBalanceTransaction.Type | null;
|
||||
}
|
||||
export declare namespace Billing {
|
||||
namespace CreditBalanceTransaction {
|
||||
interface Credit {
|
||||
amount: Credit.Amount;
|
||||
/**
|
||||
* Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`.
|
||||
*/
|
||||
credits_application_invoice_voided: Credit.CreditsApplicationInvoiceVoided | null;
|
||||
/**
|
||||
* The type of credit transaction.
|
||||
*/
|
||||
type: Credit.Type;
|
||||
}
|
||||
interface Debit {
|
||||
amount: Debit.Amount;
|
||||
/**
|
||||
* Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`.
|
||||
*/
|
||||
credits_applied: Debit.CreditsApplied | null;
|
||||
/**
|
||||
* The type of debit transaction.
|
||||
*/
|
||||
type: Debit.Type;
|
||||
}
|
||||
type Type = 'credit' | 'debit';
|
||||
namespace Credit {
|
||||
interface Amount {
|
||||
/**
|
||||
* The monetary amount.
|
||||
*/
|
||||
monetary: Amount.Monetary | null;
|
||||
/**
|
||||
* The type of this amount. We currently only support `monetary` billing credits.
|
||||
*/
|
||||
type: 'monetary';
|
||||
}
|
||||
interface CreditsApplicationInvoiceVoided {
|
||||
/**
|
||||
* The invoice to which the reinstated billing credits were originally applied.
|
||||
*/
|
||||
invoice: string | Invoice;
|
||||
/**
|
||||
* The invoice line item to which the reinstated billing credits were originally applied.
|
||||
*/
|
||||
invoice_line_item: string;
|
||||
}
|
||||
type Type = 'credits_application_invoice_voided' | 'credits_granted';
|
||||
namespace Amount {
|
||||
interface Monetary {
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* A positive integer representing the amount.
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace Debit {
|
||||
interface Amount {
|
||||
/**
|
||||
* The monetary amount.
|
||||
*/
|
||||
monetary: Amount.Monetary | null;
|
||||
/**
|
||||
* The type of this amount. We currently only support `monetary` billing credits.
|
||||
*/
|
||||
type: 'monetary';
|
||||
}
|
||||
interface CreditsApplied {
|
||||
/**
|
||||
* The invoice to which the billing credits were applied.
|
||||
*/
|
||||
invoice: string | Invoice;
|
||||
/**
|
||||
* The invoice line item to which the billing credits were applied.
|
||||
*/
|
||||
invoice_line_item: string;
|
||||
}
|
||||
type Type = 'credits_applied' | 'credits_expired' | 'credits_voided';
|
||||
namespace Amount {
|
||||
interface Monetary {
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* A positive integer representing the amount.
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditBalanceTransactionRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditBalanceTransactionListParams extends PaginationParams {
|
||||
/**
|
||||
* The credit grant for which to fetch credit balance transactions.
|
||||
*/
|
||||
credit_grant?: string;
|
||||
/**
|
||||
* The customer whose credit balance transactions you're retrieving.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* The account representing the customer whose credit balance transactions you're retrieving.
|
||||
*/
|
||||
customer_account?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
19
node_modules/stripe/esm/resources/Billing/CreditBalanceTransactions.js
generated
vendored
Normal file
19
node_modules/stripe/esm/resources/Billing/CreditBalanceTransactions.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class CreditBalanceTransactionResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of credit balance transactions.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/billing/credit_balance_transactions', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves a credit balance transaction.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/billing/credit_balance_transactions/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=CreditBalanceTransactions.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/CreditBalanceTransactions.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/CreditBalanceTransactions.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CreditBalanceTransactions.js","sourceRoot":"","sources":["../../../src/resources/Billing/CreditBalanceTransactions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAOvD,MAAM,OAAO,gCAAiC,SAAQ,cAAc;IAClE;;OAEG;IACH,IAAI,CACF,MAAmD,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,yCAAyC,EACzC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAuD,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,2CAA2C,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACnE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
300
node_modules/stripe/esm/resources/Billing/CreditGrants.d.ts
generated
vendored
Normal file
300
node_modules/stripe/esm/resources/Billing/CreditGrants.d.ts
generated
vendored
Normal file
@@ -0,0 +1,300 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Customer, DeletedCustomer } from './../Customers.js';
|
||||
import * as TestHelpers from './../TestHelpers/index.js';
|
||||
import { MetadataParam, Emptyable, PaginationParams, Metadata } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class CreditGrantResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of credit grants.
|
||||
*/
|
||||
list(params?: Billing.CreditGrantListParams, options?: RequestOptions): ApiListPromise<CreditGrant>;
|
||||
/**
|
||||
* Creates a credit grant.
|
||||
*/
|
||||
create(params: Billing.CreditGrantCreateParams, options?: RequestOptions): Promise<Response<CreditGrant>>;
|
||||
/**
|
||||
* Retrieves a credit grant.
|
||||
*/
|
||||
retrieve(id: string, params?: Billing.CreditGrantRetrieveParams, options?: RequestOptions): Promise<Response<CreditGrant>>;
|
||||
/**
|
||||
* Updates a credit grant.
|
||||
*/
|
||||
update(id: string, params?: Billing.CreditGrantUpdateParams, options?: RequestOptions): Promise<Response<CreditGrant>>;
|
||||
/**
|
||||
* Expires a credit grant.
|
||||
*/
|
||||
expire(id: string, params?: Billing.CreditGrantExpireParams, options?: RequestOptions): Promise<Response<CreditGrant>>;
|
||||
/**
|
||||
* Voids a credit grant.
|
||||
*/
|
||||
voidGrant(id: string, params?: Billing.CreditGrantVoidGrantParams, options?: RequestOptions): Promise<Response<CreditGrant>>;
|
||||
}
|
||||
export interface CreditGrant {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.credit_grant';
|
||||
amount: Billing.CreditGrant.Amount;
|
||||
applicability_config: Billing.CreditGrant.ApplicabilityConfig;
|
||||
/**
|
||||
* The category of this credit grant. This is for tracking purposes and isn't displayed to the customer.
|
||||
*/
|
||||
category: Billing.CreditGrant.Category;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* ID of the customer receiving the billing credits.
|
||||
*/
|
||||
customer: string | Customer | DeletedCustomer;
|
||||
/**
|
||||
* ID of the account representing the customer receiving the billing credits
|
||||
*/
|
||||
customer_account: string | null;
|
||||
/**
|
||||
* The time when the billing credits become effective-when they're eligible for use.
|
||||
*/
|
||||
effective_at: number | null;
|
||||
/**
|
||||
* The time when the billing credits expire. If not present, the billing credits don't expire.
|
||||
*/
|
||||
expires_at: number | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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: Metadata;
|
||||
/**
|
||||
* A descriptive name shown in dashboard.
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
||||
*/
|
||||
priority?: number | null;
|
||||
/**
|
||||
* ID of the test clock this credit grant belongs to.
|
||||
*/
|
||||
test_clock: string | TestHelpers.TestClock | null;
|
||||
/**
|
||||
* Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
updated: number;
|
||||
/**
|
||||
* The time when this credit grant was voided. If not present, the credit grant hasn't been voided.
|
||||
*/
|
||||
voided_at: number | null;
|
||||
}
|
||||
export declare namespace Billing {
|
||||
namespace CreditGrant {
|
||||
interface Amount {
|
||||
/**
|
||||
* The monetary amount.
|
||||
*/
|
||||
monetary: Amount.Monetary | null;
|
||||
/**
|
||||
* The type of this amount. We currently only support `monetary` billing credits.
|
||||
*/
|
||||
type: 'monetary';
|
||||
}
|
||||
interface ApplicabilityConfig {
|
||||
scope: ApplicabilityConfig.Scope;
|
||||
}
|
||||
type Category = 'paid' | 'promotional';
|
||||
namespace Amount {
|
||||
interface Monetary {
|
||||
/**
|
||||
* 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;
|
||||
/**
|
||||
* A positive integer representing the amount.
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
}
|
||||
namespace ApplicabilityConfig {
|
||||
interface Scope {
|
||||
/**
|
||||
* The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
|
||||
*/
|
||||
price_type?: 'metered';
|
||||
/**
|
||||
* The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`.
|
||||
*/
|
||||
prices?: Array<Scope.Price>;
|
||||
}
|
||||
namespace Scope {
|
||||
interface Price {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditGrantCreateParams {
|
||||
/**
|
||||
* Amount of this credit grant.
|
||||
*/
|
||||
amount: CreditGrantCreateParams.Amount;
|
||||
/**
|
||||
* Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
|
||||
*/
|
||||
applicability_config: CreditGrantCreateParams.ApplicabilityConfig;
|
||||
/**
|
||||
* The category of this credit grant. It defaults to `paid` if not specified.
|
||||
*/
|
||||
category?: CreditGrantCreateParams.Category;
|
||||
/**
|
||||
* ID of the customer receiving the billing credits.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* ID of the account representing the customer receiving the billing credits.
|
||||
*/
|
||||
customer_account?: string;
|
||||
/**
|
||||
* The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.
|
||||
*/
|
||||
effective_at?: number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The time when the billing credits expire. If not specified, the billing credits don't expire.
|
||||
*/
|
||||
expires_at?: number;
|
||||
/**
|
||||
* Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
/**
|
||||
* A descriptive name shown in the Dashboard.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
|
||||
*/
|
||||
priority?: number;
|
||||
}
|
||||
namespace CreditGrantCreateParams {
|
||||
interface Amount {
|
||||
/**
|
||||
* The monetary amount.
|
||||
*/
|
||||
monetary?: Amount.Monetary;
|
||||
/**
|
||||
* The type of this amount. We currently only support `monetary` billing credits.
|
||||
*/
|
||||
type: 'monetary';
|
||||
}
|
||||
interface ApplicabilityConfig {
|
||||
/**
|
||||
* Specify the scope of this applicability config.
|
||||
*/
|
||||
scope: ApplicabilityConfig.Scope;
|
||||
}
|
||||
type Category = 'paid' | 'promotional';
|
||||
namespace Amount {
|
||||
interface Monetary {
|
||||
/**
|
||||
* Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* A positive integer representing the amount of the credit grant.
|
||||
*/
|
||||
value: number;
|
||||
}
|
||||
}
|
||||
namespace ApplicabilityConfig {
|
||||
interface Scope {
|
||||
/**
|
||||
* The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
||||
*/
|
||||
price_type?: 'metered';
|
||||
/**
|
||||
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
|
||||
*/
|
||||
prices?: Array<Scope.Price>;
|
||||
}
|
||||
namespace Scope {
|
||||
interface Price {
|
||||
/**
|
||||
* The price ID this credit grant should apply to.
|
||||
*/
|
||||
id: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditGrantRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditGrantUpdateParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire.
|
||||
*/
|
||||
expires_at?: Emptyable<number>;
|
||||
/**
|
||||
* Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
|
||||
*/
|
||||
metadata?: MetadataParam;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditGrantListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return credit grants for this customer.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* Only return credit grants for this account representing the customer.
|
||||
*/
|
||||
customer_account?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditGrantExpireParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface CreditGrantVoidGrantParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
43
node_modules/stripe/esm/resources/Billing/CreditGrants.js
generated
vendored
Normal file
43
node_modules/stripe/esm/resources/Billing/CreditGrants.js
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class CreditGrantResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of credit grants.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/billing/credit_grants', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a credit grant.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/billing/credit_grants', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a credit grant.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/billing/credit_grants/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates a credit grant.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/credit_grants/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Expires a credit grant.
|
||||
*/
|
||||
expire(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/credit_grants/${encodeURIComponent(id)}/expire`, params, options);
|
||||
}
|
||||
/**
|
||||
* Voids a credit grant.
|
||||
*/
|
||||
voidGrant(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/credit_grants/${encodeURIComponent(id)}/void`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=CreditGrants.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/CreditGrants.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/CreditGrants.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CreditGrants.js","sourceRoot":"","sources":["../../../src/resources/Billing/CreditGrants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAWvD,MAAM,OAAO,mBAAoB,SAAQ,cAAc;IACrD;;OAEG;IACH,IAAI,CACF,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,2BAA2B,EAC3B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,2BAA2B,EAC3B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,6BAA6B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,6BAA6B,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACrD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,6BAA6B,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC5D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,SAAS,CACP,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,6BAA6B,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAC1D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
73
node_modules/stripe/esm/resources/Billing/MeterEventAdjustments.d.ts
generated
vendored
Normal file
73
node_modules/stripe/esm/resources/Billing/MeterEventAdjustments.d.ts
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../../lib.js';
|
||||
export declare class MeterEventAdjustmentResource extends StripeResource {
|
||||
/**
|
||||
* Creates a billing meter event adjustment.
|
||||
*/
|
||||
create(params: Billing.MeterEventAdjustmentCreateParams, options?: RequestOptions): Promise<Response<MeterEventAdjustment>>;
|
||||
}
|
||||
export interface MeterEventAdjustment {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.meter_event_adjustment';
|
||||
/**
|
||||
* Specifies which event to cancel.
|
||||
*/
|
||||
cancel: Billing.MeterEventAdjustment.Cancel | null;
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The meter event adjustment's status.
|
||||
*/
|
||||
status: Billing.MeterEventAdjustment.Status;
|
||||
/**
|
||||
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
||||
*/
|
||||
type: 'cancel';
|
||||
}
|
||||
export declare namespace Billing {
|
||||
namespace MeterEventAdjustment {
|
||||
interface Cancel {
|
||||
/**
|
||||
* Unique identifier for the event.
|
||||
*/
|
||||
identifier: string | null;
|
||||
}
|
||||
type Status = 'complete' | 'pending';
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterEventAdjustmentCreateParams {
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
||||
*/
|
||||
type: 'cancel';
|
||||
/**
|
||||
* Specifies which event to cancel.
|
||||
*/
|
||||
cancel?: MeterEventAdjustmentCreateParams.Cancel;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
namespace MeterEventAdjustmentCreateParams {
|
||||
interface Cancel {
|
||||
/**
|
||||
* Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
|
||||
*/
|
||||
identifier?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/Billing/MeterEventAdjustments.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/Billing/MeterEventAdjustments.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class MeterEventAdjustmentResource extends StripeResource {
|
||||
/**
|
||||
* Creates a billing meter event adjustment.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/billing/meter_event_adjustments', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=MeterEventAdjustments.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/MeterEventAdjustments.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/MeterEventAdjustments.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MeterEventAdjustments.js","sourceRoot":"","sources":["../../../src/resources/Billing/MeterEventAdjustments.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAGvD,MAAM,OAAO,4BAA6B,SAAQ,cAAc;IAC9D;;OAEG;IACH,MAAM,CACJ,MAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,qCAAqC,EACrC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
30
node_modules/stripe/esm/resources/Billing/MeterEventSummaries.d.ts
generated
vendored
Normal file
30
node_modules/stripe/esm/resources/Billing/MeterEventSummaries.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
export interface MeterEventSummary {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.meter_event_summary';
|
||||
/**
|
||||
* Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
|
||||
*/
|
||||
aggregated_value: number;
|
||||
/**
|
||||
* End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
end_time: number;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The meter associated with this event summary.
|
||||
*/
|
||||
meter: string;
|
||||
/**
|
||||
* Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
start_time: number;
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/Billing/MeterEventSummaries.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/Billing/MeterEventSummaries.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=MeterEventSummaries.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/MeterEventSummaries.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/MeterEventSummaries.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MeterEventSummaries.js","sourceRoot":"","sources":["../../../src/resources/Billing/MeterEventSummaries.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
66
node_modules/stripe/esm/resources/Billing/MeterEvents.d.ts
generated
vendored
Normal file
66
node_modules/stripe/esm/resources/Billing/MeterEvents.d.ts
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { RequestOptions, Response } from '../../lib.js';
|
||||
export declare class MeterEventResource extends StripeResource {
|
||||
/**
|
||||
* Creates a billing meter event.
|
||||
*/
|
||||
create(params: Billing.MeterEventCreateParams, options?: RequestOptions): Promise<Response<MeterEvent>>;
|
||||
}
|
||||
export interface MeterEvent {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.meter_event';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* A unique identifier for the event.
|
||||
*/
|
||||
identifier: string;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The payload of the event. This contains the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/meters/configure#meter-configuration-attributes).
|
||||
*/
|
||||
payload: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* The timestamp passed in when creating the event. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
timestamp: number;
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterEventCreateParams {
|
||||
/**
|
||||
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/meters/configure#meter-configuration-attributes).
|
||||
*/
|
||||
payload: {
|
||||
[key: string]: string;
|
||||
};
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. Stripe enforces uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations.
|
||||
*/
|
||||
identifier?: string;
|
||||
/**
|
||||
* The time of the event. Measured in seconds since the Unix epoch. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified.
|
||||
*/
|
||||
timestamp?: number;
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/Billing/MeterEvents.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/Billing/MeterEvents.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class MeterEventResource extends StripeResource {
|
||||
/**
|
||||
* Creates a billing meter event.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/billing/meter_events', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=MeterEvents.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/MeterEvents.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/MeterEvents.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MeterEvents.js","sourceRoot":"","sources":["../../../src/resources/Billing/MeterEvents.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAGvD,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD;;OAEG;IACH,MAAM,CACJ,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,0BAA0B,EAC1B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
251
node_modules/stripe/esm/resources/Billing/Meters.d.ts
generated
vendored
Normal file
251
node_modules/stripe/esm/resources/Billing/Meters.d.ts
generated
vendored
Normal file
@@ -0,0 +1,251 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { MeterEventSummary } from './MeterEventSummaries.js';
|
||||
import { PaginationParams } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class MeterResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of billing meters.
|
||||
*/
|
||||
list(params?: Billing.MeterListParams, options?: RequestOptions): ApiListPromise<Meter>;
|
||||
/**
|
||||
* Creates a billing meter.
|
||||
*/
|
||||
create(params: Billing.MeterCreateParams, options?: RequestOptions): Promise<Response<Meter>>;
|
||||
/**
|
||||
* Retrieves a billing meter given an ID.
|
||||
*/
|
||||
retrieve(id: string, params?: Billing.MeterRetrieveParams, options?: RequestOptions): Promise<Response<Meter>>;
|
||||
/**
|
||||
* Updates a billing meter.
|
||||
*/
|
||||
update(id: string, params?: Billing.MeterUpdateParams, options?: RequestOptions): Promise<Response<Meter>>;
|
||||
/**
|
||||
* When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price.
|
||||
*/
|
||||
deactivate(id: string, params?: Billing.MeterDeactivateParams, options?: RequestOptions): Promise<Response<Meter>>;
|
||||
/**
|
||||
* When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
|
||||
*/
|
||||
reactivate(id: string, params?: Billing.MeterReactivateParams, options?: RequestOptions): Promise<Response<Meter>>;
|
||||
/**
|
||||
* Retrieve a list of billing meter event summaries.
|
||||
*/
|
||||
listEventSummaries(id: string, params: Billing.MeterListEventSummariesParams, options?: RequestOptions): ApiListPromise<MeterEventSummary>;
|
||||
}
|
||||
export interface Meter {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing.meter';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
customer_mapping: Billing.Meter.CustomerMapping;
|
||||
default_aggregation: Billing.Meter.DefaultAggregation;
|
||||
/**
|
||||
* The meter's name.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* The time window which meter events have been pre-aggregated for, if any.
|
||||
*/
|
||||
event_time_window: Billing.Meter.EventTimeWindow | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The meter's status.
|
||||
*/
|
||||
status: Billing.Meter.Status;
|
||||
status_transitions: Billing.Meter.StatusTransitions;
|
||||
/**
|
||||
* Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
updated: number;
|
||||
value_settings: Billing.Meter.ValueSettings;
|
||||
}
|
||||
export declare namespace Billing {
|
||||
namespace Meter {
|
||||
interface CustomerMapping {
|
||||
/**
|
||||
* The key in the meter event payload to use for mapping the event to a customer.
|
||||
*/
|
||||
event_payload_key: string;
|
||||
/**
|
||||
* The method for mapping a meter event to a customer.
|
||||
*/
|
||||
type: 'by_id';
|
||||
}
|
||||
interface DefaultAggregation {
|
||||
/**
|
||||
* Specifies how events are aggregated.
|
||||
*/
|
||||
formula: DefaultAggregation.Formula;
|
||||
}
|
||||
type EventTimeWindow = 'day' | 'hour';
|
||||
type Status = 'active' | 'inactive';
|
||||
interface StatusTransitions {
|
||||
/**
|
||||
* The time the meter was deactivated, if any. Measured in seconds since Unix epoch.
|
||||
*/
|
||||
deactivated_at: number | null;
|
||||
}
|
||||
interface ValueSettings {
|
||||
/**
|
||||
* The key in the meter event payload to use as the value for this meter.
|
||||
*/
|
||||
event_payload_key: string;
|
||||
}
|
||||
namespace DefaultAggregation {
|
||||
type Formula = 'count' | 'last' | 'sum';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterCreateParams {
|
||||
/**
|
||||
* The default settings to aggregate a meter's events with.
|
||||
*/
|
||||
default_aggregation: MeterCreateParams.DefaultAggregation;
|
||||
/**
|
||||
* The meter's name. Not visible to the customer.
|
||||
*/
|
||||
display_name: string;
|
||||
/**
|
||||
* The name of the meter event to record usage for. Corresponds with the `event_name` field on meter events.
|
||||
*/
|
||||
event_name: string;
|
||||
/**
|
||||
* Fields that specify how to map a meter event to a customer.
|
||||
*/
|
||||
customer_mapping?: MeterCreateParams.CustomerMapping;
|
||||
/**
|
||||
* The time window which meter events have been pre-aggregated for, if any.
|
||||
*/
|
||||
event_time_window?: MeterCreateParams.EventTimeWindow;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Fields that specify how to calculate a meter event's value.
|
||||
*/
|
||||
value_settings?: MeterCreateParams.ValueSettings;
|
||||
}
|
||||
namespace MeterCreateParams {
|
||||
interface DefaultAggregation {
|
||||
/**
|
||||
* Specifies how events are aggregated.
|
||||
*/
|
||||
formula: DefaultAggregation.Formula;
|
||||
}
|
||||
interface CustomerMapping {
|
||||
/**
|
||||
* The key in the meter event payload to use for mapping the event to a customer.
|
||||
*/
|
||||
event_payload_key: string;
|
||||
/**
|
||||
* The method for mapping a meter event to a customer. Must be `by_id`.
|
||||
*/
|
||||
type: 'by_id';
|
||||
}
|
||||
type EventTimeWindow = 'day' | 'hour';
|
||||
interface ValueSettings {
|
||||
/**
|
||||
* The key in the usage event payload to use as the value for this meter. For example, if the event payload contains usage on a `bytes_used` field, then set the event_payload_key to "bytes_used".
|
||||
*/
|
||||
event_payload_key: string;
|
||||
}
|
||||
namespace DefaultAggregation {
|
||||
type Formula = 'count' | 'last' | 'sum';
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterUpdateParams {
|
||||
/**
|
||||
* The meter's name. Not visible to the customer.
|
||||
*/
|
||||
display_name?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterListParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Filter results to only include meters with the given status.
|
||||
*/
|
||||
status?: MeterListParams.Status;
|
||||
}
|
||||
namespace MeterListParams {
|
||||
type Status = 'active' | 'inactive';
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterDeactivateParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterListEventSummariesParams extends PaginationParams {
|
||||
/**
|
||||
* The customer for which to fetch event summaries.
|
||||
*/
|
||||
customer: string;
|
||||
/**
|
||||
* The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
end_time: number;
|
||||
/**
|
||||
* The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
|
||||
*/
|
||||
start_time: number;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC).
|
||||
*/
|
||||
value_grouping_window?: MeterListEventSummariesParams.ValueGroupingWindow;
|
||||
}
|
||||
namespace MeterListEventSummariesParams {
|
||||
type ValueGroupingWindow = 'day' | 'hour';
|
||||
}
|
||||
}
|
||||
export declare namespace Billing {
|
||||
interface MeterReactivateParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
51
node_modules/stripe/esm/resources/Billing/Meters.js
generated
vendored
Normal file
51
node_modules/stripe/esm/resources/Billing/Meters.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class MeterResource extends StripeResource {
|
||||
/**
|
||||
* Retrieve a list of billing meters.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/billing/meters', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a billing meter.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/billing/meters', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a billing meter given an ID.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/billing/meters/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates a billing meter.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/meters/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price.
|
||||
*/
|
||||
deactivate(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/meters/${encodeURIComponent(id)}/deactivate`, params, options);
|
||||
}
|
||||
/**
|
||||
* When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
|
||||
*/
|
||||
reactivate(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing/meters/${encodeURIComponent(id)}/reactivate`, params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieve a list of billing meter event summaries.
|
||||
*/
|
||||
listEventSummaries(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/billing/meters/${encodeURIComponent(id)}/event_summaries`, params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Meters.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/Meters.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/Meters.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Meters.js","sourceRoot":"","sources":["../../../src/resources/Billing/Meters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAKvD,MAAM,OAAO,aAAc,SAAQ,cAAc;IAC/C;;OAEG;IACH,IAAI,CACF,MAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE;YACrE,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,oBAAoB,EACpB,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,UAAU,CACR,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,aAAa,EACzD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,UAAU,CACR,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,aAAa,EACzD,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,kBAAkB,CAChB,EAAU,EACV,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,kBAAkB,EAC9D,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;CACF"}
|
||||
65
node_modules/stripe/esm/resources/Billing/index.d.ts
generated
vendored
Normal file
65
node_modules/stripe/esm/resources/Billing/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Billing as BillingNamespace0, Alert, AlertResource } from './Alerts.js';
|
||||
import { Billing as BillingNamespace1, CreditBalanceSummary, CreditBalanceSummaryResource } from './CreditBalanceSummary.js';
|
||||
import { Billing as BillingNamespace2, CreditBalanceTransaction, CreditBalanceTransactionResource } from './CreditBalanceTransactions.js';
|
||||
import { Billing as BillingNamespace3, CreditGrant, CreditGrantResource } from './CreditGrants.js';
|
||||
import { Billing as BillingNamespace4, Meter, MeterResource } from './Meters.js';
|
||||
import { Billing as BillingNamespace5, MeterEvent, MeterEventResource } from './MeterEvents.js';
|
||||
import { Billing as BillingNamespace6, MeterEventAdjustment, MeterEventAdjustmentResource } from './MeterEventAdjustments.js';
|
||||
import { AlertTriggered } from './AlertTriggereds.js';
|
||||
import { MeterEventSummary } from './MeterEventSummaries.js';
|
||||
export { Alert } from './Alerts.js';
|
||||
export { CreditBalanceSummary } from './CreditBalanceSummary.js';
|
||||
export { CreditBalanceTransaction } from './CreditBalanceTransactions.js';
|
||||
export { CreditGrant } from './CreditGrants.js';
|
||||
export { Meter } from './Meters.js';
|
||||
export { MeterEvent } from './MeterEvents.js';
|
||||
export { MeterEventAdjustment } from './MeterEventAdjustments.js';
|
||||
export { AlertTriggered } from './AlertTriggereds.js';
|
||||
export { MeterEventSummary } from './MeterEventSummaries.js';
|
||||
export declare class Billing {
|
||||
private readonly stripe;
|
||||
alerts: AlertResource;
|
||||
creditBalanceSummaries: CreditBalanceSummaryResource;
|
||||
creditBalanceTransactions: CreditBalanceTransactionResource;
|
||||
creditGrants: CreditGrantResource;
|
||||
meters: MeterResource;
|
||||
meterEvents: MeterEventResource;
|
||||
meterEventAdjustments: MeterEventAdjustmentResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Billing {
|
||||
export import AlertListParams = BillingNamespace0.AlertListParams;
|
||||
export import AlertCreateParams = BillingNamespace0.AlertCreateParams;
|
||||
export import AlertRetrieveParams = BillingNamespace0.AlertRetrieveParams;
|
||||
export import AlertActivateParams = BillingNamespace0.AlertActivateParams;
|
||||
export import AlertArchiveParams = BillingNamespace0.AlertArchiveParams;
|
||||
export import AlertDeactivateParams = BillingNamespace0.AlertDeactivateParams;
|
||||
export { Alert };
|
||||
export import CreditBalanceSummaryRetrieveParams = BillingNamespace1.CreditBalanceSummaryRetrieveParams;
|
||||
export { CreditBalanceSummary };
|
||||
export import CreditBalanceTransactionListParams = BillingNamespace2.CreditBalanceTransactionListParams;
|
||||
export import CreditBalanceTransactionRetrieveParams = BillingNamespace2.CreditBalanceTransactionRetrieveParams;
|
||||
export { CreditBalanceTransaction };
|
||||
export import CreditGrantListParams = BillingNamespace3.CreditGrantListParams;
|
||||
export import CreditGrantCreateParams = BillingNamespace3.CreditGrantCreateParams;
|
||||
export import CreditGrantRetrieveParams = BillingNamespace3.CreditGrantRetrieveParams;
|
||||
export import CreditGrantUpdateParams = BillingNamespace3.CreditGrantUpdateParams;
|
||||
export import CreditGrantExpireParams = BillingNamespace3.CreditGrantExpireParams;
|
||||
export import CreditGrantVoidGrantParams = BillingNamespace3.CreditGrantVoidGrantParams;
|
||||
export { CreditGrant };
|
||||
export import MeterListParams = BillingNamespace4.MeterListParams;
|
||||
export import MeterCreateParams = BillingNamespace4.MeterCreateParams;
|
||||
export import MeterRetrieveParams = BillingNamespace4.MeterRetrieveParams;
|
||||
export import MeterUpdateParams = BillingNamespace4.MeterUpdateParams;
|
||||
export import MeterDeactivateParams = BillingNamespace4.MeterDeactivateParams;
|
||||
export import MeterReactivateParams = BillingNamespace4.MeterReactivateParams;
|
||||
export import MeterListEventSummariesParams = BillingNamespace4.MeterListEventSummariesParams;
|
||||
export { Meter };
|
||||
export import MeterEventCreateParams = BillingNamespace5.MeterEventCreateParams;
|
||||
export { MeterEvent };
|
||||
export import MeterEventAdjustmentCreateParams = BillingNamespace6.MeterEventAdjustmentCreateParams;
|
||||
export { MeterEventAdjustment };
|
||||
export { AlertTriggered };
|
||||
export { MeterEventSummary };
|
||||
}
|
||||
21
node_modules/stripe/esm/resources/Billing/index.js
generated
vendored
Normal file
21
node_modules/stripe/esm/resources/Billing/index.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { AlertResource } from './Alerts.js';
|
||||
import { CreditBalanceSummaryResource, } from './CreditBalanceSummary.js';
|
||||
import { CreditBalanceTransactionResource, } from './CreditBalanceTransactions.js';
|
||||
import { CreditGrantResource, } from './CreditGrants.js';
|
||||
import { MeterResource } from './Meters.js';
|
||||
import { MeterEventResource, } from './MeterEvents.js';
|
||||
import { MeterEventAdjustmentResource, } from './MeterEventAdjustments.js';
|
||||
export class Billing {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.alerts = new AlertResource(stripe);
|
||||
this.creditBalanceSummaries = new CreditBalanceSummaryResource(stripe);
|
||||
this.creditBalanceTransactions = new CreditBalanceTransactionResource(stripe);
|
||||
this.creditGrants = new CreditGrantResource(stripe);
|
||||
this.meters = new MeterResource(stripe);
|
||||
this.meterEvents = new MeterEventResource(stripe);
|
||||
this.meterEventAdjustments = new MeterEventAdjustmentResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/Billing/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Billing/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Billing/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAAsC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC/E,OAAO,EAGL,4BAA4B,GAC7B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,gCAAgC,GACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAGL,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAsC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC/E,OAAO,EAGL,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGL,4BAA4B,GAC7B,MAAM,4BAA4B,CAAC;AAcpC,MAAM,OAAO,OAAO;IASlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,MAAM,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,sBAAsB,GAAG,IAAI,4BAA4B,CAAC,MAAM,CAAC,CAAC;QACvE,IAAI,CAAC,yBAAyB,GAAG,IAAI,gCAAgC,CACnE,MAAM,CACP,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;QACxC,IAAI,CAAC,WAAW,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAClD,IAAI,CAAC,qBAAqB,GAAG,IAAI,4BAA4B,CAAC,MAAM,CAAC,CAAC;IACxE,CAAC;CACF"}
|
||||
728
node_modules/stripe/esm/resources/BillingPortal/Configurations.d.ts
generated
vendored
Normal file
728
node_modules/stripe/esm/resources/BillingPortal/Configurations.d.ts
generated
vendored
Normal file
@@ -0,0 +1,728 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Application, DeletedApplication } from './../Applications.js';
|
||||
import { Emptyable, MetadataParam, PaginationParams, Metadata } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class ConfigurationResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of configurations that describe the functionality of the customer portal.
|
||||
*/
|
||||
list(params?: BillingPortal.ConfigurationListParams, options?: RequestOptions): ApiListPromise<Configuration>;
|
||||
/**
|
||||
* Creates a configuration that describes the functionality and behavior of a PortalSession
|
||||
*/
|
||||
create(params: BillingPortal.ConfigurationCreateParams, options?: RequestOptions): Promise<Response<Configuration>>;
|
||||
/**
|
||||
* Retrieves a configuration that describes the functionality of the customer portal.
|
||||
*/
|
||||
retrieve(id: string, params?: BillingPortal.ConfigurationRetrieveParams, options?: RequestOptions): Promise<Response<Configuration>>;
|
||||
/**
|
||||
* Updates a configuration that describes the functionality of the customer portal.
|
||||
*/
|
||||
update(id: string, params?: BillingPortal.ConfigurationUpdateParams, options?: RequestOptions): Promise<Response<Configuration>>;
|
||||
}
|
||||
export interface Configuration {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing_portal.configuration';
|
||||
/**
|
||||
* Whether the configuration is active and can be used to create portal sessions.
|
||||
*/
|
||||
active: boolean;
|
||||
/**
|
||||
* ID of the Connect Application that created the configuration.
|
||||
*/
|
||||
application: string | Application | DeletedApplication | null;
|
||||
business_profile: BillingPortal.Configuration.BusinessProfile;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
|
||||
*/
|
||||
default_return_url: string | null;
|
||||
features: BillingPortal.Configuration.Features;
|
||||
/**
|
||||
* Whether the configuration is the default. If `true`, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session.
|
||||
*/
|
||||
is_default: boolean;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
login_page: BillingPortal.Configuration.LoginPage;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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: Metadata | null;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
name: string | null;
|
||||
/**
|
||||
* Time at which the object was last updated. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
updated: number;
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
namespace Configuration {
|
||||
interface BusinessProfile {
|
||||
/**
|
||||
* The messaging shown to customers in the portal.
|
||||
*/
|
||||
headline: string | null;
|
||||
/**
|
||||
* A link to the business's publicly available privacy policy.
|
||||
*/
|
||||
privacy_policy_url: string | null;
|
||||
/**
|
||||
* A link to the business's publicly available terms of service.
|
||||
*/
|
||||
terms_of_service_url: string | null;
|
||||
}
|
||||
interface Features {
|
||||
customer_update: Features.CustomerUpdate;
|
||||
invoice_history: Features.InvoiceHistory;
|
||||
payment_method_update: Features.PaymentMethodUpdate;
|
||||
subscription_cancel: Features.SubscriptionCancel;
|
||||
subscription_update: Features.SubscriptionUpdate;
|
||||
}
|
||||
interface LoginPage {
|
||||
/**
|
||||
* If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal.
|
||||
*
|
||||
* If `false`, the previously generated `url`, if any, will be deactivated.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://docs.stripe.com/api/customers/object#customer_object-email) and receive a link to their customer portal.
|
||||
*/
|
||||
url: string | null;
|
||||
}
|
||||
namespace Features {
|
||||
interface CustomerUpdate {
|
||||
/**
|
||||
* The types of customer updates that are supported. When empty, customers are not updateable.
|
||||
*/
|
||||
allowed_updates: Array<CustomerUpdate.AllowedUpdate>;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
interface InvoiceHistory {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
interface PaymentMethodUpdate {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set, the default payment method configuration is used.
|
||||
*/
|
||||
payment_method_configuration: string | null;
|
||||
}
|
||||
interface SubscriptionCancel {
|
||||
cancellation_reason: SubscriptionCancel.CancellationReason;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Whether to cancel subscriptions immediately or at the end of the billing period.
|
||||
*/
|
||||
mode: SubscriptionCancel.Mode;
|
||||
/**
|
||||
* Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`.
|
||||
*/
|
||||
proration_behavior: SubscriptionCancel.ProrationBehavior;
|
||||
}
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
||||
*/
|
||||
billing_cycle_anchor: SubscriptionUpdate.BillingCycleAnchor | null;
|
||||
/**
|
||||
* The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
|
||||
*/
|
||||
default_allowed_updates: Array<SubscriptionUpdate.DefaultAllowedUpdate>;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The list of up to 10 products that support subscription updates.
|
||||
*/
|
||||
products?: Array<SubscriptionUpdate.Product> | null;
|
||||
/**
|
||||
* Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation.
|
||||
*/
|
||||
proration_behavior: SubscriptionUpdate.ProrationBehavior;
|
||||
schedule_at_period_end: SubscriptionUpdate.ScheduleAtPeriodEnd;
|
||||
/**
|
||||
* Determines how handle updates to trialing subscriptions. Valid values are `end_trial` and `continue_trial`. Defaults to a value of `end_trial` if you don't set it during creation.
|
||||
*/
|
||||
trial_update_behavior: SubscriptionUpdate.TrialUpdateBehavior;
|
||||
}
|
||||
namespace CustomerUpdate {
|
||||
type AllowedUpdate = 'address' | 'email' | 'name' | 'phone' | 'shipping' | 'tax_id';
|
||||
}
|
||||
namespace SubscriptionCancel {
|
||||
interface CancellationReason {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Which cancellation reasons will be given as options to the customer.
|
||||
*/
|
||||
options: Array<CancellationReason.Option>;
|
||||
}
|
||||
type Mode = 'at_period_end' | 'immediately';
|
||||
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
||||
namespace CancellationReason {
|
||||
type Option = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused';
|
||||
}
|
||||
}
|
||||
namespace SubscriptionUpdate {
|
||||
type BillingCycleAnchor = 'now' | 'unchanged';
|
||||
type DefaultAllowedUpdate = 'price' | 'promotion_code' | 'quantity';
|
||||
interface Product {
|
||||
adjustable_quantity: Product.AdjustableQuantity;
|
||||
/**
|
||||
* The list of price IDs which, when subscribed to, a subscription can be updated.
|
||||
*/
|
||||
prices: Array<string>;
|
||||
/**
|
||||
* The product ID.
|
||||
*/
|
||||
product: string;
|
||||
}
|
||||
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
||||
interface ScheduleAtPeriodEnd {
|
||||
/**
|
||||
* List of conditions. When any condition is true, an update will be scheduled at the end of the current period.
|
||||
*/
|
||||
conditions: Array<ScheduleAtPeriodEnd.Condition>;
|
||||
}
|
||||
type TrialUpdateBehavior = 'continue_trial' | 'end_trial';
|
||||
namespace Product {
|
||||
interface AdjustableQuantity {
|
||||
/**
|
||||
* If true, the quantity can be adjusted to any non-negative integer.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The maximum quantity that can be set for the product.
|
||||
*/
|
||||
maximum: number | null;
|
||||
/**
|
||||
* The minimum quantity that can be set for the product.
|
||||
*/
|
||||
minimum: number;
|
||||
}
|
||||
}
|
||||
namespace ScheduleAtPeriodEnd {
|
||||
interface Condition {
|
||||
/**
|
||||
* The type of condition.
|
||||
*/
|
||||
type: Condition.Type;
|
||||
}
|
||||
namespace Condition {
|
||||
type Type = 'decreasing_item_amount' | 'shortening_interval';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
interface ConfigurationCreateParams {
|
||||
/**
|
||||
* Information about the features available in the portal.
|
||||
*/
|
||||
features: ConfigurationCreateParams.Features;
|
||||
/**
|
||||
* The business information shown to customers in the portal.
|
||||
*/
|
||||
business_profile?: ConfigurationCreateParams.BusinessProfile;
|
||||
/**
|
||||
* The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
|
||||
*/
|
||||
default_return_url?: Emptyable<string>;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* The hosted login page for this configuration. Learn more about the portal login page in our [integration docs](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal#share).
|
||||
*/
|
||||
login_page?: ConfigurationCreateParams.LoginPage;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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?: MetadataParam;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
name?: Emptyable<string>;
|
||||
}
|
||||
namespace ConfigurationCreateParams {
|
||||
interface Features {
|
||||
/**
|
||||
* Information about updating the customer details in the portal.
|
||||
*/
|
||||
customer_update?: Features.CustomerUpdate;
|
||||
/**
|
||||
* Information about showing the billing history in the portal.
|
||||
*/
|
||||
invoice_history?: Features.InvoiceHistory;
|
||||
/**
|
||||
* Information about updating payment methods in the portal.
|
||||
*/
|
||||
payment_method_update?: Features.PaymentMethodUpdate;
|
||||
/**
|
||||
* Information about canceling subscriptions in the portal.
|
||||
*/
|
||||
subscription_cancel?: Features.SubscriptionCancel;
|
||||
/**
|
||||
* Information about updating subscriptions in the portal.
|
||||
*/
|
||||
subscription_update?: Features.SubscriptionUpdate;
|
||||
}
|
||||
interface BusinessProfile {
|
||||
/**
|
||||
* The messaging shown to customers in the portal.
|
||||
*/
|
||||
headline?: Emptyable<string>;
|
||||
/**
|
||||
* A link to the business's publicly available privacy policy.
|
||||
*/
|
||||
privacy_policy_url?: string;
|
||||
/**
|
||||
* A link to the business's publicly available terms of service.
|
||||
*/
|
||||
terms_of_service_url?: string;
|
||||
}
|
||||
interface LoginPage {
|
||||
/**
|
||||
* Set to `true` to generate a shareable URL [`login_page.url`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
namespace Features {
|
||||
interface CustomerUpdate {
|
||||
/**
|
||||
* The types of customer updates that are supported. When empty, customers are not updateable.
|
||||
*/
|
||||
allowed_updates?: Emptyable<Array<CustomerUpdate.AllowedUpdate>>;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
interface InvoiceHistory {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
interface PaymentMethodUpdate {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
|
||||
*/
|
||||
payment_method_configuration?: Emptyable<string>;
|
||||
}
|
||||
interface SubscriptionCancel {
|
||||
/**
|
||||
* Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer
|
||||
*/
|
||||
cancellation_reason?: SubscriptionCancel.CancellationReason;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Whether to cancel subscriptions immediately or at the end of the billing period.
|
||||
*/
|
||||
mode?: SubscriptionCancel.Mode;
|
||||
/**
|
||||
* Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
|
||||
*/
|
||||
proration_behavior?: SubscriptionCancel.ProrationBehavior;
|
||||
}
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
||||
*/
|
||||
billing_cycle_anchor?: SubscriptionUpdate.BillingCycleAnchor;
|
||||
/**
|
||||
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
|
||||
*/
|
||||
default_allowed_updates?: Emptyable<Array<SubscriptionUpdate.DefaultAllowedUpdate>>;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The list of up to 10 products that support subscription updates.
|
||||
*/
|
||||
products?: Emptyable<Array<SubscriptionUpdate.Product>>;
|
||||
/**
|
||||
* Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
|
||||
*/
|
||||
proration_behavior?: SubscriptionUpdate.ProrationBehavior;
|
||||
/**
|
||||
* Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
|
||||
*/
|
||||
schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
|
||||
/**
|
||||
* The behavior when updating a subscription that is trialing.
|
||||
*/
|
||||
trial_update_behavior?: SubscriptionUpdate.TrialUpdateBehavior;
|
||||
}
|
||||
namespace CustomerUpdate {
|
||||
type AllowedUpdate = 'address' | 'email' | 'name' | 'phone' | 'shipping' | 'tax_id';
|
||||
}
|
||||
namespace SubscriptionCancel {
|
||||
interface CancellationReason {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Which cancellation reasons will be given as options to the customer.
|
||||
*/
|
||||
options: Emptyable<Array<CancellationReason.Option>>;
|
||||
}
|
||||
type Mode = 'at_period_end' | 'immediately';
|
||||
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
||||
namespace CancellationReason {
|
||||
type Option = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused';
|
||||
}
|
||||
}
|
||||
namespace SubscriptionUpdate {
|
||||
type BillingCycleAnchor = 'now' | 'unchanged';
|
||||
type DefaultAllowedUpdate = 'price' | 'promotion_code' | 'quantity';
|
||||
interface Product {
|
||||
/**
|
||||
* Control whether the quantity of the product can be adjusted.
|
||||
*/
|
||||
adjustable_quantity?: Product.AdjustableQuantity;
|
||||
/**
|
||||
* The list of price IDs for the product that a subscription can be updated to.
|
||||
*/
|
||||
prices: Array<string>;
|
||||
/**
|
||||
* The product id.
|
||||
*/
|
||||
product: string;
|
||||
}
|
||||
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
||||
interface ScheduleAtPeriodEnd {
|
||||
/**
|
||||
* List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
|
||||
*/
|
||||
conditions?: Array<ScheduleAtPeriodEnd.Condition>;
|
||||
}
|
||||
type TrialUpdateBehavior = 'continue_trial' | 'end_trial';
|
||||
namespace Product {
|
||||
interface AdjustableQuantity {
|
||||
/**
|
||||
* Set to true if the quantity can be adjusted to any non-negative integer.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The maximum quantity that can be set for the product.
|
||||
*/
|
||||
maximum?: number;
|
||||
/**
|
||||
* The minimum quantity that can be set for the product.
|
||||
*/
|
||||
minimum?: number;
|
||||
}
|
||||
}
|
||||
namespace ScheduleAtPeriodEnd {
|
||||
interface Condition {
|
||||
/**
|
||||
* The type of condition.
|
||||
*/
|
||||
type: Condition.Type;
|
||||
}
|
||||
namespace Condition {
|
||||
type Type = 'decreasing_item_amount' | 'shortening_interval';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
interface ConfigurationRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
interface ConfigurationUpdateParams {
|
||||
/**
|
||||
* Whether the configuration is active and can be used to create portal sessions.
|
||||
*/
|
||||
active?: boolean;
|
||||
/**
|
||||
* The business information shown to customers in the portal.
|
||||
*/
|
||||
business_profile?: ConfigurationUpdateParams.BusinessProfile;
|
||||
/**
|
||||
* The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session.
|
||||
*/
|
||||
default_return_url?: Emptyable<string>;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Information about the features available in the portal.
|
||||
*/
|
||||
features?: ConfigurationUpdateParams.Features;
|
||||
/**
|
||||
* The hosted login page for this configuration. Learn more about the portal login page in our [integration docs](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal#share).
|
||||
*/
|
||||
login_page?: ConfigurationUpdateParams.LoginPage;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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?: Emptyable<MetadataParam>;
|
||||
/**
|
||||
* The name of the configuration.
|
||||
*/
|
||||
name?: Emptyable<string>;
|
||||
}
|
||||
namespace ConfigurationUpdateParams {
|
||||
interface BusinessProfile {
|
||||
/**
|
||||
* The messaging shown to customers in the portal.
|
||||
*/
|
||||
headline?: Emptyable<string>;
|
||||
/**
|
||||
* A link to the business's publicly available privacy policy.
|
||||
*/
|
||||
privacy_policy_url?: Emptyable<string>;
|
||||
/**
|
||||
* A link to the business's publicly available terms of service.
|
||||
*/
|
||||
terms_of_service_url?: Emptyable<string>;
|
||||
}
|
||||
interface Features {
|
||||
/**
|
||||
* Information about updating the customer details in the portal.
|
||||
*/
|
||||
customer_update?: Features.CustomerUpdate;
|
||||
/**
|
||||
* Information about showing the billing history in the portal.
|
||||
*/
|
||||
invoice_history?: Features.InvoiceHistory;
|
||||
/**
|
||||
* Information about updating payment methods in the portal.
|
||||
*/
|
||||
payment_method_update?: Features.PaymentMethodUpdate;
|
||||
/**
|
||||
* Information about canceling subscriptions in the portal.
|
||||
*/
|
||||
subscription_cancel?: Features.SubscriptionCancel;
|
||||
/**
|
||||
* Information about updating subscriptions in the portal.
|
||||
*/
|
||||
subscription_update?: Features.SubscriptionUpdate;
|
||||
}
|
||||
interface LoginPage {
|
||||
/**
|
||||
* Set to `true` to generate a shareable URL [`login_page.url`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal.
|
||||
*
|
||||
* Set to `false` to deactivate the `login_page.url`.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
namespace Features {
|
||||
interface CustomerUpdate {
|
||||
/**
|
||||
* The types of customer updates that are supported. When empty, customers are not updateable.
|
||||
*/
|
||||
allowed_updates?: Emptyable<Array<CustomerUpdate.AllowedUpdate>>;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled?: boolean;
|
||||
}
|
||||
interface InvoiceHistory {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
}
|
||||
interface PaymentMethodUpdate {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
|
||||
*/
|
||||
payment_method_configuration?: Emptyable<string>;
|
||||
}
|
||||
interface SubscriptionCancel {
|
||||
/**
|
||||
* Whether the cancellation reasons will be collected in the portal and which options are exposed to the customer
|
||||
*/
|
||||
cancellation_reason?: SubscriptionCancel.CancellationReason;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
* Whether to cancel subscriptions immediately or at the end of the billing period.
|
||||
*/
|
||||
mode?: SubscriptionCancel.Mode;
|
||||
/**
|
||||
* Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`, which is only compatible with `mode=immediately`. Passing `always_invoice` will result in an error. No prorations are generated when canceling a subscription at the end of its natural billing period.
|
||||
*/
|
||||
proration_behavior?: SubscriptionCancel.ProrationBehavior;
|
||||
}
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
||||
*/
|
||||
billing_cycle_anchor?: SubscriptionUpdate.BillingCycleAnchor;
|
||||
/**
|
||||
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
|
||||
*/
|
||||
default_allowed_updates?: Emptyable<Array<SubscriptionUpdate.DefaultAllowedUpdate>>;
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
* The list of up to 10 products that support subscription updates.
|
||||
*/
|
||||
products?: Emptyable<Array<SubscriptionUpdate.Product>>;
|
||||
/**
|
||||
* Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`.
|
||||
*/
|
||||
proration_behavior?: SubscriptionUpdate.ProrationBehavior;
|
||||
/**
|
||||
* Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
|
||||
*/
|
||||
schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd;
|
||||
/**
|
||||
* The behavior when updating a subscription that is trialing.
|
||||
*/
|
||||
trial_update_behavior?: SubscriptionUpdate.TrialUpdateBehavior;
|
||||
}
|
||||
namespace CustomerUpdate {
|
||||
type AllowedUpdate = 'address' | 'email' | 'name' | 'phone' | 'shipping' | 'tax_id';
|
||||
}
|
||||
namespace SubscriptionCancel {
|
||||
interface CancellationReason {
|
||||
/**
|
||||
* Whether the feature is enabled.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* Which cancellation reasons will be given as options to the customer.
|
||||
*/
|
||||
options?: Emptyable<Array<CancellationReason.Option>>;
|
||||
}
|
||||
type Mode = 'at_period_end' | 'immediately';
|
||||
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
||||
namespace CancellationReason {
|
||||
type Option = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused';
|
||||
}
|
||||
}
|
||||
namespace SubscriptionUpdate {
|
||||
type BillingCycleAnchor = 'now' | 'unchanged';
|
||||
type DefaultAllowedUpdate = 'price' | 'promotion_code' | 'quantity';
|
||||
interface Product {
|
||||
/**
|
||||
* Control whether the quantity of the product can be adjusted.
|
||||
*/
|
||||
adjustable_quantity?: Product.AdjustableQuantity;
|
||||
/**
|
||||
* The list of price IDs for the product that a subscription can be updated to.
|
||||
*/
|
||||
prices: Array<string>;
|
||||
/**
|
||||
* The product id.
|
||||
*/
|
||||
product: string;
|
||||
}
|
||||
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
||||
interface ScheduleAtPeriodEnd {
|
||||
/**
|
||||
* List of conditions. When any condition is true, the update will be scheduled at the end of the current period.
|
||||
*/
|
||||
conditions?: Emptyable<Array<ScheduleAtPeriodEnd.Condition>>;
|
||||
}
|
||||
type TrialUpdateBehavior = 'continue_trial' | 'end_trial';
|
||||
namespace Product {
|
||||
interface AdjustableQuantity {
|
||||
/**
|
||||
* Set to true if the quantity can be adjusted to any non-negative integer.
|
||||
*/
|
||||
enabled: boolean;
|
||||
/**
|
||||
* The maximum quantity that can be set for the product.
|
||||
*/
|
||||
maximum?: number;
|
||||
/**
|
||||
* The minimum quantity that can be set for the product.
|
||||
*/
|
||||
minimum?: number;
|
||||
}
|
||||
}
|
||||
namespace ScheduleAtPeriodEnd {
|
||||
interface Condition {
|
||||
/**
|
||||
* The type of condition.
|
||||
*/
|
||||
type: Condition.Type;
|
||||
}
|
||||
namespace Condition {
|
||||
type Type = 'decreasing_item_amount' | 'shortening_interval';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
interface ConfigurationListParams extends PaginationParams {
|
||||
/**
|
||||
* Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations).
|
||||
*/
|
||||
active?: boolean;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Only return the default or non-default configurations (e.g., pass `true` to only list the default configuration).
|
||||
*/
|
||||
is_default?: boolean;
|
||||
}
|
||||
}
|
||||
31
node_modules/stripe/esm/resources/BillingPortal/Configurations.js
generated
vendored
Normal file
31
node_modules/stripe/esm/resources/BillingPortal/Configurations.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class ConfigurationResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of configurations that describe the functionality of the customer portal.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/billing_portal/configurations', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a configuration that describes the functionality and behavior of a PortalSession
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/billing_portal/configurations', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves a configuration that describes the functionality of the customer portal.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/billing_portal/configurations/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates a configuration that describes the functionality of the customer portal.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/billing_portal/configurations/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Configurations.js.map
|
||||
1
node_modules/stripe/esm/resources/BillingPortal/Configurations.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/BillingPortal/Configurations.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Configurations.js","sourceRoot":"","sources":["../../../src/resources/BillingPortal/Configurations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAUvD,MAAM,OAAO,qBAAsB,SAAQ,cAAc;IACvD;;OAEG;IACH,IAAI,CACF,MAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,mCAAmC,EACnC,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,mCAAmC,EACnC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAkD,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,qCAAqC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC7D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,qCAAqC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC7D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
360
node_modules/stripe/esm/resources/BillingPortal/Sessions.d.ts
generated
vendored
Normal file
360
node_modules/stripe/esm/resources/BillingPortal/Sessions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,360 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Configuration } from './Configurations.js';
|
||||
import { RequestOptions, Response } from '../../lib.js';
|
||||
export declare class SessionResource extends StripeResource {
|
||||
/**
|
||||
* Creates a session of the customer portal.
|
||||
*/
|
||||
create(params?: BillingPortal.SessionCreateParams, options?: RequestOptions): Promise<Response<Session>>;
|
||||
}
|
||||
export interface Session {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'billing_portal.session';
|
||||
/**
|
||||
* The configuration used by this session, describing the features available.
|
||||
*/
|
||||
configuration: string | Configuration;
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* The ID of the customer for this session.
|
||||
*/
|
||||
customer: string;
|
||||
/**
|
||||
* The ID of the account for this session.
|
||||
*/
|
||||
customer_account: string | null;
|
||||
/**
|
||||
* Information about a specific flow for the customer to go through. See the [docs](https://docs.stripe.com/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
|
||||
*/
|
||||
flow: BillingPortal.Session.Flow | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
/**
|
||||
* The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer's `preferred_locales` or browser's locale is used.
|
||||
*/
|
||||
locale: BillingPortal.Session.Locale | null;
|
||||
/**
|
||||
* The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://docs.stripe.com/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
||||
*/
|
||||
on_behalf_of: string | null;
|
||||
/**
|
||||
* The URL to redirect customers to when they click on the portal's link to return to your website.
|
||||
*/
|
||||
return_url: string | null;
|
||||
/**
|
||||
* The short-lived URL of the session that gives customers access to the customer portal.
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
namespace Session {
|
||||
interface Flow {
|
||||
after_completion: Flow.AfterCompletion;
|
||||
/**
|
||||
* Configuration when `flow.type=subscription_cancel`.
|
||||
*/
|
||||
subscription_cancel: Flow.SubscriptionCancel | null;
|
||||
/**
|
||||
* Configuration when `flow.type=subscription_update`.
|
||||
*/
|
||||
subscription_update: Flow.SubscriptionUpdate | null;
|
||||
/**
|
||||
* Configuration when `flow.type=subscription_update_confirm`.
|
||||
*/
|
||||
subscription_update_confirm: Flow.SubscriptionUpdateConfirm | null;
|
||||
/**
|
||||
* Type of flow that the customer will go through.
|
||||
*/
|
||||
type: Flow.Type;
|
||||
}
|
||||
type Locale = 'auto' | 'bg' | 'cs' | 'da' | 'de' | 'el' | 'en' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-IE' | 'en-IN' | 'en-NZ' | 'en-SG' | 'es' | 'es-419' | 'et' | 'fi' | 'fil' | 'fr' | 'fr-CA' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'mt' | 'nb' | 'nl' | 'pl' | 'pt' | 'pt-BR' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'vi' | 'zh' | 'zh-HK' | 'zh-TW';
|
||||
namespace Flow {
|
||||
interface AfterCompletion {
|
||||
/**
|
||||
* Configuration when `after_completion.type=hosted_confirmation`.
|
||||
*/
|
||||
hosted_confirmation: AfterCompletion.HostedConfirmation | null;
|
||||
/**
|
||||
* Configuration when `after_completion.type=redirect`.
|
||||
*/
|
||||
redirect: AfterCompletion.Redirect | null;
|
||||
/**
|
||||
* The specified type of behavior after the flow is completed.
|
||||
*/
|
||||
type: AfterCompletion.Type;
|
||||
}
|
||||
interface SubscriptionCancel {
|
||||
/**
|
||||
* Specify a retention strategy to be used in the cancellation flow.
|
||||
*/
|
||||
retention: SubscriptionCancel.Retention | null;
|
||||
/**
|
||||
* The ID of the subscription to be canceled.
|
||||
*/
|
||||
subscription: string;
|
||||
}
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* The ID of the subscription to be updated.
|
||||
*/
|
||||
subscription: string;
|
||||
}
|
||||
interface SubscriptionUpdateConfirm {
|
||||
/**
|
||||
* The coupon or promotion code to apply to this subscription update.
|
||||
*/
|
||||
discounts: Array<SubscriptionUpdateConfirm.Discount> | null;
|
||||
/**
|
||||
* The [subscription item](https://docs.stripe.com/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
|
||||
*/
|
||||
items: Array<SubscriptionUpdateConfirm.Item>;
|
||||
/**
|
||||
* The ID of the subscription to be updated.
|
||||
*/
|
||||
subscription: string;
|
||||
}
|
||||
type Type = 'payment_method_update' | 'subscription_cancel' | 'subscription_update' | 'subscription_update_confirm';
|
||||
namespace AfterCompletion {
|
||||
interface HostedConfirmation {
|
||||
/**
|
||||
* A custom message to display to the customer after the flow is completed.
|
||||
*/
|
||||
custom_message: string | null;
|
||||
}
|
||||
interface Redirect {
|
||||
/**
|
||||
* The URL the customer will be redirected to after the flow is completed.
|
||||
*/
|
||||
return_url: string;
|
||||
}
|
||||
type Type = 'hosted_confirmation' | 'portal_homepage' | 'redirect';
|
||||
}
|
||||
namespace SubscriptionCancel {
|
||||
interface Retention {
|
||||
/**
|
||||
* Configuration when `retention.type=coupon_offer`.
|
||||
*/
|
||||
coupon_offer: Retention.CouponOffer | null;
|
||||
/**
|
||||
* Type of retention strategy that will be used.
|
||||
*/
|
||||
type: 'coupon_offer';
|
||||
}
|
||||
namespace Retention {
|
||||
interface CouponOffer {
|
||||
/**
|
||||
* The ID of the coupon to be offered.
|
||||
*/
|
||||
coupon: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace SubscriptionUpdateConfirm {
|
||||
interface Discount {
|
||||
/**
|
||||
* The ID of the coupon to apply to this subscription update.
|
||||
*/
|
||||
coupon: string | null;
|
||||
/**
|
||||
* The ID of a promotion code to apply to this subscription update.
|
||||
*/
|
||||
promotion_code: string | null;
|
||||
}
|
||||
interface Item {
|
||||
/**
|
||||
* The ID of the [subscription item](https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-id) to be updated.
|
||||
*/
|
||||
id: string | null;
|
||||
/**
|
||||
* The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
|
||||
*/
|
||||
price: string | null;
|
||||
/**
|
||||
* [Quantity](https://docs.stripe.com/subscriptions/quantities) for this item that the customer should subscribe to through this flow.
|
||||
*/
|
||||
quantity?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
interface SessionCreateParams {
|
||||
/**
|
||||
* The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configurations) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
|
||||
*/
|
||||
configuration?: string;
|
||||
/**
|
||||
* The ID of an existing customer.
|
||||
*/
|
||||
customer?: string;
|
||||
/**
|
||||
* The ID of an existing account.
|
||||
*/
|
||||
customer_account?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Information about a specific flow for the customer to go through. See the [docs](https://docs.stripe.com/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
|
||||
*/
|
||||
flow_data?: SessionCreateParams.FlowData;
|
||||
/**
|
||||
* The IETF language tag of the locale customer portal is displayed in. If blank or auto, the customer's `preferred_locales` or browser's locale is used.
|
||||
*/
|
||||
locale?: SessionCreateParams.Locale;
|
||||
/**
|
||||
* The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://docs.stripe.com/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
||||
*/
|
||||
on_behalf_of?: string;
|
||||
/**
|
||||
* The default URL to redirect customers to when they click on the portal's link to return to your website.
|
||||
*/
|
||||
return_url?: string;
|
||||
}
|
||||
namespace SessionCreateParams {
|
||||
interface FlowData {
|
||||
/**
|
||||
* Behavior after the flow is completed.
|
||||
*/
|
||||
after_completion?: FlowData.AfterCompletion;
|
||||
/**
|
||||
* Configuration when `flow_data.type=subscription_cancel`.
|
||||
*/
|
||||
subscription_cancel?: FlowData.SubscriptionCancel;
|
||||
/**
|
||||
* Configuration when `flow_data.type=subscription_update`.
|
||||
*/
|
||||
subscription_update?: FlowData.SubscriptionUpdate;
|
||||
/**
|
||||
* Configuration when `flow_data.type=subscription_update_confirm`.
|
||||
*/
|
||||
subscription_update_confirm?: FlowData.SubscriptionUpdateConfirm;
|
||||
/**
|
||||
* Type of flow that the customer will go through.
|
||||
*/
|
||||
type: FlowData.Type;
|
||||
}
|
||||
type Locale = 'auto' | 'bg' | 'cs' | 'da' | 'de' | 'el' | 'en' | 'en-AU' | 'en-CA' | 'en-GB' | 'en-IE' | 'en-IN' | 'en-NZ' | 'en-SG' | 'es' | 'es-419' | 'et' | 'fi' | 'fil' | 'fr' | 'fr-CA' | 'hr' | 'hu' | 'id' | 'it' | 'ja' | 'ko' | 'lt' | 'lv' | 'ms' | 'mt' | 'nb' | 'nl' | 'pl' | 'pt' | 'pt-BR' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'th' | 'tr' | 'vi' | 'zh' | 'zh-HK' | 'zh-TW';
|
||||
namespace FlowData {
|
||||
interface AfterCompletion {
|
||||
/**
|
||||
* Configuration when `after_completion.type=hosted_confirmation`.
|
||||
*/
|
||||
hosted_confirmation?: AfterCompletion.HostedConfirmation;
|
||||
/**
|
||||
* Configuration when `after_completion.type=redirect`.
|
||||
*/
|
||||
redirect?: AfterCompletion.Redirect;
|
||||
/**
|
||||
* The specified behavior after the flow is completed.
|
||||
*/
|
||||
type: AfterCompletion.Type;
|
||||
}
|
||||
interface SubscriptionCancel {
|
||||
/**
|
||||
* Specify a retention strategy to be used in the cancellation flow.
|
||||
*/
|
||||
retention?: SubscriptionCancel.Retention;
|
||||
/**
|
||||
* The ID of the subscription to be canceled.
|
||||
*/
|
||||
subscription: string;
|
||||
}
|
||||
interface SubscriptionUpdate {
|
||||
/**
|
||||
* The ID of the subscription to be updated.
|
||||
*/
|
||||
subscription: string;
|
||||
}
|
||||
interface SubscriptionUpdateConfirm {
|
||||
/**
|
||||
* The coupon or promotion code to apply to this subscription update.
|
||||
*/
|
||||
discounts?: Array<SubscriptionUpdateConfirm.Discount>;
|
||||
/**
|
||||
* The [subscription item](https://docs.stripe.com/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable.
|
||||
*/
|
||||
items: Array<SubscriptionUpdateConfirm.Item>;
|
||||
/**
|
||||
* The ID of the subscription to be updated.
|
||||
*/
|
||||
subscription: string;
|
||||
}
|
||||
type Type = 'payment_method_update' | 'subscription_cancel' | 'subscription_update' | 'subscription_update_confirm';
|
||||
namespace AfterCompletion {
|
||||
interface HostedConfirmation {
|
||||
/**
|
||||
* A custom message to display to the customer after the flow is completed.
|
||||
*/
|
||||
custom_message?: string;
|
||||
}
|
||||
interface Redirect {
|
||||
/**
|
||||
* The URL the customer will be redirected to after the flow is completed.
|
||||
*/
|
||||
return_url: string;
|
||||
}
|
||||
type Type = 'hosted_confirmation' | 'portal_homepage' | 'redirect';
|
||||
}
|
||||
namespace SubscriptionCancel {
|
||||
interface Retention {
|
||||
/**
|
||||
* Configuration when `retention.type=coupon_offer`.
|
||||
*/
|
||||
coupon_offer: Retention.CouponOffer;
|
||||
/**
|
||||
* Type of retention strategy to use with the customer.
|
||||
*/
|
||||
type: 'coupon_offer';
|
||||
}
|
||||
namespace Retention {
|
||||
interface CouponOffer {
|
||||
/**
|
||||
* The ID of the coupon to be offered.
|
||||
*/
|
||||
coupon: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace SubscriptionUpdateConfirm {
|
||||
interface Discount {
|
||||
/**
|
||||
* The ID of the coupon to apply to this subscription update.
|
||||
*/
|
||||
coupon?: string;
|
||||
/**
|
||||
* The ID of a promotion code to apply to this subscription update.
|
||||
*/
|
||||
promotion_code?: string;
|
||||
}
|
||||
interface Item {
|
||||
/**
|
||||
* The ID of the [subscription item](https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-id) to be updated.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
|
||||
*/
|
||||
price?: string;
|
||||
/**
|
||||
* [Quantity](https://docs.stripe.com/subscriptions/quantities) for this item that the customer should subscribe to through this flow.
|
||||
*/
|
||||
quantity?: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/BillingPortal/Sessions.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/BillingPortal/Sessions.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class SessionResource extends StripeResource {
|
||||
/**
|
||||
* Creates a session of the customer portal.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/billing_portal/sessions', params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Sessions.js.map
|
||||
1
node_modules/stripe/esm/resources/BillingPortal/Sessions.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/BillingPortal/Sessions.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Sessions.js","sourceRoot":"","sources":["../../../src/resources/BillingPortal/Sessions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAIvD,MAAM,OAAO,eAAgB,SAAQ,cAAc;IACjD;;OAEG;IACH,MAAM,CACJ,MAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,6BAA6B,EAC7B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
20
node_modules/stripe/esm/resources/BillingPortal/index.d.ts
generated
vendored
Normal file
20
node_modules/stripe/esm/resources/BillingPortal/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { BillingPortal as BillingPortalNamespace0, Configuration, ConfigurationResource } from './Configurations.js';
|
||||
import { BillingPortal as BillingPortalNamespace1, Session, SessionResource } from './Sessions.js';
|
||||
export { Configuration } from './Configurations.js';
|
||||
export { Session } from './Sessions.js';
|
||||
export declare class BillingPortal {
|
||||
private readonly stripe;
|
||||
configurations: ConfigurationResource;
|
||||
sessions: SessionResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace BillingPortal {
|
||||
export import ConfigurationListParams = BillingPortalNamespace0.ConfigurationListParams;
|
||||
export import ConfigurationCreateParams = BillingPortalNamespace0.ConfigurationCreateParams;
|
||||
export import ConfigurationRetrieveParams = BillingPortalNamespace0.ConfigurationRetrieveParams;
|
||||
export import ConfigurationUpdateParams = BillingPortalNamespace0.ConfigurationUpdateParams;
|
||||
export { Configuration };
|
||||
export import SessionCreateParams = BillingPortalNamespace1.SessionCreateParams;
|
||||
export { Session };
|
||||
}
|
||||
11
node_modules/stripe/esm/resources/BillingPortal/index.js
generated
vendored
Normal file
11
node_modules/stripe/esm/resources/BillingPortal/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { ConfigurationResource, } from './Configurations.js';
|
||||
import { SessionResource, } from './Sessions.js';
|
||||
export class BillingPortal {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.configurations = new ConfigurationResource(stripe);
|
||||
this.sessions = new SessionResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/BillingPortal/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/BillingPortal/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/BillingPortal/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,eAAe,GAChB,MAAM,eAAe,CAAC;AAKvB,MAAM,OAAO,aAAa;IAIxB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,cAAc,GAAG,IAAI,qBAAqB,CAAC,MAAM,CAAC,CAAC;QACxD,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
||||
160
node_modules/stripe/esm/resources/Capabilities.d.ts
generated
vendored
Normal file
160
node_modules/stripe/esm/resources/Capabilities.d.ts
generated
vendored
Normal file
@@ -0,0 +1,160 @@
|
||||
import { Account } from './Accounts.js';
|
||||
export interface Capability {
|
||||
/**
|
||||
* The identifier for the capability.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'capability';
|
||||
/**
|
||||
* The account for which the capability enables functionality.
|
||||
*/
|
||||
account: string | Account;
|
||||
future_requirements?: Capability.FutureRequirements;
|
||||
/**
|
||||
* Whether the capability has been requested.
|
||||
*/
|
||||
requested: boolean;
|
||||
/**
|
||||
* Time at which the capability was requested. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
requested_at: number | null;
|
||||
requirements?: Capability.Requirements;
|
||||
/**
|
||||
* The status of the capability.
|
||||
*/
|
||||
status: Capability.Status;
|
||||
}
|
||||
export declare namespace Capability {
|
||||
interface FutureRequirements {
|
||||
/**
|
||||
* Fields that are due and can be resolved by providing the corresponding alternative fields instead. Multiple alternatives can reference the same `original_fields_due`. When this happens, any of these alternatives can serve as a pathway for attempting to resolve the fields. Additionally, providing `original_fields_due` again also serves as a pathway for attempting to resolve the fields.
|
||||
*/
|
||||
alternatives: Array<FutureRequirements.Alternative> | null;
|
||||
/**
|
||||
* Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning.
|
||||
*/
|
||||
current_deadline: number | null;
|
||||
/**
|
||||
* Fields that need to be resolved to keep the capability enabled. If not resolved by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.
|
||||
*/
|
||||
currently_due: Array<string>;
|
||||
/**
|
||||
* This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account.
|
||||
*/
|
||||
disabled_reason: FutureRequirements.DisabledReason | null;
|
||||
/**
|
||||
* Details about validation and verification failures for `due` requirements that must be resolved.
|
||||
*/
|
||||
errors: Array<FutureRequirements.Error>;
|
||||
/**
|
||||
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
|
||||
*/
|
||||
eventually_due: Array<string>;
|
||||
/**
|
||||
* Fields that haven't been resolved by `requirements.current_deadline`. These fields need to be resolved to enable the capability on the account. `future_requirements.past_due` is a subset of `requirements.past_due`.
|
||||
*/
|
||||
past_due: Array<string>;
|
||||
/**
|
||||
* Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.
|
||||
*/
|
||||
pending_verification: Array<string>;
|
||||
}
|
||||
interface Requirements {
|
||||
/**
|
||||
* Fields that are due and can be resolved by providing the corresponding alternative fields instead. Multiple alternatives can reference the same `original_fields_due`. When this happens, any of these alternatives can serve as a pathway for attempting to resolve the fields. Additionally, providing `original_fields_due` again also serves as a pathway for attempting to resolve the fields.
|
||||
*/
|
||||
alternatives: Array<Requirements.Alternative> | null;
|
||||
/**
|
||||
* The date by which all required account information must be both submitted and verified. This includes fields listed in `currently_due` as well as those in `pending_verification`. If any required information is missing or unverified by this date, the account may be disabled. Note that `current_deadline` may change if additional `currently_due` requirements are requested.
|
||||
*/
|
||||
current_deadline: number | null;
|
||||
/**
|
||||
* Fields that need to be resolved to keep the capability enabled. If not resolved by `current_deadline`, these fields will appear in `past_due` as well, and the capability is disabled.
|
||||
*/
|
||||
currently_due: Array<string>;
|
||||
/**
|
||||
* Description of why the capability is disabled. [Learn more about handling verification issues](https://docs.stripe.com/connect/handling-api-verification).
|
||||
*/
|
||||
disabled_reason: Requirements.DisabledReason | null;
|
||||
/**
|
||||
* Details about validation and verification failures for `due` requirements that must be resolved.
|
||||
*/
|
||||
errors: Array<Requirements.Error>;
|
||||
/**
|
||||
* Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
||||
*/
|
||||
eventually_due: Array<string>;
|
||||
/**
|
||||
* Fields that haven't been resolved by `current_deadline`. These fields need to be resolved to enable the capability on the account.
|
||||
*/
|
||||
past_due: Array<string>;
|
||||
/**
|
||||
* Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.
|
||||
*/
|
||||
pending_verification: Array<string>;
|
||||
}
|
||||
type Status = 'active' | 'inactive' | 'pending' | 'unrequested';
|
||||
namespace FutureRequirements {
|
||||
interface Alternative {
|
||||
/**
|
||||
* Fields that can be provided to resolve all fields in `original_fields_due`.
|
||||
*/
|
||||
alternative_fields_due: Array<string>;
|
||||
/**
|
||||
* Fields that are due and can be resolved by providing all fields in `alternative_fields_due`.
|
||||
*/
|
||||
original_fields_due: Array<string>;
|
||||
}
|
||||
type DisabledReason = 'other' | 'paused.inactivity' | 'pending.onboarding' | 'pending.review' | 'platform_disabled' | 'platform_paused' | 'rejected.inactivity' | 'rejected.other' | 'rejected.unsupported_business' | 'requirements.fields_needed';
|
||||
interface Error {
|
||||
/**
|
||||
* The code for the type of error.
|
||||
*/
|
||||
code: Error.Code;
|
||||
/**
|
||||
* An informative message that indicates the error type and provides additional details about the error.
|
||||
*/
|
||||
reason: string;
|
||||
/**
|
||||
* The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
*/
|
||||
requirement: string;
|
||||
}
|
||||
namespace Error {
|
||||
type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
|
||||
}
|
||||
}
|
||||
namespace Requirements {
|
||||
interface Alternative {
|
||||
/**
|
||||
* Fields that can be provided to resolve all fields in `original_fields_due`.
|
||||
*/
|
||||
alternative_fields_due: Array<string>;
|
||||
/**
|
||||
* Fields that are due and can be resolved by providing all fields in `alternative_fields_due`.
|
||||
*/
|
||||
original_fields_due: Array<string>;
|
||||
}
|
||||
type DisabledReason = 'other' | 'paused.inactivity' | 'pending.onboarding' | 'pending.review' | 'platform_disabled' | 'platform_paused' | 'rejected.inactivity' | 'rejected.other' | 'rejected.unsupported_business' | 'requirements.fields_needed';
|
||||
interface Error {
|
||||
/**
|
||||
* The code for the type of error.
|
||||
*/
|
||||
code: Error.Code;
|
||||
/**
|
||||
* An informative message that indicates the error type and provides additional details about the error.
|
||||
*/
|
||||
reason: string;
|
||||
/**
|
||||
* The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
|
||||
*/
|
||||
requirement: string;
|
||||
}
|
||||
namespace Error {
|
||||
type Code = 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability';
|
||||
}
|
||||
}
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/Capabilities.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/Capabilities.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=Capabilities.js.map
|
||||
1
node_modules/stripe/esm/resources/Capabilities.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Capabilities.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Capabilities.js","sourceRoot":"","sources":["../../src/resources/Capabilities.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
170
node_modules/stripe/esm/resources/Cards.d.ts
generated
vendored
Normal file
170
node_modules/stripe/esm/resources/Cards.d.ts
generated
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
import { Account } from './Accounts.js';
|
||||
import { Customer, DeletedCustomer } from './Customers.js';
|
||||
import { Metadata } from '../shared.js';
|
||||
export interface Card {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'card';
|
||||
account?: string | Account | null;
|
||||
/**
|
||||
* City/District/Suburb/Town/Village.
|
||||
*/
|
||||
address_city: string | null;
|
||||
/**
|
||||
* Billing address country, if provided when creating card.
|
||||
*/
|
||||
address_country: string | null;
|
||||
/**
|
||||
* Address line 1 (Street address/PO Box/Company name).
|
||||
*/
|
||||
address_line1: string | null;
|
||||
/**
|
||||
* If `address_line1` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
|
||||
*/
|
||||
address_line1_check: string | null;
|
||||
/**
|
||||
* Address line 2 (Apartment/Suite/Unit/Building).
|
||||
*/
|
||||
address_line2: string | null;
|
||||
/**
|
||||
* State/County/Province/Region.
|
||||
*/
|
||||
address_state: string | null;
|
||||
/**
|
||||
* ZIP or postal code.
|
||||
*/
|
||||
address_zip: string | null;
|
||||
/**
|
||||
* If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
|
||||
*/
|
||||
address_zip_check: string | null;
|
||||
/**
|
||||
* This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
|
||||
*/
|
||||
allow_redisplay?: Card.AllowRedisplay | null;
|
||||
/**
|
||||
* A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
|
||||
*/
|
||||
available_payout_methods?: Array<Card.AvailablePayoutMethod> | null;
|
||||
/**
|
||||
* Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
||||
*/
|
||||
brand: string;
|
||||
/**
|
||||
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
||||
*/
|
||||
country: string | null;
|
||||
/**
|
||||
* Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available when returned as an [External Account](https://docs.stripe.com/api/external_account_cards/object) where [controller.is_controller](https://docs.stripe.com/api/accounts/object#account_object-controller-is_controller) is `true`.
|
||||
*/
|
||||
currency?: string | null;
|
||||
/**
|
||||
* The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
|
||||
*/
|
||||
customer?: string | Customer | DeletedCustomer | null;
|
||||
/**
|
||||
* If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see [Check if a card is valid without a charge](https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge).
|
||||
*/
|
||||
cvc_check: string | null;
|
||||
/**
|
||||
* Whether this card is the default external account for its currency. This property is only available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
||||
*/
|
||||
default_for_currency?: boolean | null;
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted?: void;
|
||||
/**
|
||||
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
||||
*/
|
||||
description?: string;
|
||||
/**
|
||||
* (For tokenized numbers only.) The last four digits of the device account number.
|
||||
*/
|
||||
dynamic_last4: string | null;
|
||||
/**
|
||||
* Two-digit number representing the card's expiration month.
|
||||
*/
|
||||
exp_month: number;
|
||||
/**
|
||||
* Four-digit number representing the card's expiration year.
|
||||
*/
|
||||
exp_year: number;
|
||||
/**
|
||||
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
||||
*
|
||||
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
||||
*/
|
||||
fingerprint?: string | null;
|
||||
/**
|
||||
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
||||
*/
|
||||
funding: string;
|
||||
/**
|
||||
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
||||
*/
|
||||
iin?: string;
|
||||
/**
|
||||
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
||||
*/
|
||||
issuer?: string;
|
||||
/**
|
||||
* The last four digits of the card.
|
||||
*/
|
||||
last4: string;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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: Metadata | null;
|
||||
/**
|
||||
* Cardholder name.
|
||||
*/
|
||||
name: string | null;
|
||||
networks?: Card.Networks;
|
||||
/**
|
||||
* Status of a card based on the card issuer.
|
||||
*/
|
||||
regulated_status: Card.RegulatedStatus | null;
|
||||
/**
|
||||
* For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
* If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
|
||||
*/
|
||||
tokenization_method: string | null;
|
||||
}
|
||||
export interface DeletedCard {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'card';
|
||||
/**
|
||||
* Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
|
||||
*/
|
||||
currency?: string | null;
|
||||
/**
|
||||
* Always true for a deleted object
|
||||
*/
|
||||
deleted: true;
|
||||
}
|
||||
export declare namespace Card {
|
||||
type AllowRedisplay = 'always' | 'limited' | 'unspecified';
|
||||
type AvailablePayoutMethod = 'instant' | 'standard';
|
||||
interface Networks {
|
||||
/**
|
||||
* The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
|
||||
*/
|
||||
preferred: string | null;
|
||||
}
|
||||
type RegulatedStatus = 'regulated' | 'unregulated';
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/Cards.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/Cards.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=Cards.js.map
|
||||
1
node_modules/stripe/esm/resources/Cards.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Cards.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Cards.js","sourceRoot":"","sources":["../../src/resources/Cards.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
40
node_modules/stripe/esm/resources/CashBalances.d.ts
generated
vendored
Normal file
40
node_modules/stripe/esm/resources/CashBalances.d.ts
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
export interface CashBalance {
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'cash_balance';
|
||||
/**
|
||||
* A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
||||
*/
|
||||
available: {
|
||||
[key: string]: number;
|
||||
} | null;
|
||||
/**
|
||||
* The ID of the customer whose cash balance this object represents.
|
||||
*/
|
||||
customer: string;
|
||||
/**
|
||||
* The ID of an Account representing a customer whose cash balance this object represents.
|
||||
*/
|
||||
customer_account: string | null;
|
||||
/**
|
||||
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
||||
*/
|
||||
livemode: boolean;
|
||||
settings: CashBalance.Settings;
|
||||
}
|
||||
export declare namespace CashBalance {
|
||||
interface Settings {
|
||||
/**
|
||||
* The configuration for how funds that land in the customer cash balance are reconciled.
|
||||
*/
|
||||
reconciliation_mode: Settings.ReconciliationMode;
|
||||
/**
|
||||
* A flag to indicate if reconciliation mode returned is the user's default or is specific to this customer cash balance
|
||||
*/
|
||||
using_merchant_default: boolean;
|
||||
}
|
||||
namespace Settings {
|
||||
type ReconciliationMode = 'automatic' | 'manual';
|
||||
}
|
||||
}
|
||||
3
node_modules/stripe/esm/resources/CashBalances.js
generated
vendored
Normal file
3
node_modules/stripe/esm/resources/CashBalances.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
// File generated from our OpenAPI spec
|
||||
export {};
|
||||
//# sourceMappingURL=CashBalances.js.map
|
||||
1
node_modules/stripe/esm/resources/CashBalances.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/CashBalances.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"CashBalances.js","sourceRoot":"","sources":["../../src/resources/CashBalances.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
||||
2328
node_modules/stripe/esm/resources/Charges.d.ts
generated
vendored
Normal file
2328
node_modules/stripe/esm/resources/Charges.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
54
node_modules/stripe/esm/resources/Charges.js
generated
vendored
Normal file
54
node_modules/stripe/esm/resources/Charges.js
generated
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../StripeResource.js';
|
||||
export class ChargeResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of charges you've previously created. The charges are returned in sorted order, with the most recent charges appearing first.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/charges', params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* This method is no longer recommended—use the [Payment Intents API](https://docs.stripe.com/docs/api/payment_intents)
|
||||
* to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge
|
||||
* object used to request payment.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/charges', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/charges/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/charges/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Search for charges you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
||||
* Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
||||
* conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
||||
* to an hour behind during outages. Search functionality is not available to merchants in India.
|
||||
*/
|
||||
search(params, options) {
|
||||
return this._makeRequest('GET', '/v1/charges/search', params, options, {
|
||||
methodType: 'search',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
||||
*
|
||||
* Uncaptured payments expire a set number of days after they are created ([7 by default](https://docs.stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
||||
*
|
||||
* Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture).
|
||||
*/
|
||||
capture(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/charges/${encodeURIComponent(id)}/capture`, params, options);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Charges.js.map
|
||||
1
node_modules/stripe/esm/resources/Charges.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Charges.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Charges.js","sourceRoot":"","sources":["../../src/resources/Charges.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AA8BpD,MAAM,OAAO,cAAe,SAAQ,cAAc;IAChD;;OAEG;IACH,IAAI,CACF,MAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE;YAC9D,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,MAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAQ,CAAC;IAC1E,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,eAAe,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACvC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,eAAe,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACvC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;OAKG;IACH,MAAM,CACJ,MAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE;YACrE,UAAU,EAAE,QAAQ;SACrB,CAAQ,CAAC;IACZ,CAAC;IACD;;;;;;OAMG;IACH,OAAO,CACL,EAAU,EACV,MAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,eAAe,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAC/C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
||||
5016
node_modules/stripe/esm/resources/Checkout/Sessions.d.ts
generated
vendored
Normal file
5016
node_modules/stripe/esm/resources/Checkout/Sessions.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
569
node_modules/stripe/esm/resources/Checkout/Sessions.js
generated
vendored
Normal file
569
node_modules/stripe/esm/resources/Checkout/Sessions.js
generated
vendored
Normal file
@@ -0,0 +1,569 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class SessionResource extends StripeResource {
|
||||
/**
|
||||
* Returns a list of Checkout Sessions.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/checkout/sessions', params, options, {
|
||||
methodType: 'list',
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_conversion: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: { fx_rate: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
line_items: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_options: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a Checkout Session object.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/checkout/sessions', params, options, {
|
||||
requestSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
line_items: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price_data: {
|
||||
kind: 'object',
|
||||
fields: { unit_amount_decimal: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_conversion: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: { fx_rate: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
line_items: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_options: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves a Checkout Session object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/checkout/sessions/${encodeURIComponent(id)}`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_conversion: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: { fx_rate: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
line_items: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_options: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Updates a Checkout Session object.
|
||||
*
|
||||
* Related guide: [Dynamically update a Checkout Session](https://docs.stripe.com/payments/advanced/dynamic-updates)
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/checkout/sessions/${encodeURIComponent(id)}`, params, options, {
|
||||
requestSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
line_items: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price_data: {
|
||||
kind: 'object',
|
||||
fields: { unit_amount_decimal: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_conversion: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: { fx_rate: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
line_items: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_options: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* A Checkout Session can be expired when it is in one of these statuses: open
|
||||
*
|
||||
* After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
|
||||
*/
|
||||
expire(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/checkout/sessions/${encodeURIComponent(id)}/expire`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_conversion: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: { fx_rate: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
line_items: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_options: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
|
||||
*/
|
||||
listLineItems(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/checkout/sessions/${encodeURIComponent(id)}/line_items`, params, options, {
|
||||
methodType: 'list',
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
price: {
|
||||
kind: 'nullable',
|
||||
inner: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
currency_options: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
tiers: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
flat_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
unit_amount_decimal: {
|
||||
kind: 'nullable',
|
||||
inner: { kind: 'decimal_string' },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Sessions.js.map
|
||||
1
node_modules/stripe/esm/resources/Checkout/Sessions.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Checkout/Sessions.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
17
node_modules/stripe/esm/resources/Checkout/index.d.ts
generated
vendored
Normal file
17
node_modules/stripe/esm/resources/Checkout/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Stripe } from '../../stripe.core.js';
|
||||
import { Checkout as CheckoutNamespace0, Session, SessionResource } from './Sessions.js';
|
||||
export { Session } from './Sessions.js';
|
||||
export declare class Checkout {
|
||||
private readonly stripe;
|
||||
sessions: SessionResource;
|
||||
constructor(stripe: Stripe);
|
||||
}
|
||||
export declare namespace Checkout {
|
||||
export import SessionListParams = CheckoutNamespace0.SessionListParams;
|
||||
export import SessionCreateParams = CheckoutNamespace0.SessionCreateParams;
|
||||
export import SessionRetrieveParams = CheckoutNamespace0.SessionRetrieveParams;
|
||||
export import SessionUpdateParams = CheckoutNamespace0.SessionUpdateParams;
|
||||
export import SessionExpireParams = CheckoutNamespace0.SessionExpireParams;
|
||||
export import SessionListLineItemsParams = CheckoutNamespace0.SessionListLineItemsParams;
|
||||
export { Session };
|
||||
}
|
||||
9
node_modules/stripe/esm/resources/Checkout/index.js
generated
vendored
Normal file
9
node_modules/stripe/esm/resources/Checkout/index.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { SessionResource, } from './Sessions.js';
|
||||
export class Checkout {
|
||||
constructor(stripe) {
|
||||
this.stripe = stripe;
|
||||
this.sessions = new SessionResource(stripe);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/stripe/esm/resources/Checkout/index.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Checkout/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Checkout/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,eAAe,GAChB,MAAM,eAAe,CAAC;AAIvB,MAAM,OAAO,QAAQ;IAGnB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9C,CAAC;CACF"}
|
||||
265
node_modules/stripe/esm/resources/Climate/Orders.d.ts
generated
vendored
Normal file
265
node_modules/stripe/esm/resources/Climate/Orders.d.ts
generated
vendored
Normal file
@@ -0,0 +1,265 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Product } from './Products.js';
|
||||
import { Supplier } from './Suppliers.js';
|
||||
import { MetadataParam, Decimal, Emptyable, PaginationParams, Metadata } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class OrderResource extends StripeResource {
|
||||
/**
|
||||
* Lists all Climate order objects. The orders are returned sorted by creation date, with the
|
||||
* most recently created orders appearing first.
|
||||
*/
|
||||
list(params?: Climate.OrderListParams, options?: RequestOptions): ApiListPromise<Order>;
|
||||
/**
|
||||
* Creates a Climate order object for a given Climate product. The order will be processed immediately
|
||||
* after creation and payment will be deducted your Stripe balance.
|
||||
*/
|
||||
create(params: Climate.OrderCreateParams, options?: RequestOptions): Promise<Response<Order>>;
|
||||
/**
|
||||
* Retrieves the details of a Climate order object with the given ID.
|
||||
*/
|
||||
retrieve(id: string, params?: Climate.OrderRetrieveParams, options?: RequestOptions): Promise<Response<Order>>;
|
||||
/**
|
||||
* Updates the specified order by setting the values of the parameters passed.
|
||||
*/
|
||||
update(id: string, params?: Climate.OrderUpdateParams, options?: RequestOptions): Promise<Response<Order>>;
|
||||
/**
|
||||
* Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
|
||||
* reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
|
||||
* might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
|
||||
* provides 90 days advance notice and refunds the amount_total.
|
||||
*/
|
||||
cancel(id: string, params?: Climate.OrderCancelParams, options?: RequestOptions): Promise<Response<Order>>;
|
||||
}
|
||||
export interface Order {
|
||||
/**
|
||||
* Unique identifier for the object.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'climate.order';
|
||||
/**
|
||||
* Total amount of [Frontier](https://frontierclimate.com/)'s service fees in the currency's smallest unit.
|
||||
*/
|
||||
amount_fees: number;
|
||||
/**
|
||||
* Total amount of the carbon removal in the currency's smallest unit.
|
||||
*/
|
||||
amount_subtotal: number;
|
||||
/**
|
||||
* Total amount of the order including fees in the currency's smallest unit.
|
||||
*/
|
||||
amount_total: number;
|
||||
beneficiary?: Climate.Order.Beneficiary;
|
||||
/**
|
||||
* Time at which the order was canceled. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
canceled_at: number | null;
|
||||
/**
|
||||
* Reason for the cancellation of this order.
|
||||
*/
|
||||
cancellation_reason: Climate.Order.CancellationReason | null;
|
||||
/**
|
||||
* For delivered orders, a URL to a delivery certificate for the order.
|
||||
*/
|
||||
certificate: string | null;
|
||||
/**
|
||||
* Time at which the order was confirmed. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
confirmed_at: number | null;
|
||||
/**
|
||||
* 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, representing the currency for this order.
|
||||
*/
|
||||
currency: string;
|
||||
/**
|
||||
* Time at which the order's expected_delivery_year was delayed. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
delayed_at: number | null;
|
||||
/**
|
||||
* Time at which the order was delivered. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
delivered_at: number | null;
|
||||
/**
|
||||
* Details about the delivery of carbon removal for this order.
|
||||
*/
|
||||
delivery_details: Array<Climate.Order.DeliveryDetail>;
|
||||
/**
|
||||
* The year this order is expected to be delivered.
|
||||
*/
|
||||
expected_delivery_year: number;
|
||||
/**
|
||||
* 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://docs.stripe.com/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: Metadata;
|
||||
/**
|
||||
* Quantity of carbon removal that is included in this order.
|
||||
*/
|
||||
metric_tons: Decimal;
|
||||
/**
|
||||
* Unique ID for the Climate `Product` this order is purchasing.
|
||||
*/
|
||||
product: string | Product;
|
||||
/**
|
||||
* Time at which the order's product was substituted for a different product. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
product_substituted_at: number | null;
|
||||
/**
|
||||
* The current status of this order.
|
||||
*/
|
||||
status: Climate.Order.Status;
|
||||
}
|
||||
export declare namespace Climate {
|
||||
namespace Order {
|
||||
interface Beneficiary {
|
||||
/**
|
||||
* Publicly displayable name for the end beneficiary of carbon removal.
|
||||
*/
|
||||
public_name: string;
|
||||
}
|
||||
type CancellationReason = 'expired' | 'product_unavailable' | 'requested';
|
||||
interface DeliveryDetail {
|
||||
/**
|
||||
* Time at which the delivery occurred. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
delivered_at: number;
|
||||
/**
|
||||
* Specific location of this delivery.
|
||||
*/
|
||||
location: DeliveryDetail.Location | null;
|
||||
/**
|
||||
* Quantity of carbon removal supplied by this delivery.
|
||||
*/
|
||||
metric_tons: string;
|
||||
/**
|
||||
* Once retired, a URL to the registry entry for the tons from this delivery.
|
||||
*/
|
||||
registry_url: string | null;
|
||||
/**
|
||||
* A supplier of carbon removal.
|
||||
*/
|
||||
supplier: Supplier;
|
||||
}
|
||||
type Status = 'awaiting_funds' | 'canceled' | 'confirmed' | 'delivered' | 'open';
|
||||
namespace DeliveryDetail {
|
||||
interface Location {
|
||||
/**
|
||||
* The city where the supplier is located.
|
||||
*/
|
||||
city: string | null;
|
||||
/**
|
||||
* Two-letter ISO code representing the country where the supplier is located.
|
||||
*/
|
||||
country: string;
|
||||
/**
|
||||
* The geographic latitude where the supplier is located.
|
||||
*/
|
||||
latitude: number | null;
|
||||
/**
|
||||
* The geographic longitude where the supplier is located.
|
||||
*/
|
||||
longitude: number | null;
|
||||
/**
|
||||
* The state/county/province/region where the supplier is located.
|
||||
*/
|
||||
region: string | null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Climate {
|
||||
interface OrderCreateParams {
|
||||
/**
|
||||
* Unique identifier of the Climate product.
|
||||
*/
|
||||
product: string;
|
||||
/**
|
||||
* Requested amount of carbon removal units. Either this or `metric_tons` must be specified.
|
||||
*/
|
||||
amount?: number;
|
||||
/**
|
||||
* Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
|
||||
*/
|
||||
beneficiary?: OrderCreateParams.Beneficiary;
|
||||
/**
|
||||
* Request currency for the order as a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a supported [settlement currency for your account](https://stripe.com/docs/currencies). If omitted, the account's default currency will be used.
|
||||
*/
|
||||
currency?: string;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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?: MetadataParam;
|
||||
/**
|
||||
* Requested number of tons for the order. Either this or `amount` must be specified.
|
||||
*/
|
||||
metric_tons?: Decimal;
|
||||
}
|
||||
namespace OrderCreateParams {
|
||||
interface Beneficiary {
|
||||
/**
|
||||
* Publicly displayable name for the end beneficiary of carbon removal.
|
||||
*/
|
||||
public_name: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Climate {
|
||||
interface OrderRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Climate {
|
||||
interface OrderUpdateParams {
|
||||
/**
|
||||
* Publicly sharable reference for the end beneficiary of carbon removal. Assumed to be the Stripe account if not set.
|
||||
*/
|
||||
beneficiary?: Emptyable<OrderUpdateParams.Beneficiary>;
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
/**
|
||||
* Set of [key-value pairs](https://docs.stripe.com/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?: MetadataParam;
|
||||
}
|
||||
namespace OrderUpdateParams {
|
||||
interface Beneficiary {
|
||||
/**
|
||||
* Publicly displayable name for the end beneficiary of carbon removal.
|
||||
*/
|
||||
public_name: Emptyable<string>;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Climate {
|
||||
interface OrderListParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Climate {
|
||||
interface OrderCancelParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
78
node_modules/stripe/esm/resources/Climate/Orders.js
generated
vendored
Normal file
78
node_modules/stripe/esm/resources/Climate/Orders.js
generated
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
// File generated from our OpenAPI spec
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
export class OrderResource extends StripeResource {
|
||||
/**
|
||||
* Lists all Climate order objects. The orders are returned sorted by creation date, with the
|
||||
* most recently created orders appearing first.
|
||||
*/
|
||||
list(params, options) {
|
||||
return this._makeRequest('GET', '/v1/climate/orders', params, options, {
|
||||
methodType: 'list',
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: {
|
||||
data: {
|
||||
kind: 'array',
|
||||
element: {
|
||||
kind: 'object',
|
||||
fields: { metric_tons: { kind: 'decimal_string' } },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Creates a Climate order object for a given Climate product. The order will be processed immediately
|
||||
* after creation and payment will be deducted your Stripe balance.
|
||||
*/
|
||||
create(params, options) {
|
||||
return this._makeRequest('POST', '/v1/climate/orders', params, options, {
|
||||
requestSchema: {
|
||||
kind: 'object',
|
||||
fields: { metric_tons: { kind: 'decimal_string' } },
|
||||
},
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: { metric_tons: { kind: 'decimal_string' } },
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Retrieves the details of a Climate order object with the given ID.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/climate/orders/${encodeURIComponent(id)}`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: { metric_tons: { kind: 'decimal_string' } },
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Updates the specified order by setting the values of the parameters passed.
|
||||
*/
|
||||
update(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/climate/orders/${encodeURIComponent(id)}`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: { metric_tons: { kind: 'decimal_string' } },
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
|
||||
* reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier
|
||||
* might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
|
||||
* provides 90 days advance notice and refunds the amount_total.
|
||||
*/
|
||||
cancel(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/climate/orders/${encodeURIComponent(id)}/cancel`, params, options, {
|
||||
responseSchema: {
|
||||
kind: 'object',
|
||||
fields: { metric_tons: { kind: 'decimal_string' } },
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=Orders.js.map
|
||||
1
node_modules/stripe/esm/resources/Climate/Orders.js.map
generated
vendored
Normal file
1
node_modules/stripe/esm/resources/Climate/Orders.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Orders.js","sourceRoot":"","sources":["../../../src/resources/Climate/Orders.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAYvD,MAAM,OAAO,aAAc,SAAQ,cAAc;IAC/C;;;OAGG;IACH,IAAI,CACF,MAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE;YACrE,UAAU,EAAE,MAAM;YAClB,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,OAAO,EAAE;4BACP,IAAI,EAAE,QAAQ;4BACd,MAAM,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC,EAAC;yBAChD;qBACF;iBACF;aACF;SACF,CAAQ,CAAC;IACZ,CAAC;IACD;;;OAGG;IACH,MAAM,CACJ,MAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,OAAO,EAAE;YACtE,aAAa,EAAE;gBACb,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC,EAAC;aAChD;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC,EAAC;aAChD;SACF,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC,EAAC;aAChD;SACF,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC,EAAC;aAChD;SACF,CACK,CAAC;IACX,CAAC;IACD;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,MAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACrD,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,EAAC,WAAW,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC,EAAC;aAChD;SACF,CACK,CAAC;IACX,CAAC;CACF"}
|
||||
90
node_modules/stripe/esm/resources/Climate/Products.d.ts
generated
vendored
Normal file
90
node_modules/stripe/esm/resources/Climate/Products.d.ts
generated
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
import { StripeResource } from '../../StripeResource.js';
|
||||
import { Supplier } from './Suppliers.js';
|
||||
import { PaginationParams, Decimal } from '../../shared.js';
|
||||
import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
|
||||
export declare class ProductResource extends StripeResource {
|
||||
/**
|
||||
* Lists all available Climate product objects.
|
||||
*/
|
||||
list(params?: Climate.ProductListParams, options?: RequestOptions): ApiListPromise<Product>;
|
||||
/**
|
||||
* Retrieves the details of a Climate product with the given ID.
|
||||
*/
|
||||
retrieve(id: string, params?: Climate.ProductRetrieveParams, options?: RequestOptions): Promise<Response<Product>>;
|
||||
}
|
||||
export interface Product {
|
||||
/**
|
||||
* Unique identifier for the object. For convenience, Climate product IDs are human-readable strings
|
||||
* that start with `climsku_`. See [carbon removal inventory](https://stripe.com/docs/climate/orders/carbon-removal-inventory)
|
||||
* for a list of available carbon removal products.
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* String representing the object's type. Objects of the same type share the same value.
|
||||
*/
|
||||
object: 'climate.product';
|
||||
/**
|
||||
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
||||
*/
|
||||
created: number;
|
||||
/**
|
||||
* Current prices for a metric ton of carbon removal in a currency's smallest unit.
|
||||
*/
|
||||
current_prices_per_metric_ton: {
|
||||
[key: string]: Climate.Product.CurrentPricesPerMetricTon;
|
||||
};
|
||||
/**
|
||||
* The year in which the carbon removal is expected to be delivered.
|
||||
*/
|
||||
delivery_year: number | 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;
|
||||
/**
|
||||
* The quantity of metric tons available for reservation.
|
||||
*/
|
||||
metric_tons_available: Decimal;
|
||||
/**
|
||||
* The Climate product's name.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The carbon removal suppliers that fulfill orders for this Climate product.
|
||||
*/
|
||||
suppliers: Array<Supplier>;
|
||||
}
|
||||
export declare namespace Climate {
|
||||
namespace Product {
|
||||
interface CurrentPricesPerMetricTon {
|
||||
/**
|
||||
* Fees for one metric ton of carbon removal in the currency's smallest unit.
|
||||
*/
|
||||
amount_fees: number;
|
||||
/**
|
||||
* Subtotal for one metric ton of carbon removal (excluding fees) in the currency's smallest unit.
|
||||
*/
|
||||
amount_subtotal: number;
|
||||
/**
|
||||
* Total for one metric ton of carbon removal (including fees) in the currency's smallest unit.
|
||||
*/
|
||||
amount_total: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
export declare namespace Climate {
|
||||
interface ProductRetrieveParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
export declare namespace Climate {
|
||||
interface ProductListParams extends PaginationParams {
|
||||
/**
|
||||
* Specifies which fields in the response should be expanded.
|
||||
*/
|
||||
expand?: Array<string>;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user