From 5483b12b65e977be13b5ce8728c94865c2d9e35d Mon Sep 17 00:00:00 2001 From: Michael Nahkies Date: Sun, 8 Dec 2024 12:46:31 +0000 Subject: [PATCH] fix: support exactOptionalPropertyTypes on client SDKs (#278) previously we were always treating it as `false`, rather than using the value we read from the `tsconfig.json` file. this was intentional at the time in #131 > - For `typescript-koa` include `| undefined` on optional properties when `exactOptionalPropertyTypes` is configured > - This shouldn't be required for the clients, as in this case the consumer can choose to omit keys > - Though maybe it's more ergonomic to follow this behavior anyway? However it turns out this can cause issues with the `zod` schemas when runtime validation is enabled, and so it's better to follow this `| undefined` pattern on the clients as well. It's probably more ergonomic as well tbh. --- e2e/src/generated/client/axios/models.ts | 22 +- e2e/src/generated/client/fetch/models.ts | 22 +- .../generated/api.github.com.yaml/client.ts | 1920 +- .../generated/api.github.com.yaml/models.ts | 5204 +- .../client.ts | 42 +- .../models.ts | 24 +- .../azure-resource-manager.tsp/models.ts | 68 +- .../src/generated/okta.idp.yaml/client.ts | 34 +- .../src/generated/okta.idp.yaml/models.ts | 458 +- .../src/generated/okta.oauth.yaml/models.ts | 305 +- .../petstore-expanded.yaml/models.ts | 2 +- .../src/generated/stripe.yaml/client.ts | 49603 +++++++++------- .../src/generated/stripe.yaml/models.ts | 13917 +++-- .../src/generated/todo-lists.yaml/client.ts | 6 +- .../src/generated/todo-lists.yaml/models.ts | 4 +- .../typescript-axios/tsconfig.json | 2 + .../typescript-fetch/tsconfig.json | 2 + .../typescript-koa/tsconfig.json | 1 + .../typescript-axios.generator.ts | 5 +- .../typescript-fetch.generator.ts | 5 +- 20 files changed, 39792 insertions(+), 31854 deletions(-) diff --git a/e2e/src/generated/client/axios/models.ts b/e2e/src/generated/client/axios/models.ts index 21750bfe..7700cedd 100644 --- a/e2e/src/generated/client/axios/models.ts +++ b/e2e/src/generated/client/axios/models.ts @@ -3,20 +3,22 @@ /* eslint-disable */ export type t_RandomNumber = { - params?: { - forbidden?: number[] - max?: number - min?: number - } - result?: number + params?: + | { + forbidden?: number[] | undefined + max?: number | undefined + min?: number | undefined + } + | undefined + result?: number | undefined } export type t_getHeadersRequestJson200Response = { - rawHeaders?: unknown - typedHeaders?: unknown + rawHeaders?: unknown | undefined + typedHeaders?: unknown | undefined } export type t_getHeadersUndeclaredJson200Response = { - rawHeaders?: unknown - typedHeaders?: unknown + rawHeaders?: unknown | undefined + typedHeaders?: unknown | undefined } diff --git a/e2e/src/generated/client/fetch/models.ts b/e2e/src/generated/client/fetch/models.ts index 21750bfe..7700cedd 100644 --- a/e2e/src/generated/client/fetch/models.ts +++ b/e2e/src/generated/client/fetch/models.ts @@ -3,20 +3,22 @@ /* eslint-disable */ export type t_RandomNumber = { - params?: { - forbidden?: number[] - max?: number - min?: number - } - result?: number + params?: + | { + forbidden?: number[] | undefined + max?: number | undefined + min?: number | undefined + } + | undefined + result?: number | undefined } export type t_getHeadersRequestJson200Response = { - rawHeaders?: unknown - typedHeaders?: unknown + rawHeaders?: unknown | undefined + typedHeaders?: unknown | undefined } export type t_getHeadersUndeclaredJson200Response = { - rawHeaders?: unknown - typedHeaders?: unknown + rawHeaders?: unknown | undefined + typedHeaders?: unknown | undefined } diff --git a/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts b/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts index 948c8b8e..b4b40e92 100644 --- a/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/api.github.com.yaml/client.ts @@ -526,10 +526,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async appsUpdateWebhookConfigForApp( p: { requestBody: { - content_type?: t_webhook_config_content_type - insecure_ssl?: t_webhook_config_insecure_ssl - secret?: t_webhook_config_secret - url?: t_webhook_config_url + content_type?: t_webhook_config_content_type | undefined + insecure_ssl?: t_webhook_config_insecure_ssl | undefined + secret?: t_webhook_config_secret | undefined + url?: t_webhook_config_url | undefined } }, timeout?: number, @@ -706,9 +706,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { installationId: number requestBody?: { - permissions?: t_app_permissions - repositories?: string[] - repository_ids?: number[] + permissions?: t_app_permissions | undefined + repositories?: string[] | undefined + repository_ids?: number[] | undefined } }, timeout?: number, @@ -882,11 +882,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { clientId: string requestBody: { access_token: string - permissions?: t_app_permissions - repositories?: string[] - repository_ids?: number[] - target?: string - target_id?: number + permissions?: t_app_permissions | undefined + repositories?: string[] | undefined + repository_ids?: number[] | undefined + target?: string | undefined + target_id?: number | undefined } }, timeout?: number, @@ -1115,8 +1115,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - seats?: t_copilot_seat_details[] - total_seats?: number + seats?: t_copilot_seat_details[] | undefined + total_seats?: number | undefined }> > { const url = `/enterprises/${p["enterprise"]}/copilot/billing/seats` @@ -1404,7 +1404,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async gistsCreate( p: { requestBody: { - description?: string + description?: string | undefined files: { [key: string]: | { @@ -1412,7 +1412,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { } | undefined } - public?: boolean | "true" | "false" + public?: (boolean | "true" | "false") | undefined } }, timeout?: number, @@ -1510,15 +1510,17 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { gistId: string requestBody: { - description?: string - files?: { - [key: string]: - | ({ - content?: string - filename?: string | null - } | null) - | undefined - } + description?: string | undefined + files?: + | { + [key: string]: + | ({ + content?: string | undefined + filename?: (string | null) | undefined + } | null) + | undefined + } + | undefined } | null }, timeout?: number, @@ -1862,7 +1864,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise< AxiosResponse<{ repositories: t_repository[] - repository_selection?: string + repository_selection?: string | undefined total_count: number }> > { @@ -1993,8 +1995,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async markdownRender( p: { requestBody: { - context?: string - mode?: "markdown" | "gfm" + context?: string | undefined + mode?: ("markdown" | "gfm") | undefined text: string } }, @@ -2254,15 +2256,15 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async activityMarkNotificationsAsRead( p: { requestBody?: { - last_read_at?: string - read?: boolean + last_read_at?: string | undefined + read?: boolean | undefined } } = {}, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< | AxiosResponse<{ - message?: string + message?: string | undefined }> | AxiosResponse > { @@ -2363,7 +2365,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { threadId: number requestBody?: { - ignored?: boolean + ignored?: boolean | undefined } }, timeout?: number, @@ -2498,36 +2500,46 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody?: { - advanced_security_enabled_for_new_repositories?: boolean - billing_email?: string - blog?: string - company?: string - default_repository_permission?: "read" | "write" | "admin" | "none" - dependabot_alerts_enabled_for_new_repositories?: boolean - dependabot_security_updates_enabled_for_new_repositories?: boolean - dependency_graph_enabled_for_new_repositories?: boolean - deploy_keys_enabled_for_repositories?: boolean - description?: string - email?: string - has_organization_projects?: boolean - has_repository_projects?: boolean - location?: string - members_allowed_repository_creation_type?: "all" | "private" | "none" - members_can_create_internal_repositories?: boolean - members_can_create_pages?: boolean - members_can_create_private_pages?: boolean - members_can_create_private_repositories?: boolean - members_can_create_public_pages?: boolean - members_can_create_public_repositories?: boolean - members_can_create_repositories?: boolean - members_can_fork_private_repositories?: boolean - name?: string - secret_scanning_enabled_for_new_repositories?: boolean - secret_scanning_push_protection_custom_link?: string - secret_scanning_push_protection_custom_link_enabled?: boolean - secret_scanning_push_protection_enabled_for_new_repositories?: boolean - twitter_username?: string - web_commit_signoff_required?: boolean + advanced_security_enabled_for_new_repositories?: boolean | undefined + billing_email?: string | undefined + blog?: string | undefined + company?: string | undefined + default_repository_permission?: + | ("read" | "write" | "admin" | "none") + | undefined + dependabot_alerts_enabled_for_new_repositories?: boolean | undefined + dependabot_security_updates_enabled_for_new_repositories?: + | boolean + | undefined + dependency_graph_enabled_for_new_repositories?: boolean | undefined + deploy_keys_enabled_for_repositories?: boolean | undefined + description?: string | undefined + email?: string | undefined + has_organization_projects?: boolean | undefined + has_repository_projects?: boolean | undefined + location?: string | undefined + members_allowed_repository_creation_type?: + | ("all" | "private" | "none") + | undefined + members_can_create_internal_repositories?: boolean | undefined + members_can_create_pages?: boolean | undefined + members_can_create_private_pages?: boolean | undefined + members_can_create_private_repositories?: boolean | undefined + members_can_create_public_pages?: boolean | undefined + members_can_create_public_repositories?: boolean | undefined + members_can_create_repositories?: boolean | undefined + members_can_fork_private_repositories?: boolean | undefined + name?: string | undefined + secret_scanning_enabled_for_new_repositories?: boolean | undefined + secret_scanning_push_protection_custom_link?: string | undefined + secret_scanning_push_protection_custom_link_enabled?: + | boolean + | undefined + secret_scanning_push_protection_enabled_for_new_repositories?: + | boolean + | undefined + twitter_username?: string | undefined + web_commit_signoff_required?: boolean | undefined } }, timeout?: number, @@ -2686,7 +2698,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - allowed_actions?: t_allowed_actions + allowed_actions?: t_allowed_actions | undefined enabled_repositories: t_enabled_repositories } }, @@ -2928,13 +2940,13 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - allows_public_repositories?: boolean + allows_public_repositories?: boolean | undefined name: string - restricted_to_workflows?: boolean - runners?: number[] - selected_repository_ids?: number[] - selected_workflows?: string[] - visibility?: "selected" | "all" | "private" + restricted_to_workflows?: boolean | undefined + runners?: number[] | undefined + selected_repository_ids?: number[] | undefined + selected_workflows?: string[] | undefined + visibility?: ("selected" | "all" | "private") | undefined } }, timeout?: number, @@ -2982,11 +2994,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string runnerGroupId: number requestBody: { - allows_public_repositories?: boolean + allows_public_repositories?: boolean | undefined name: string - restricted_to_workflows?: boolean - selected_workflows?: string[] - visibility?: "selected" | "all" | "private" + restricted_to_workflows?: boolean | undefined + selected_workflows?: string[] | undefined + visibility?: ("selected" | "all" | "private") | undefined } }, timeout?: number, @@ -3283,7 +3295,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { labels: string[] name: string runner_group_id: number - work_folder?: string + work_folder?: string | undefined } }, timeout?: number, @@ -3602,9 +3614,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string secretName: string requestBody: { - encrypted_value?: string - key_id?: string - selected_repository_ids?: number[] + encrypted_value?: string | undefined + key_id?: string | undefined + selected_repository_ids?: number[] | undefined visibility: "all" | "private" | "selected" } }, @@ -3778,7 +3790,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string requestBody: { name: string - selected_repository_ids?: number[] + selected_repository_ids?: number[] | undefined value: string visibility: "all" | "private" | "selected" } @@ -3828,10 +3840,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string name: string requestBody: { - name?: string - selected_repository_ids?: number[] - value?: string - visibility?: "all" | "private" | "selected" + name?: string | undefined + selected_repository_ids?: number[] | undefined + value?: string | undefined + visibility?: ("all" | "private" | "selected") | undefined } }, timeout?: number, @@ -3984,18 +3996,26 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - attestations?: { - bundle?: { - dsseEnvelope?: { - [key: string]: unknown | undefined - } - mediaType?: string - verificationMaterial?: { - [key: string]: unknown | undefined - } - } - repository_id?: number - }[] + attestations?: + | { + bundle?: + | { + dsseEnvelope?: + | { + [key: string]: unknown | undefined + } + | undefined + mediaType?: string | undefined + verificationMaterial?: + | { + [key: string]: unknown | undefined + } + | undefined + } + | undefined + repository_id?: number | undefined + }[] + | undefined }> > { const url = `/orgs/${p["org"]}/attestations/${p["subjectDigest"]}` @@ -4171,34 +4191,55 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - advanced_security?: "enabled" | "disabled" - code_scanning_default_setup?: "enabled" | "disabled" | "not_set" - code_scanning_default_setup_options?: t_code_scanning_default_setup_options - dependabot_alerts?: "enabled" | "disabled" | "not_set" - dependabot_security_updates?: "enabled" | "disabled" | "not_set" - dependency_graph?: "enabled" | "disabled" | "not_set" - dependency_graph_autosubmit_action?: "enabled" | "disabled" | "not_set" - dependency_graph_autosubmit_action_options?: { - labeled_runners?: boolean - } + advanced_security?: ("enabled" | "disabled") | undefined + code_scanning_default_setup?: + | ("enabled" | "disabled" | "not_set") + | undefined + code_scanning_default_setup_options?: + | t_code_scanning_default_setup_options + | undefined + dependabot_alerts?: ("enabled" | "disabled" | "not_set") | undefined + dependabot_security_updates?: + | ("enabled" | "disabled" | "not_set") + | undefined + dependency_graph?: ("enabled" | "disabled" | "not_set") | undefined + dependency_graph_autosubmit_action?: + | ("enabled" | "disabled" | "not_set") + | undefined + dependency_graph_autosubmit_action_options?: + | { + labeled_runners?: boolean | undefined + } + | undefined description: string - enforcement?: "enforced" | "unenforced" + enforcement?: ("enforced" | "unenforced") | undefined name: string - private_vulnerability_reporting?: "enabled" | "disabled" | "not_set" - secret_scanning?: "enabled" | "disabled" | "not_set" - secret_scanning_delegated_bypass?: "enabled" | "disabled" | "not_set" - secret_scanning_delegated_bypass_options?: { - reviewers?: { - reviewer_id: number - reviewer_type: "TEAM" | "ROLE" - }[] - } + private_vulnerability_reporting?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning?: ("enabled" | "disabled" | "not_set") | undefined + secret_scanning_delegated_bypass?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_delegated_bypass_options?: + | { + reviewers?: + | { + reviewer_id: number + reviewer_type: "TEAM" | "ROLE" + }[] + | undefined + } + | undefined secret_scanning_non_provider_patterns?: - | "enabled" - | "disabled" - | "not_set" - secret_scanning_push_protection?: "enabled" | "disabled" | "not_set" - secret_scanning_validity_checks?: "enabled" | "disabled" | "not_set" + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_push_protection?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_validity_checks?: + | ("enabled" | "disabled" | "not_set") + | undefined } }, timeout?: number, @@ -4244,7 +4285,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - selected_repository_ids?: number[] + selected_repository_ids?: number[] | undefined } }, timeout?: number, @@ -4292,34 +4333,55 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string configurationId: number requestBody: { - advanced_security?: "enabled" | "disabled" - code_scanning_default_setup?: "enabled" | "disabled" | "not_set" - code_scanning_default_setup_options?: t_code_scanning_default_setup_options - dependabot_alerts?: "enabled" | "disabled" | "not_set" - dependabot_security_updates?: "enabled" | "disabled" | "not_set" - dependency_graph?: "enabled" | "disabled" | "not_set" - dependency_graph_autosubmit_action?: "enabled" | "disabled" | "not_set" - dependency_graph_autosubmit_action_options?: { - labeled_runners?: boolean - } - description?: string - enforcement?: "enforced" | "unenforced" - name?: string - private_vulnerability_reporting?: "enabled" | "disabled" | "not_set" - secret_scanning?: "enabled" | "disabled" | "not_set" - secret_scanning_delegated_bypass?: "enabled" | "disabled" | "not_set" - secret_scanning_delegated_bypass_options?: { - reviewers?: { - reviewer_id: number - reviewer_type: "TEAM" | "ROLE" - }[] - } + advanced_security?: ("enabled" | "disabled") | undefined + code_scanning_default_setup?: + | ("enabled" | "disabled" | "not_set") + | undefined + code_scanning_default_setup_options?: + | t_code_scanning_default_setup_options + | undefined + dependabot_alerts?: ("enabled" | "disabled" | "not_set") | undefined + dependabot_security_updates?: + | ("enabled" | "disabled" | "not_set") + | undefined + dependency_graph?: ("enabled" | "disabled" | "not_set") | undefined + dependency_graph_autosubmit_action?: + | ("enabled" | "disabled" | "not_set") + | undefined + dependency_graph_autosubmit_action_options?: + | { + labeled_runners?: boolean | undefined + } + | undefined + description?: string | undefined + enforcement?: ("enforced" | "unenforced") | undefined + name?: string | undefined + private_vulnerability_reporting?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning?: ("enabled" | "disabled" | "not_set") | undefined + secret_scanning_delegated_bypass?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_delegated_bypass_options?: + | { + reviewers?: + | { + reviewer_id: number + reviewer_type: "TEAM" | "ROLE" + }[] + | undefined + } + | undefined secret_scanning_non_provider_patterns?: - | "enabled" - | "disabled" - | "not_set" - secret_scanning_push_protection?: "enabled" | "disabled" | "not_set" - secret_scanning_validity_checks?: "enabled" | "disabled" | "not_set" + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_push_protection?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_validity_checks?: + | ("enabled" | "disabled" | "not_set") + | undefined } }, timeout?: number, @@ -4375,7 +4437,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { | "public" | "private_or_internal" | "selected" - selected_repository_ids?: number[] + selected_repository_ids?: number[] | undefined } }, timeout?: number, @@ -4408,18 +4470,18 @@ export class GitHubV3RestApi extends AbstractAxiosClient { configurationId: number requestBody: { default_for_new_repos?: - | "all" - | "none" - | "private_and_internal" - | "public" + | ("all" | "none" | "private_and_internal" | "public") + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - configuration?: t_code_security_configuration - default_for_new_repos?: "all" | "none" | "private_and_internal" | "public" + configuration?: t_code_security_configuration | undefined + default_for_new_repos?: + | ("all" | "none" | "private_and_internal" | "public") + | undefined }> > { const url = `/orgs/${p["org"]}/code-security/configurations/${p["configurationId"]}/defaults` @@ -4500,7 +4562,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - selected_usernames?: string[] + selected_usernames?: string[] | undefined visibility: | "disabled" | "selected_members" @@ -4653,9 +4715,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string secretName: string requestBody: { - encrypted_value?: string - key_id?: string - selected_repository_ids?: number[] + encrypted_value?: string | undefined + key_id?: string | undefined + selected_repository_ids?: number[] | undefined visibility: "all" | "private" | "selected" } }, @@ -4826,8 +4888,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - seats?: t_copilot_seat_details[] - total_seats?: number + seats?: t_copilot_seat_details[] | undefined + total_seats?: number | undefined }> > { const url = `/orgs/${p["org"]}/copilot/billing/seats` @@ -5141,9 +5203,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string secretName: string requestBody: { - encrypted_value?: string - key_id?: string - selected_repository_ids?: string[] + encrypted_value?: string | undefined + key_id?: string | undefined + selected_repository_ids?: string[] | undefined visibility: "all" | "private" | "selected" } }, @@ -5374,16 +5436,16 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - active?: boolean + active?: boolean | undefined config: { - content_type?: t_webhook_config_content_type - insecure_ssl?: t_webhook_config_insecure_ssl - password?: string - secret?: t_webhook_config_secret + content_type?: t_webhook_config_content_type | undefined + insecure_ssl?: t_webhook_config_insecure_ssl | undefined + password?: string | undefined + secret?: t_webhook_config_secret | undefined url: t_webhook_config_url - username?: string + username?: string | undefined } - events?: string[] + events?: string[] | undefined name: string } }, @@ -5432,15 +5494,17 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string hookId: number requestBody?: { - active?: boolean - config?: { - content_type?: t_webhook_config_content_type - insecure_ssl?: t_webhook_config_insecure_ssl - secret?: t_webhook_config_secret - url: t_webhook_config_url - } - events?: string[] - name?: string + active?: boolean | undefined + config?: + | { + content_type?: t_webhook_config_content_type | undefined + insecure_ssl?: t_webhook_config_insecure_ssl | undefined + secret?: t_webhook_config_secret | undefined + url: t_webhook_config_url + } + | undefined + events?: string[] | undefined + name?: string | undefined } }, timeout?: number, @@ -5508,10 +5572,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string hookId: number requestBody?: { - content_type?: t_webhook_config_content_type - insecure_ssl?: t_webhook_config_insecure_ssl - secret?: t_webhook_config_secret - url?: t_webhook_config_url + content_type?: t_webhook_config_content_type | undefined + insecure_ssl?: t_webhook_config_insecure_ssl | undefined + secret?: t_webhook_config_secret | undefined + url?: t_webhook_config_url | undefined } }, timeout?: number, @@ -6074,10 +6138,12 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody?: { - email?: string - invitee_id?: number - role?: "admin" | "direct_member" | "billing_manager" | "reinstate" - team_ids?: number[] + email?: string | undefined + invitee_id?: number | undefined + role?: + | ("admin" | "direct_member" | "billing_manager" | "reinstate") + | undefined + team_ids?: number[] | undefined } }, timeout?: number, @@ -6374,7 +6440,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string username: string requestBody?: { - role?: "admin" | "member" + role?: ("admin" | "member") | undefined } }, timeout?: number, @@ -6448,14 +6514,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - exclude?: "repositories"[] - exclude_attachments?: boolean - exclude_git_data?: boolean - exclude_metadata?: boolean - exclude_owner_projects?: boolean - exclude_releases?: boolean - lock_repositories?: boolean - org_metadata_only?: boolean + exclude?: "repositories"[] | undefined + exclude_attachments?: boolean | undefined + exclude_git_data?: boolean | undefined + exclude_metadata?: boolean | undefined + exclude_owner_projects?: boolean | undefined + exclude_releases?: boolean | undefined + lock_repositories?: boolean | undefined + org_metadata_only?: boolean | undefined repositories: string[] } }, @@ -6593,8 +6659,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - roles?: t_organization_role[] - total_count?: number + roles?: t_organization_role[] | undefined + total_count?: number | undefined }> > { const url = `/orgs/${p["org"]}/organization-roles` @@ -6831,7 +6897,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string username: string requestBody?: { - async?: boolean + async?: boolean | undefined } }, timeout?: number, @@ -7157,8 +7223,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string requestBody: { action: "approve" | "deny" - pat_request_ids?: number[] - reason?: string | null + pat_request_ids?: number[] | undefined + reason?: (string | null) | undefined } }, timeout?: number, @@ -7191,7 +7257,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { patRequestId: number requestBody: { action: "approve" | "deny" - reason?: string | null + reason?: (string | null) | undefined } }, timeout?: number, @@ -7390,7 +7456,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - body?: string + body?: string | undefined name: string } }, @@ -7485,10 +7551,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string customPropertyName: string requestBody: { - allowed_values?: string[] | null - default_value?: string | string[] | null - description?: string | null - required?: boolean + allowed_values?: (string[] | null) | undefined + default_value?: (string | string[] | null) | undefined + description?: (string | null) | undefined + required?: boolean | undefined value_type: "string" | "single_select" | "multi_select" | "true_false" } }, @@ -7704,33 +7770,39 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - allow_auto_merge?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean - auto_init?: boolean - custom_properties?: { - [key: string]: unknown | undefined - } - delete_branch_on_merge?: boolean - description?: string - gitignore_template?: string - has_downloads?: boolean - has_issues?: boolean - has_projects?: boolean - has_wiki?: boolean - homepage?: string - is_template?: boolean - license_template?: string - merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK" - merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" + allow_auto_merge?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined + auto_init?: boolean | undefined + custom_properties?: + | { + [key: string]: unknown | undefined + } + | undefined + delete_branch_on_merge?: boolean | undefined + description?: string | undefined + gitignore_template?: string | undefined + has_downloads?: boolean | undefined + has_issues?: boolean | undefined + has_projects?: boolean | undefined + has_wiki?: boolean | undefined + homepage?: string | undefined + is_template?: boolean | undefined + license_template?: string | undefined + merge_commit_message?: ("PR_BODY" | "PR_TITLE" | "BLANK") | undefined + merge_commit_title?: ("PR_TITLE" | "MERGE_MESSAGE") | undefined name: string - private?: boolean - squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" - squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" - team_id?: number - use_squash_pr_title_as_default?: boolean - visibility?: "public" | "private" + private?: boolean | undefined + squash_merge_commit_message?: + | ("PR_BODY" | "COMMIT_MESSAGES" | "BLANK") + | undefined + squash_merge_commit_title?: + | ("PR_TITLE" | "COMMIT_OR_PR_TITLE") + | undefined + team_id?: number | undefined + use_squash_pr_title_as_default?: boolean | undefined + visibility?: ("public" | "private") | undefined } }, timeout?: number, @@ -7784,12 +7856,12 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - bypass_actors?: t_repository_ruleset_bypass_actor[] - conditions?: t_org_ruleset_conditions + bypass_actors?: t_repository_ruleset_bypass_actor[] | undefined + conditions?: t_org_ruleset_conditions | undefined enforcement: t_repository_rule_enforcement name: string - rules?: t_repository_rule[] - target?: "branch" | "tag" | "push" + rules?: t_repository_rule[] | undefined + target?: ("branch" | "tag" | "push") | undefined } }, timeout?: number, @@ -7892,12 +7964,12 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string rulesetId: number requestBody?: { - bypass_actors?: t_repository_ruleset_bypass_actor[] - conditions?: t_org_ruleset_conditions - enforcement?: t_repository_rule_enforcement - name?: string - rules?: t_repository_rule[] - target?: "branch" | "tag" | "push" + bypass_actors?: t_repository_ruleset_bypass_actor[] | undefined + conditions?: t_org_ruleset_conditions | undefined + enforcement?: t_repository_rule_enforcement | undefined + name?: string | undefined + rules?: t_repository_rule[] | undefined + target?: ("branch" | "tag" | "push") | undefined } }, timeout?: number, @@ -8220,16 +8292,16 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { org: string requestBody: { - description?: string - maintainers?: string[] + description?: string | undefined + maintainers?: string[] | undefined name: string notification_setting?: - | "notifications_enabled" - | "notifications_disabled" - parent_team_id?: number - permission?: "pull" | "push" - privacy?: "secret" | "closed" - repo_names?: string[] + | ("notifications_enabled" | "notifications_disabled") + | undefined + parent_team_id?: number | undefined + permission?: ("pull" | "push") | undefined + privacy?: ("secret" | "closed") | undefined + repo_names?: string[] | undefined } }, timeout?: number, @@ -8277,14 +8349,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { org: string teamSlug: string requestBody?: { - description?: string - name?: string + description?: string | undefined + name?: string | undefined notification_setting?: - | "notifications_enabled" - | "notifications_disabled" - parent_team_id?: number | null - permission?: "pull" | "push" | "admin" - privacy?: "secret" | "closed" + | ("notifications_enabled" | "notifications_disabled") + | undefined + parent_team_id?: (number | null) | undefined + permission?: ("pull" | "push" | "admin") | undefined + privacy?: ("secret" | "closed") | undefined } }, timeout?: number, @@ -8363,7 +8435,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamSlug: string requestBody: { body: string - private?: boolean + private?: boolean | undefined title: string } }, @@ -8414,8 +8486,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamSlug: string discussionNumber: number requestBody?: { - body?: string - title?: string + body?: string | undefined + title?: string | undefined } }, timeout?: number, @@ -8864,7 +8936,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamSlug: string username: string requestBody?: { - role?: "member" | "maintainer" + role?: ("member" | "maintainer") | undefined } }, timeout?: number, @@ -8958,7 +9030,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamSlug: string projectId: number requestBody?: { - permission?: "read" | "write" | "admin" + permission?: ("read" | "write" | "admin") | undefined } | null }, timeout?: number, @@ -9054,7 +9126,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - permission?: string + permission?: string | undefined } }, timeout?: number, @@ -9135,7 +9207,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { | "secret_scanning_push_protection" enablement: "enable_all" | "disable_all" requestBody?: { - query_suite?: "default" | "extended" + query_suite?: ("default" | "extended") | undefined } }, timeout?: number, @@ -9181,8 +9253,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { cardId: number requestBody?: { - archived?: boolean - note?: string | null + archived?: boolean | undefined + note?: (string | null) | undefined } }, timeout?: number, @@ -9228,7 +9300,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { cardId: number requestBody: { - column_id?: number + column_id?: number | undefined position: string } }, @@ -9426,11 +9498,13 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { projectId: number requestBody?: { - body?: string | null - name?: string - organization_permission?: "read" | "write" | "admin" | "none" - private?: boolean - state?: string + body?: (string | null) | undefined + name?: string | undefined + organization_permission?: + | ("read" | "write" | "admin" | "none") + | undefined + private?: boolean | undefined + state?: string | undefined } }, timeout?: number, @@ -9504,7 +9578,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { projectId: number username: string requestBody?: { - permission?: "read" | "write" | "admin" + permission?: ("read" | "write" | "admin") | undefined } | null }, timeout?: number, @@ -9657,47 +9731,63 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - allow_auto_merge?: boolean - allow_forking?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean - allow_update_branch?: boolean - archived?: boolean - default_branch?: string - delete_branch_on_merge?: boolean - description?: string - has_issues?: boolean - has_projects?: boolean - has_wiki?: boolean - homepage?: string - is_template?: boolean - merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK" - merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" - name?: string - private?: boolean - security_and_analysis?: { - advanced_security?: { - status?: string - } - secret_scanning?: { - status?: string - } - secret_scanning_ai_detection?: { - status?: string - } - secret_scanning_non_provider_patterns?: { - status?: string - } - secret_scanning_push_protection?: { - status?: string - } - } | null - squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" - squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" - use_squash_pr_title_as_default?: boolean - visibility?: "public" | "private" - web_commit_signoff_required?: boolean + allow_auto_merge?: boolean | undefined + allow_forking?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined + allow_update_branch?: boolean | undefined + archived?: boolean | undefined + default_branch?: string | undefined + delete_branch_on_merge?: boolean | undefined + description?: string | undefined + has_issues?: boolean | undefined + has_projects?: boolean | undefined + has_wiki?: boolean | undefined + homepage?: string | undefined + is_template?: boolean | undefined + merge_commit_message?: ("PR_BODY" | "PR_TITLE" | "BLANK") | undefined + merge_commit_title?: ("PR_TITLE" | "MERGE_MESSAGE") | undefined + name?: string | undefined + private?: boolean | undefined + security_and_analysis?: + | ({ + advanced_security?: + | { + status?: string | undefined + } + | undefined + secret_scanning?: + | { + status?: string | undefined + } + | undefined + secret_scanning_ai_detection?: + | { + status?: string | undefined + } + | undefined + secret_scanning_non_provider_patterns?: + | { + status?: string | undefined + } + | undefined + secret_scanning_push_protection?: + | { + status?: string | undefined + } + | undefined + } | null) + | undefined + squash_merge_commit_message?: + | ("PR_BODY" | "COMMIT_MESSAGES" | "BLANK") + | undefined + squash_merge_commit_title?: + | ("PR_TITLE" | "COMMIT_OR_PR_TITLE") + | undefined + use_squash_pr_title_as_default?: boolean | undefined + visibility?: ("public" | "private") | undefined + web_commit_signoff_required?: boolean | undefined } }, timeout?: number, @@ -9983,7 +10073,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string jobId: number requestBody?: { - enable_debug_logging?: boolean + enable_debug_logging?: boolean | undefined } | null }, timeout?: number, @@ -10031,7 +10121,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - include_claim_keys?: string[] + include_claim_keys?: string[] | undefined use_default: boolean } }, @@ -10136,7 +10226,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - allowed_actions?: t_allowed_actions + allowed_actions?: t_allowed_actions | undefined enabled: t_actions_enabled } }, @@ -10359,7 +10449,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { labels: string[] name: string runner_group_id: number - work_folder?: string + work_folder?: string | undefined } }, timeout?: number, @@ -11082,7 +11172,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string runId: number requestBody?: { - enable_debug_logging?: boolean + enable_debug_logging?: boolean | undefined } | null }, timeout?: number, @@ -11111,7 +11201,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string runId: number requestBody?: { - enable_debug_logging?: boolean + enable_debug_logging?: boolean | undefined } | null }, timeout?: number, @@ -11230,8 +11320,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string secretName: string requestBody: { - encrypted_value?: string - key_id?: string + encrypted_value?: string | undefined + key_id?: string | undefined } }, timeout?: number, @@ -11359,8 +11449,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string name: string requestBody: { - name?: string - value?: string + name?: string | undefined + value?: string | undefined } }, timeout?: number, @@ -11480,9 +11570,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string workflowId: number | string requestBody: { - inputs?: { - [key: string]: unknown | undefined - } + inputs?: + | { + [key: string]: unknown | undefined + } + | undefined ref: string } }, @@ -11704,13 +11796,17 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string requestBody: { bundle: { - dsseEnvelope?: { - [key: string]: unknown | undefined - } - mediaType?: string - verificationMaterial?: { - [key: string]: unknown | undefined - } + dsseEnvelope?: + | { + [key: string]: unknown | undefined + } + | undefined + mediaType?: string | undefined + verificationMaterial?: + | { + [key: string]: unknown | undefined + } + | undefined } } }, @@ -11718,7 +11814,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - id?: number + id?: number | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/attestations` @@ -11751,18 +11847,26 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - attestations?: { - bundle?: { - dsseEnvelope?: { - [key: string]: unknown | undefined - } - mediaType?: string - verificationMaterial?: { - [key: string]: unknown | undefined - } - } - repository_id?: number - }[] + attestations?: + | { + bundle?: + | { + dsseEnvelope?: + | { + [key: string]: unknown | undefined + } + | undefined + mediaType?: string | undefined + verificationMaterial?: + | { + [key: string]: unknown | undefined + } + | undefined + } + | undefined + repository_id?: number | undefined + }[] + | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/attestations/${p["subjectDigest"]}` @@ -11807,7 +11911,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - is_alphanumeric?: boolean + is_alphanumeric?: boolean | undefined key_prefix: string url_template: string } @@ -12010,40 +12114,46 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string branch: string requestBody: { - allow_deletions?: boolean - allow_force_pushes?: boolean | null - allow_fork_syncing?: boolean - block_creations?: boolean + allow_deletions?: boolean | undefined + allow_force_pushes?: (boolean | null) | undefined + allow_fork_syncing?: boolean | undefined + block_creations?: boolean | undefined enforce_admins: boolean | null - lock_branch?: boolean - required_conversation_resolution?: boolean - required_linear_history?: boolean + lock_branch?: boolean | undefined + required_conversation_resolution?: boolean | undefined + required_linear_history?: boolean | undefined required_pull_request_reviews: { - bypass_pull_request_allowances?: { - apps?: string[] - teams?: string[] - users?: string[] - } - dismiss_stale_reviews?: boolean - dismissal_restrictions?: { - apps?: string[] - teams?: string[] - users?: string[] - } - require_code_owner_reviews?: boolean - require_last_push_approval?: boolean - required_approving_review_count?: number + bypass_pull_request_allowances?: + | { + apps?: string[] | undefined + teams?: string[] | undefined + users?: string[] | undefined + } + | undefined + dismiss_stale_reviews?: boolean | undefined + dismissal_restrictions?: + | { + apps?: string[] | undefined + teams?: string[] | undefined + users?: string[] | undefined + } + | undefined + require_code_owner_reviews?: boolean | undefined + require_last_push_approval?: boolean | undefined + required_approving_review_count?: number | undefined } | null required_status_checks: { - checks?: { - app_id?: number - context: string - }[] + checks?: + | { + app_id?: number | undefined + context: string + }[] + | undefined contexts: string[] strict: boolean } | null restrictions: { - apps?: string[] + apps?: string[] | undefined teams: string[] users: string[] } | null @@ -12180,20 +12290,24 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string branch: string requestBody?: { - bypass_pull_request_allowances?: { - apps?: string[] - teams?: string[] - users?: string[] - } - dismiss_stale_reviews?: boolean - dismissal_restrictions?: { - apps?: string[] - teams?: string[] - users?: string[] - } - require_code_owner_reviews?: boolean - require_last_push_approval?: boolean - required_approving_review_count?: number + bypass_pull_request_allowances?: + | { + apps?: string[] | undefined + teams?: string[] | undefined + users?: string[] | undefined + } + | undefined + dismiss_stale_reviews?: boolean | undefined + dismissal_restrictions?: + | { + apps?: string[] | undefined + teams?: string[] | undefined + users?: string[] | undefined + } + | undefined + require_code_owner_reviews?: boolean | undefined + require_last_push_approval?: boolean | undefined + required_approving_review_count?: number | undefined } }, timeout?: number, @@ -12327,12 +12441,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string branch: string requestBody?: { - checks?: { - app_id?: number - context: string - }[] - contexts?: string[] - strict?: boolean + checks?: + | { + app_id?: number | undefined + context: string + }[] + | undefined + contexts?: string[] | undefined + strict?: boolean | undefined } }, timeout?: number, @@ -12901,7 +13017,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { [key: string]: unknown | undefined } | { - status?: EmptyObject + status?: EmptyObject | undefined [key: string]: unknown | undefined } }, @@ -12952,53 +13068,67 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string checkRunId: number requestBody: { - actions?: { - description: string - identifier: string - label: string - }[] - completed_at?: string + actions?: + | { + description: string + identifier: string + label: string + }[] + | undefined + completed_at?: string | undefined conclusion?: - | "action_required" - | "cancelled" - | "failure" - | "neutral" - | "success" - | "skipped" - | "stale" - | "timed_out" - details_url?: string - external_id?: string - name?: string - output?: { - annotations?: { - annotation_level: "notice" | "warning" | "failure" - end_column?: number - end_line: number - message: string - path: string - raw_details?: string - start_column?: number - start_line: number - title?: string - }[] - images?: { - alt: string - caption?: string - image_url: string - }[] - summary: string - text?: string - title?: string - } - started_at?: string + | ( + | "action_required" + | "cancelled" + | "failure" + | "neutral" + | "success" + | "skipped" + | "stale" + | "timed_out" + ) + | undefined + details_url?: string | undefined + external_id?: string | undefined + name?: string | undefined + output?: + | { + annotations?: + | { + annotation_level: "notice" | "warning" | "failure" + end_column?: number | undefined + end_line: number + message: string + path: string + raw_details?: string | undefined + start_column?: number | undefined + start_line: number + title?: string | undefined + }[] + | undefined + images?: + | { + alt: string + caption?: string | undefined + image_url: string + }[] + | undefined + summary: string + text?: string | undefined + title?: string | undefined + } + | undefined + started_at?: string | undefined status?: - | "queued" - | "in_progress" - | "completed" - | "waiting" - | "requested" - | "pending" + | ( + | "queued" + | "in_progress" + | "completed" + | "waiting" + | "requested" + | "pending" + ) + | undefined } }, timeout?: number, @@ -13099,10 +13229,12 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - auto_trigger_checks?: { - app_id: number - setting: boolean - }[] + auto_trigger_checks?: + | { + app_id: number + setting: boolean + }[] + | undefined } }, timeout?: number, @@ -13278,8 +13410,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string alertNumber: t_alert_number requestBody: { - dismissed_comment?: t_code_scanning_alert_dismissed_comment - dismissed_reason?: t_code_scanning_alert_dismissed_reason + dismissed_comment?: t_code_scanning_alert_dismissed_comment | undefined + dismissed_reason?: t_code_scanning_alert_dismissed_reason | undefined state: t_code_scanning_alert_set_state } }, @@ -13608,13 +13740,13 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - checkout_uri?: string + checkout_uri?: string | undefined commit_sha: t_code_scanning_analysis_commit_sha ref: t_code_scanning_ref_full sarif: t_code_scanning_analysis_sarif_file - started_at?: string - tool_name?: string - validate?: boolean + started_at?: string | undefined + tool_name?: string | undefined + validate?: boolean | undefined } }, timeout?: number, @@ -13736,17 +13868,17 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - client_ip?: string - devcontainer_path?: string - display_name?: string - geo?: "EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest" - idle_timeout_minutes?: number - location?: string - machine?: string - multi_repo_permissions_opt_out?: boolean - ref?: string - retention_period_minutes?: number - working_directory?: string + client_ip?: string | undefined + devcontainer_path?: string | undefined + display_name?: string | undefined + geo?: ("EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest") | undefined + idle_timeout_minutes?: number | undefined + location?: string | undefined + machine?: string | undefined + multi_repo_permissions_opt_out?: boolean | undefined + ref?: string | undefined + retention_period_minutes?: number | undefined + working_directory?: string | undefined } | null }, timeout?: number, @@ -13781,8 +13913,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise< AxiosResponse<{ devcontainers: { - display_name?: string - name?: string + display_name?: string | undefined + name?: string | undefined path: string }[] total_count: number @@ -13845,11 +13977,13 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - billable_owner?: t_simple_user - defaults?: { - devcontainer_path: string | null - location: string - } + billable_owner?: t_simple_user | undefined + defaults?: + | { + devcontainer_path: string | null + location: string + } + | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/codespaces/new` @@ -13966,8 +14100,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string secretName: string requestBody: { - encrypted_value?: string - key_id?: string + encrypted_value?: string | undefined + key_id?: string | undefined } }, timeout?: number, @@ -14068,7 +14202,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string username: string requestBody?: { - permission?: string + permission?: string | undefined } }, timeout?: number, @@ -14413,9 +14547,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { commitSha: string requestBody: { body: string - line?: number - path?: string - position?: number + line?: number | undefined + path?: string | undefined + position?: number | undefined } }, timeout?: number, @@ -14690,20 +14824,24 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string path: string requestBody: { - author?: { - date?: string - email: string - name: string - } - branch?: string - committer?: { - date?: string - email: string - name: string - } + author?: + | { + date?: string | undefined + email: string + name: string + } + | undefined + branch?: string | undefined + committer?: + | { + date?: string | undefined + email: string + name: string + } + | undefined content: string message: string - sha?: string + sha?: string | undefined } }, timeout?: number, @@ -14732,15 +14870,19 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string path: string requestBody: { - author?: { - email?: string - name?: string - } - branch?: string - committer?: { - email?: string - name?: string - } + author?: + | { + email?: string | undefined + name?: string | undefined + } + | undefined + branch?: string | undefined + committer?: + | { + email?: string | undefined + name?: string | undefined + } + | undefined message: string sha: string } @@ -14870,13 +15012,16 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string alertNumber: t_alert_number requestBody: { - dismissed_comment?: string + dismissed_comment?: string | undefined dismissed_reason?: - | "fix_started" - | "inaccurate" - | "no_bandwidth" - | "not_used" - | "tolerable_risk" + | ( + | "fix_started" + | "inaccurate" + | "no_bandwidth" + | "not_used" + | "tolerable_risk" + ) + | undefined state: "dismissed" | "open" } }, @@ -14975,8 +15120,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string secretName: string requestBody: { - encrypted_value?: string - key_id?: string + encrypted_value?: string | undefined + key_id?: string | undefined } }, timeout?: number, @@ -15135,19 +15280,22 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - auto_merge?: boolean - description?: string | null - environment?: string + auto_merge?: boolean | undefined + description?: (string | null) | undefined + environment?: string | undefined payload?: - | { - [key: string]: unknown | undefined - } - | string - production_environment?: boolean + | ( + | { + [key: string]: unknown | undefined + } + | string + ) + | undefined + production_environment?: boolean | undefined ref: string - required_contexts?: string[] - task?: string - transient_environment?: boolean + required_contexts?: string[] | undefined + task?: string | undefined + transient_environment?: boolean | undefined } }, timeout?: number, @@ -15155,7 +15303,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise< | AxiosResponse | AxiosResponse<{ - message?: string + message?: string | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/deployments` @@ -15247,11 +15395,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string deploymentId: number requestBody: { - auto_inactive?: boolean - description?: string - environment?: string - environment_url?: string - log_url?: string + auto_inactive?: boolean | undefined + description?: string | undefined + environment?: string | undefined + environment_url?: string | undefined + log_url?: string | undefined state: | "error" | "failure" @@ -15260,7 +15408,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { | "queued" | "pending" | "success" - target_url?: string + target_url?: string | undefined } }, timeout?: number, @@ -15310,9 +15458,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - client_payload?: { - [key: string]: unknown | undefined - } + client_payload?: + | { + [key: string]: unknown | undefined + } + | undefined event_type: string } }, @@ -15347,8 +15497,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - environments?: t_environment[] - total_count?: number + environments?: t_environment[] | undefined + total_count?: number | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments` @@ -15391,15 +15541,20 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string environmentName: string requestBody?: { - deployment_branch_policy?: t_deployment_branch_policy_settings - prevent_self_review?: t_prevent_self_review + deployment_branch_policy?: + | t_deployment_branch_policy_settings + | undefined + prevent_self_review?: t_prevent_self_review | undefined reviewers?: - | { - id?: number - type?: t_deployment_reviewer_type - }[] - | null - wait_timer?: t_wait_timer + | ( + | { + id?: number | undefined + type?: t_deployment_reviewer_type | undefined + }[] + | null + ) + | undefined + wait_timer?: t_wait_timer | undefined } | null }, timeout?: number, @@ -15581,8 +15736,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - custom_deployment_protection_rules?: t_deployment_protection_rule[] - total_count?: number + custom_deployment_protection_rules?: + | t_deployment_protection_rule[] + | undefined + total_count?: number | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/deployment_protection_rules` @@ -15603,7 +15760,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string owner: string requestBody: { - integration_id?: number + integration_id?: number | undefined } }, timeout?: number, @@ -15638,8 +15795,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - available_custom_deployment_protection_rule_integrations?: t_custom_deployment_rule_app[] - total_count?: number + available_custom_deployment_protection_rule_integrations?: + | t_custom_deployment_rule_app[] + | undefined + total_count?: number | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/environments/${p["environmentName"]}/deployment_protection_rules/apps` @@ -15912,8 +16071,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { name: string environmentName: string requestBody: { - name?: string - value?: string + name?: string | undefined + value?: string | undefined } }, timeout?: number, @@ -16014,9 +16173,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - default_branch_only?: boolean - name?: string - organization?: string + default_branch_only?: boolean | undefined + name?: string | undefined + organization?: string | undefined } | null }, timeout?: number, @@ -16045,7 +16204,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string requestBody: { content: string - encoding?: string + encoding?: string | undefined } }, timeout?: number, @@ -16094,19 +16253,23 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - author?: { - date?: string - email: string - name: string - } - committer?: { - date?: string - email?: string - name?: string - } + author?: + | { + date?: string | undefined + email: string + name: string + } + | undefined + committer?: + | { + date?: string | undefined + email?: string | undefined + name?: string | undefined + } + | undefined message: string - parents?: string[] - signature?: string + parents?: string[] | undefined + signature?: string | undefined tree: string } }, @@ -16228,7 +16391,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string ref: string requestBody: { - force?: boolean + force?: boolean | undefined sha: string } }, @@ -16281,11 +16444,13 @@ export class GitHubV3RestApi extends AbstractAxiosClient { message: string object: string tag: string - tagger?: { - date?: string - email: string - name: string - } + tagger?: + | { + date?: string | undefined + email: string + name: string + } + | undefined type: "commit" | "tree" | "blob" } }, @@ -16335,13 +16500,15 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - base_tree?: string + base_tree?: string | undefined tree: { - content?: string - mode?: "100644" | "100755" | "040000" | "160000" | "120000" - path?: string - sha?: string | null - type?: "blob" | "tree" | "commit" + content?: string | undefined + mode?: + | ("100644" | "100755" | "040000" | "160000" | "120000") + | undefined + path?: string | undefined + sha?: (string | null) | undefined + type?: ("blob" | "tree" | "commit") | undefined }[] } }, @@ -16416,15 +16583,17 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - active?: boolean - config?: { - content_type?: t_webhook_config_content_type - insecure_ssl?: t_webhook_config_insecure_ssl - secret?: t_webhook_config_secret - url?: t_webhook_config_url - } - events?: string[] - name?: string + active?: boolean | undefined + config?: + | { + content_type?: t_webhook_config_content_type | undefined + insecure_ssl?: t_webhook_config_insecure_ssl | undefined + secret?: t_webhook_config_secret | undefined + url?: t_webhook_config_url | undefined + } + | undefined + events?: string[] | undefined + name?: string | undefined } | null }, timeout?: number, @@ -16474,11 +16643,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string hookId: number requestBody: { - active?: boolean - add_events?: string[] - config?: t_webhook_config - events?: string[] - remove_events?: string[] + active?: boolean | undefined + add_events?: string[] | undefined + config?: t_webhook_config | undefined + events?: string[] | undefined + remove_events?: string[] | undefined } }, timeout?: number, @@ -16549,10 +16718,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string hookId: number requestBody?: { - content_type?: t_webhook_config_content_type - insecure_ssl?: t_webhook_config_insecure_ssl - secret?: t_webhook_config_secret - url?: t_webhook_config_url + content_type?: t_webhook_config_content_type | undefined + insecure_ssl?: t_webhook_config_insecure_ssl | undefined + secret?: t_webhook_config_secret | undefined + url?: t_webhook_config_url | undefined } }, timeout?: number, @@ -16714,11 +16883,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - tfvc_project?: string - vcs?: "subversion" | "git" | "mercurial" | "tfvc" - vcs_password?: string + tfvc_project?: string | undefined + vcs?: ("subversion" | "git" | "mercurial" | "tfvc") | undefined + vcs_password?: string | undefined vcs_url: string - vcs_username?: string + vcs_username?: string | undefined } }, timeout?: number, @@ -16746,10 +16915,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - tfvc_project?: string - vcs?: "subversion" | "tfvc" | "git" | "mercurial" - vcs_password?: string - vcs_username?: string + tfvc_project?: string | undefined + vcs?: ("subversion" | "tfvc" | "git" | "mercurial") | undefined + vcs_password?: string | undefined + vcs_username?: string | undefined } | null }, timeout?: number, @@ -16820,8 +16989,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string authorId: number requestBody?: { - email?: string - name?: string + email?: string | undefined + name?: string | undefined } }, timeout?: number, @@ -17007,7 +17176,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string invitationId: number requestBody?: { - permissions?: "read" | "write" | "maintain" | "triage" | "admin" + permissions?: + | ("read" | "write" | "maintain" | "triage" | "admin") + | undefined } }, timeout?: number, @@ -17100,19 +17271,21 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - assignee?: string | null - assignees?: string[] - body?: string - labels?: ( - | string - | { - color?: string | null - description?: string | null - id?: number - name?: string - } - )[] - milestone?: string | number | null + assignee?: (string | null) | undefined + assignees?: string[] | undefined + body?: string | undefined + labels?: + | ( + | string + | { + color?: (string | null) | undefined + description?: (string | null) | undefined + id?: number | undefined + name?: string | undefined + } + )[] + | undefined + milestone?: (string | number | null) | undefined title: string | number } }, @@ -17406,22 +17579,26 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string issueNumber: number requestBody?: { - assignee?: string | null - assignees?: string[] - body?: string | null - labels?: ( - | string - | { - color?: string | null - description?: string | null - id?: number - name?: string - } - )[] - milestone?: string | number | null - state?: "open" | "closed" - state_reason?: "completed" | "not_planned" | "reopened" | null - title?: string | number | null + assignee?: (string | null) | undefined + assignees?: string[] | undefined + body?: (string | null) | undefined + labels?: + | ( + | string + | { + color?: (string | null) | undefined + description?: (string | null) | undefined + id?: number | undefined + name?: string | undefined + } + )[] + | undefined + milestone?: (string | number | null) | undefined + state?: ("open" | "closed") | undefined + state_reason?: + | ("completed" | "not_planned" | "reopened" | null) + | undefined + title?: (string | number | null) | undefined } }, timeout?: number, @@ -17450,7 +17627,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string issueNumber: number requestBody?: { - assignees?: string[] + assignees?: string[] | undefined } }, timeout?: number, @@ -17479,7 +17656,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string issueNumber: number requestBody: { - assignees?: string[] + assignees?: string[] | undefined } }, timeout?: number, @@ -17637,13 +17814,15 @@ export class GitHubV3RestApi extends AbstractAxiosClient { issueNumber: number requestBody?: | { - labels?: string[] + labels?: string[] | undefined } | string[] | { - labels?: { - name: string - }[] + labels?: + | { + name: string + }[] + | undefined } | { name: string @@ -17677,13 +17856,15 @@ export class GitHubV3RestApi extends AbstractAxiosClient { issueNumber: number requestBody?: | { - labels?: string[] + labels?: string[] | undefined } | string[] | { - labels?: { - name: string - }[] + labels?: + | { + name: string + }[] + | undefined } | { name: string @@ -17759,7 +17940,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string issueNumber: number requestBody?: { - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam" + lock_reason?: + | ("off-topic" | "too heated" | "resolved" | "spam") + | undefined } | null }, timeout?: number, @@ -17958,7 +18141,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string issueNumber: number requestBody: { - replace_parent?: boolean + replace_parent?: boolean | undefined sub_issue_id: number } }, @@ -17988,8 +18171,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string issueNumber: number requestBody: { - after_id?: number - before_id?: number + after_id?: number | undefined + before_id?: number | undefined sub_issue_id: number } }, @@ -18066,8 +18249,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string requestBody: { key: string - read_only?: boolean - title?: string + read_only?: boolean | undefined + title?: string | undefined } }, timeout?: number, @@ -18160,8 +18343,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - color?: string - description?: string + color?: string | undefined + description?: string | undefined name: string } }, @@ -18212,9 +18395,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string name: string requestBody?: { - color?: string - description?: string - new_name?: string + color?: string | undefined + description?: string | undefined + new_name?: string | undefined } }, timeout?: number, @@ -18334,7 +18517,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string requestBody: { base: string - commit_message?: string + commit_message?: string | undefined head: string } }, @@ -18395,9 +18578,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - description?: string - due_on?: string - state?: "open" | "closed" + description?: string | undefined + due_on?: string | undefined + state?: ("open" | "closed") | undefined title: string } }, @@ -18448,10 +18631,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string milestoneNumber: number requestBody?: { - description?: string - due_on?: string - state?: "open" | "closed" - title?: string + description?: string | undefined + due_on?: string | undefined + state?: ("open" | "closed") | undefined + title?: string | undefined } }, timeout?: number, @@ -18558,15 +18741,15 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - last_read_at?: string + last_read_at?: string | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< | AxiosResponse<{ - message?: string - url?: string + message?: string | undefined + url?: string | undefined }> | AxiosResponse > { @@ -18612,11 +18795,13 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - build_type?: "legacy" | "workflow" - source?: { - branch: string - path?: "/" | "/docs" - } + build_type?: ("legacy" | "workflow") | undefined + source?: + | { + branch: string + path?: ("/" | "/docs") | undefined + } + | undefined } | null }, timeout?: number, @@ -18644,17 +18829,20 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - build_type?: "legacy" | "workflow" - cname?: string | null - https_enforced?: boolean + build_type?: ("legacy" | "workflow") | undefined + cname?: (string | null) | undefined + https_enforced?: boolean | undefined source?: - | "gh-pages" - | "master" - | "master /docs" - | { - branch: string - path: "/" | "/docs" - } + | ( + | "gh-pages" + | "master" + | "master /docs" + | { + branch: string + path: "/" | "/docs" + } + ) + | undefined } }, timeout?: number, @@ -18786,9 +18974,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - artifact_id?: number - artifact_url?: string - environment?: string + artifact_id?: number | undefined + artifact_url?: string | undefined + environment?: string | undefined oidc_token: string pages_build_version: string } @@ -18974,7 +19162,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - body?: string + body?: string | undefined name: string } }, @@ -19088,13 +19276,13 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string requestBody: { base: string - body?: string - draft?: boolean + body?: string | undefined + draft?: boolean | undefined head: string - head_repo?: string - issue?: number - maintainer_can_modify?: boolean - title?: string + head_repo?: string | undefined + issue?: number | undefined + maintainer_can_modify?: boolean | undefined + title?: string | undefined } }, timeout?: number, @@ -19343,11 +19531,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string pullNumber: number requestBody?: { - base?: string - body?: string - maintainer_can_modify?: boolean - state?: "open" | "closed" - title?: string + base?: string | undefined + body?: string | undefined + maintainer_can_modify?: boolean | undefined + state?: ("open" | "closed") | undefined + title?: string | undefined } }, timeout?: number, @@ -19376,16 +19564,16 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string pullNumber: number requestBody: { - client_ip?: string - devcontainer_path?: string - display_name?: string - geo?: "EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest" - idle_timeout_minutes?: number - location?: string - machine?: string - multi_repo_permissions_opt_out?: boolean - retention_period_minutes?: number - working_directory?: string + client_ip?: string | undefined + devcontainer_path?: string | undefined + display_name?: string | undefined + geo?: ("EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest") | undefined + idle_timeout_minutes?: number | undefined + location?: string | undefined + machine?: string | undefined + multi_repo_permissions_opt_out?: boolean | undefined + retention_period_minutes?: number | undefined + working_directory?: string | undefined } | null }, timeout?: number, @@ -19449,14 +19637,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { requestBody: { body: string commit_id: string - in_reply_to?: number - line?: number + in_reply_to?: number | undefined + line?: number | undefined path: string - position?: number - side?: "LEFT" | "RIGHT" - start_line?: number - start_side?: "LEFT" | "RIGHT" | "side" - subject_type?: "line" | "file" + position?: number | undefined + side?: ("LEFT" | "RIGHT") | undefined + start_line?: number | undefined + start_side?: ("LEFT" | "RIGHT" | "side") | undefined + subject_type?: ("line" | "file") | undefined } }, timeout?: number, @@ -19584,10 +19772,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string pullNumber: number requestBody?: { - commit_message?: string - commit_title?: string - merge_method?: "merge" | "squash" | "rebase" - sha?: string + commit_message?: string | undefined + commit_title?: string | undefined + merge_method?: ("merge" | "squash" | "rebase") | undefined + sha?: string | undefined } | null }, timeout?: number, @@ -19637,8 +19825,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string pullNumber: number requestBody?: { - reviewers?: string[] - team_reviewers?: string[] + reviewers?: string[] | undefined + team_reviewers?: string[] | undefined } }, timeout?: number, @@ -19668,7 +19856,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { pullNumber: number requestBody: { reviewers: string[] - team_reviewers?: string[] + team_reviewers?: string[] | undefined } }, timeout?: number, @@ -19721,18 +19909,20 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string pullNumber: number requestBody?: { - body?: string - comments?: { - body: string - line?: number - path: string - position?: number - side?: string - start_line?: number - start_side?: string - }[] - commit_id?: string - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT" + body?: string | undefined + comments?: + | { + body: string + line?: number | undefined + path: string + position?: number | undefined + side?: string | undefined + start_line?: number | undefined + start_side?: string | undefined + }[] + | undefined + commit_id?: string | undefined + event?: ("APPROVE" | "REQUEST_CHANGES" | "COMMENT") | undefined } }, timeout?: number, @@ -19861,7 +20051,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { pullNumber: number reviewId: number requestBody: { - event?: "DISMISS" + event?: "DISMISS" | undefined message: string } }, @@ -19892,7 +20082,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { pullNumber: number reviewId: number requestBody: { - body?: string + body?: string | undefined event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT" } }, @@ -19922,15 +20112,15 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string pullNumber: number requestBody?: { - expected_head_sha?: string + expected_head_sha?: string | undefined } | null }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - message?: string - url?: string + message?: string | undefined + url?: string | undefined }> > { const url = `/repos/${p["owner"]}/${p["repo"]}/pulls/${p["pullNumber"]}/update-branch` @@ -20023,15 +20213,15 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - body?: string - discussion_category_name?: string - draft?: boolean - generate_release_notes?: boolean - make_latest?: "true" | "false" | "legacy" - name?: string - prerelease?: boolean + body?: string | undefined + discussion_category_name?: string | undefined + draft?: boolean | undefined + generate_release_notes?: boolean | undefined + make_latest?: ("true" | "false" | "legacy") | undefined + name?: string | undefined + prerelease?: boolean | undefined tag_name: string - target_commitish?: string + target_commitish?: string | undefined } }, timeout?: number, @@ -20081,9 +20271,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string assetId: number requestBody?: { - label?: string - name?: string - state?: string + label?: string | undefined + name?: string | undefined + state?: string | undefined } }, timeout?: number, @@ -20132,10 +20322,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - configuration_file_path?: string - previous_tag_name?: string + configuration_file_path?: string | undefined + previous_tag_name?: string | undefined tag_name: string - target_commitish?: string + target_commitish?: string | undefined } }, timeout?: number, @@ -20226,14 +20416,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string releaseId: number requestBody?: { - body?: string - discussion_category_name?: string - draft?: boolean - make_latest?: "true" | "false" | "legacy" - name?: string - prerelease?: boolean - tag_name?: string - target_commitish?: string + body?: string | undefined + discussion_category_name?: string | undefined + draft?: boolean | undefined + make_latest?: ("true" | "false" | "legacy") | undefined + name?: string | undefined + prerelease?: boolean | undefined + tag_name?: string | undefined + target_commitish?: string | undefined } }, timeout?: number, @@ -20476,12 +20666,12 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - bypass_actors?: t_repository_ruleset_bypass_actor[] - conditions?: t_repository_ruleset_conditions + bypass_actors?: t_repository_ruleset_bypass_actor[] | undefined + conditions?: t_repository_ruleset_conditions | undefined enforcement: t_repository_rule_enforcement name: string - rules?: t_repository_rule[] - target?: "branch" | "tag" | "push" + rules?: t_repository_rule[] | undefined + target?: ("branch" | "tag" | "push") | undefined } }, timeout?: number, @@ -20588,12 +20778,12 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string rulesetId: number requestBody?: { - bypass_actors?: t_repository_ruleset_bypass_actor[] - conditions?: t_repository_ruleset_conditions - enforcement?: t_repository_rule_enforcement - name?: string - rules?: t_repository_rule[] - target?: "branch" | "tag" | "push" + bypass_actors?: t_repository_ruleset_bypass_actor[] | undefined + conditions?: t_repository_ruleset_conditions | undefined + enforcement?: t_repository_rule_enforcement | undefined + name?: string | undefined + rules?: t_repository_rule[] | undefined + target?: ("branch" | "tag" | "push") | undefined } }, timeout?: number, @@ -20710,8 +20900,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string alertNumber: t_alert_number requestBody: { - resolution?: t_secret_scanning_alert_resolution - resolution_comment?: t_secret_scanning_alert_resolution_comment + resolution?: t_secret_scanning_alert_resolution | undefined + resolution_comment?: + | t_secret_scanning_alert_resolution_comment + | undefined state: t_secret_scanning_alert_state } }, @@ -21135,10 +21327,10 @@ export class GitHubV3RestApi extends AbstractAxiosClient { repo: string sha: string requestBody: { - context?: string - description?: string | null + context?: string | undefined + description?: (string | null) | undefined state: "error" | "failure" | "pending" | "success" - target_url?: string | null + target_url?: (string | null) | undefined } }, timeout?: number, @@ -21209,8 +21401,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - ignored?: boolean - subscribed?: boolean + ignored?: boolean | undefined + subscribed?: boolean | undefined } }, timeout?: number, @@ -21529,9 +21721,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody: { - new_name?: string + new_name?: string | undefined new_owner: string - team_ids?: number[] + team_ids?: number[] | undefined } }, timeout?: number, @@ -21640,11 +21832,11 @@ export class GitHubV3RestApi extends AbstractAxiosClient { templateOwner: string templateRepo: string requestBody: { - description?: string - include_all_branches?: boolean + description?: string | undefined + include_all_branches?: boolean | undefined name: string - owner?: string - private?: boolean + owner?: string | undefined + private?: boolean | undefined } }, timeout?: number, @@ -21971,14 +22163,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { teamId: number requestBody: { - description?: string + description?: string | undefined name: string notification_setting?: - | "notifications_enabled" - | "notifications_disabled" - parent_team_id?: number | null - permission?: "pull" | "push" | "admin" - privacy?: "secret" | "closed" + | ("notifications_enabled" | "notifications_disabled") + | undefined + parent_team_id?: (number | null) | undefined + permission?: ("pull" | "push" | "admin") | undefined + privacy?: ("secret" | "closed") | undefined } }, timeout?: number, @@ -22052,7 +22244,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamId: number requestBody: { body: string - private?: boolean + private?: boolean | undefined title: string } }, @@ -22101,8 +22293,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamId: number discussionNumber: number requestBody?: { - body?: string - title?: string + body?: string | undefined + title?: string | undefined } }, timeout?: number, @@ -22552,7 +22744,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamId: number username: string requestBody?: { - role?: "member" | "maintainer" + role?: ("member" | "maintainer") | undefined } }, timeout?: number, @@ -22642,7 +22834,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { teamId: number projectId: number requestBody?: { - permission?: "read" | "write" | "admin" + permission?: ("read" | "write" | "admin") | undefined } }, timeout?: number, @@ -22734,7 +22926,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { owner: string repo: string requestBody?: { - permission?: "pull" | "push" | "admin" + permission?: ("pull" | "push" | "admin") | undefined } }, timeout?: number, @@ -22819,14 +23011,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async usersUpdateAuthenticated( p: { requestBody?: { - bio?: string - blog?: string - company?: string - email?: string - hireable?: boolean - location?: string - name?: string - twitter_username?: string | null + bio?: string | undefined + blog?: string | undefined + company?: string | undefined + email?: string | undefined + hireable?: boolean | undefined + location?: string | undefined + name?: string | undefined + twitter_username?: (string | null) | undefined } } = {}, timeout?: number, @@ -22962,30 +23154,34 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { requestBody: | { - client_ip?: string - devcontainer_path?: string - display_name?: string - geo?: "EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest" - idle_timeout_minutes?: number - location?: string - machine?: string - multi_repo_permissions_opt_out?: boolean - ref?: string + client_ip?: string | undefined + devcontainer_path?: string | undefined + display_name?: string | undefined + geo?: + | ("EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest") + | undefined + idle_timeout_minutes?: number | undefined + location?: string | undefined + machine?: string | undefined + multi_repo_permissions_opt_out?: boolean | undefined + ref?: string | undefined repository_id: number - retention_period_minutes?: number - working_directory?: string + retention_period_minutes?: number | undefined + working_directory?: string | undefined } | { - devcontainer_path?: string - geo?: "EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest" - idle_timeout_minutes?: number - location?: string - machine?: string + devcontainer_path?: string | undefined + geo?: + | ("EuropeWest" | "SoutheastAsia" | "UsEast" | "UsWest") + | undefined + idle_timeout_minutes?: number | undefined + location?: string | undefined + machine?: string | undefined pull_request: { pull_request_number: number repository_id: number } - working_directory?: string + working_directory?: string | undefined } }, timeout?: number, @@ -23073,9 +23269,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { secretName: string requestBody: { - encrypted_value?: string + encrypted_value?: string | undefined key_id: string - selected_repository_ids?: (number | string)[] + selected_repository_ids?: (number | string)[] | undefined } }, timeout?: number, @@ -23231,9 +23427,9 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { codespaceName: string requestBody?: { - display_name?: string - machine?: string - recent_folders?: string[] + display_name?: string | undefined + machine?: string | undefined + recent_folders?: string[] | undefined } }, timeout?: number, @@ -23346,8 +23542,8 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { codespaceName: string requestBody: { - name?: string - private?: boolean + name?: string | undefined + private?: boolean | undefined } }, timeout?: number, @@ -23653,7 +23849,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { requestBody: { armored_public_key: string - name?: string + name?: string | undefined } }, timeout?: number, @@ -23751,7 +23947,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { ): Promise< AxiosResponse<{ repositories: t_repository[] - repository_selection?: string + repository_selection?: string | undefined total_count: number }> > { @@ -23934,7 +24130,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { requestBody: { key: string - title?: string + title?: string | undefined } }, timeout?: number, @@ -24133,14 +24329,14 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async migrationsStartForAuthenticatedUser( p: { requestBody: { - exclude?: "repositories"[] - exclude_attachments?: boolean - exclude_git_data?: boolean - exclude_metadata?: boolean - exclude_owner_projects?: boolean - exclude_releases?: boolean - lock_repositories?: boolean - org_metadata_only?: boolean + exclude?: "repositories"[] | undefined + exclude_attachments?: boolean | undefined + exclude_git_data?: boolean | undefined + exclude_metadata?: boolean | undefined + exclude_owner_projects?: boolean | undefined + exclude_releases?: boolean | undefined + lock_repositories?: boolean | undefined + org_metadata_only?: boolean | undefined repositories: string[] } }, @@ -24518,7 +24714,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async projectsCreateForAuthenticatedUser( p: { requestBody: { - body?: string | null + body?: (string | null) | undefined name: string } }, @@ -24604,29 +24800,33 @@ export class GitHubV3RestApi extends AbstractAxiosClient { async reposCreateForAuthenticatedUser( p: { requestBody: { - allow_auto_merge?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean - auto_init?: boolean - delete_branch_on_merge?: boolean - description?: string - gitignore_template?: string - has_discussions?: boolean - has_downloads?: boolean - has_issues?: boolean - has_projects?: boolean - has_wiki?: boolean - homepage?: string - is_template?: boolean - license_template?: string - merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK" - merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" + allow_auto_merge?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined + auto_init?: boolean | undefined + delete_branch_on_merge?: boolean | undefined + description?: string | undefined + gitignore_template?: string | undefined + has_discussions?: boolean | undefined + has_downloads?: boolean | undefined + has_issues?: boolean | undefined + has_projects?: boolean | undefined + has_wiki?: boolean | undefined + homepage?: string | undefined + is_template?: boolean | undefined + license_template?: string | undefined + merge_commit_message?: ("PR_BODY" | "PR_TITLE" | "BLANK") | undefined + merge_commit_title?: ("PR_TITLE" | "MERGE_MESSAGE") | undefined name: string - private?: boolean - squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" - squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" - team_id?: number + private?: boolean | undefined + squash_merge_commit_message?: + | ("PR_BODY" | "COMMIT_MESSAGES" | "BLANK") + | undefined + squash_merge_commit_title?: + | ("PR_TITLE" | "COMMIT_OR_PR_TITLE") + | undefined + team_id?: number | undefined } }, timeout?: number, @@ -24806,7 +25006,7 @@ export class GitHubV3RestApi extends AbstractAxiosClient { p: { requestBody: { key: string - title?: string + title?: string | undefined } }, timeout?: number, @@ -25068,10 +25268,12 @@ export class GitHubV3RestApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< | AxiosResponse<{ - attestations?: { - bundle?: t_sigstore_bundle_0 - repository_id?: number - }[] + attestations?: + | { + bundle?: t_sigstore_bundle_0 | undefined + repository_id?: number | undefined + }[] + | undefined }> | AxiosResponse | AxiosResponse diff --git a/integration-tests/typescript-axios/src/generated/api.github.com.yaml/models.ts b/integration-tests/typescript-axios/src/generated/api.github.com.yaml/models.ts index f7089af3..46cc53e1 100644 --- a/integration-tests/typescript-axios/src/generated/api.github.com.yaml/models.ts +++ b/integration-tests/typescript-axios/src/generated/api.github.com.yaml/models.ts @@ -7,21 +7,21 @@ export type EmptyObject = { [key: string]: never } export type t_actions_billing_usage = { included_minutes: number minutes_used_breakdown: { - MACOS?: number - UBUNTU?: number - WINDOWS?: number - macos_12_core?: number - total?: number - ubuntu_16_core?: number - ubuntu_32_core?: number - ubuntu_4_core?: number - ubuntu_64_core?: number - ubuntu_8_core?: number - windows_16_core?: number - windows_32_core?: number - windows_4_core?: number - windows_64_core?: number - windows_8_core?: number + MACOS?: number | undefined + UBUNTU?: number | undefined + WINDOWS?: number | undefined + macos_12_core?: number | undefined + total?: number | undefined + ubuntu_16_core?: number | undefined + ubuntu_32_core?: number | undefined + ubuntu_4_core?: number | undefined + ubuntu_64_core?: number | undefined + ubuntu_8_core?: number | undefined + windows_16_core?: number | undefined + windows_32_core?: number | undefined + windows_4_core?: number | undefined + windows_64_core?: number | undefined + windows_8_core?: number | undefined } total_minutes_used: number total_paid_minutes_used: number @@ -29,13 +29,13 @@ export type t_actions_billing_usage = { export type t_actions_cache_list = { actions_caches: { - created_at?: string - id?: number - key?: string - last_accessed_at?: string - ref?: string - size_in_bytes?: number - version?: string + created_at?: string | undefined + id?: number | undefined + key?: string | undefined + last_accessed_at?: string | undefined + ref?: string | undefined + size_in_bytes?: number | undefined + version?: string | undefined }[] total_count: number } @@ -63,25 +63,25 @@ export type t_actions_get_default_workflow_permissions = { } export type t_actions_organization_permissions = { - allowed_actions?: t_allowed_actions + allowed_actions?: t_allowed_actions | undefined enabled_repositories: t_enabled_repositories - selected_actions_url?: t_selected_actions_url - selected_repositories_url?: string + selected_actions_url?: t_selected_actions_url | undefined + selected_repositories_url?: string | undefined } export type t_actions_public_key = { - created_at?: string - id?: number + created_at?: string | undefined + id?: number | undefined key: string key_id: string - title?: string - url?: string + title?: string | undefined + url?: string | undefined } export type t_actions_repository_permissions = { - allowed_actions?: t_allowed_actions + allowed_actions?: t_allowed_actions | undefined enabled: t_actions_enabled - selected_actions_url?: t_selected_actions_url + selected_actions_url?: t_selected_actions_url | undefined } export type t_actions_secret = { @@ -91,8 +91,12 @@ export type t_actions_secret = { } export type t_actions_set_default_workflow_permissions = { - can_approve_pull_request_reviews?: t_actions_can_approve_pull_request_reviews - default_workflow_permissions?: t_actions_default_workflow_permissions + can_approve_pull_request_reviews?: + | t_actions_can_approve_pull_request_reviews + | undefined + default_workflow_permissions?: + | t_actions_default_workflow_permissions + | undefined } export type t_actions_variable = { @@ -125,7 +129,7 @@ export type t_activity = { export type t_actor = { avatar_url: string - display_login?: string + display_login?: string | undefined gravatar_id: string | null id: number login: string @@ -141,14 +145,16 @@ export type t_added_to_project_issue_event = { id: number node_id: string performed_via_github_app: t_nullable_integration - project_card?: { - column_name: string - id: number - previous_column_name?: string - project_id: number - project_url: string - url: string - } + project_card?: + | { + column_name: string + id: number + previous_column_name?: string | undefined + project_id: number + project_url: string + url: string + } + | undefined url: string } @@ -173,131 +179,137 @@ export type t_alert_url = string export type t_allowed_actions = "all" | "local_only" | "selected" export type t_api_insights_route_stats = { - api_route?: string - http_method?: string - last_rate_limited_timestamp?: string | null - last_request_timestamp?: string - rate_limited_request_count?: number - total_request_count?: number + api_route?: string | undefined + http_method?: string | undefined + last_rate_limited_timestamp?: (string | null) | undefined + last_request_timestamp?: string | undefined + rate_limited_request_count?: number | undefined + total_request_count?: number | undefined }[] export type t_api_insights_subject_stats = { - last_rate_limited_timestamp?: string | null - last_request_timestamp?: string - rate_limited_request_count?: number - subject_id?: number - subject_name?: string - subject_type?: string - total_request_count?: number + last_rate_limited_timestamp?: (string | null) | undefined + last_request_timestamp?: string | undefined + rate_limited_request_count?: number | undefined + subject_id?: number | undefined + subject_name?: string | undefined + subject_type?: string | undefined + total_request_count?: number | undefined }[] export type t_api_insights_summary_stats = { - rate_limited_request_count?: number - total_request_count?: number + rate_limited_request_count?: number | undefined + total_request_count?: number | undefined } export type t_api_insights_time_stats = { - rate_limited_request_count?: number - timestamp?: string - total_request_count?: number + rate_limited_request_count?: number | undefined + timestamp?: string | undefined + total_request_count?: number | undefined }[] export type t_api_insights_user_stats = { - actor_id?: number - actor_name?: string - actor_type?: string - integration_id?: number | null - last_rate_limited_timestamp?: string | null - last_request_timestamp?: string - oauth_application_id?: number | null - rate_limited_request_count?: number - total_request_count?: number + actor_id?: number | undefined + actor_name?: string | undefined + actor_type?: string | undefined + integration_id?: (number | null) | undefined + last_rate_limited_timestamp?: (string | null) | undefined + last_request_timestamp?: string | undefined + oauth_application_id?: (number | null) | undefined + rate_limited_request_count?: number | undefined + total_request_count?: number | undefined }[] export type t_api_overview = { - actions?: string[] - actions_macos?: string[] - api?: string[] - codespaces?: string[] - copilot?: string[] - dependabot?: string[] - domains?: { - actions?: string[] - artifact_attestations?: { - services?: string[] - trust_domain?: string - } - codespaces?: string[] - copilot?: string[] - packages?: string[] - website?: string[] - } - git?: string[] - github_enterprise_importer?: string[] - hooks?: string[] - importer?: string[] - packages?: string[] - pages?: string[] - ssh_key_fingerprints?: { - SHA256_DSA?: string - SHA256_ECDSA?: string - SHA256_ED25519?: string - SHA256_RSA?: string - } - ssh_keys?: string[] + actions?: string[] | undefined + actions_macos?: string[] | undefined + api?: string[] | undefined + codespaces?: string[] | undefined + copilot?: string[] | undefined + dependabot?: string[] | undefined + domains?: + | { + actions?: string[] | undefined + artifact_attestations?: + | { + services?: string[] | undefined + trust_domain?: string | undefined + } + | undefined + codespaces?: string[] | undefined + copilot?: string[] | undefined + packages?: string[] | undefined + website?: string[] | undefined + } + | undefined + git?: string[] | undefined + github_enterprise_importer?: string[] | undefined + hooks?: string[] | undefined + importer?: string[] | undefined + packages?: string[] | undefined + pages?: string[] | undefined + ssh_key_fingerprints?: + | { + SHA256_DSA?: string | undefined + SHA256_ECDSA?: string | undefined + SHA256_ED25519?: string | undefined + SHA256_RSA?: string | undefined + } + | undefined + ssh_keys?: string[] | undefined verifiable_password_authentication: boolean - web?: string[] + web?: string[] | undefined } export type t_app_permissions = { - actions?: "read" | "write" - administration?: "read" | "write" - checks?: "read" | "write" - codespaces?: "read" | "write" - contents?: "read" | "write" - dependabot_secrets?: "read" | "write" - deployments?: "read" | "write" - email_addresses?: "read" | "write" - environments?: "read" | "write" - followers?: "read" | "write" - git_ssh_keys?: "read" | "write" - gpg_keys?: "read" | "write" - interaction_limits?: "read" | "write" - issues?: "read" | "write" - members?: "read" | "write" - metadata?: "read" | "write" - organization_administration?: "read" | "write" - organization_announcement_banners?: "read" | "write" - organization_copilot_seat_management?: "write" - organization_custom_org_roles?: "read" | "write" - organization_custom_properties?: "read" | "write" | "admin" - organization_custom_roles?: "read" | "write" - organization_events?: "read" - organization_hooks?: "read" | "write" - organization_packages?: "read" | "write" - organization_personal_access_token_requests?: "read" | "write" - organization_personal_access_tokens?: "read" | "write" - organization_plan?: "read" - organization_projects?: "read" | "write" | "admin" - organization_secrets?: "read" | "write" - organization_self_hosted_runners?: "read" | "write" - organization_user_blocking?: "read" | "write" - packages?: "read" | "write" - pages?: "read" | "write" - profile?: "write" - pull_requests?: "read" | "write" - repository_custom_properties?: "read" | "write" - repository_hooks?: "read" | "write" - repository_projects?: "read" | "write" | "admin" - secret_scanning_alerts?: "read" | "write" - secrets?: "read" | "write" - security_events?: "read" | "write" - single_file?: "read" | "write" - starring?: "read" | "write" - statuses?: "read" | "write" - team_discussions?: "read" | "write" - vulnerability_alerts?: "read" | "write" - workflows?: "write" + actions?: ("read" | "write") | undefined + administration?: ("read" | "write") | undefined + checks?: ("read" | "write") | undefined + codespaces?: ("read" | "write") | undefined + contents?: ("read" | "write") | undefined + dependabot_secrets?: ("read" | "write") | undefined + deployments?: ("read" | "write") | undefined + email_addresses?: ("read" | "write") | undefined + environments?: ("read" | "write") | undefined + followers?: ("read" | "write") | undefined + git_ssh_keys?: ("read" | "write") | undefined + gpg_keys?: ("read" | "write") | undefined + interaction_limits?: ("read" | "write") | undefined + issues?: ("read" | "write") | undefined + members?: ("read" | "write") | undefined + metadata?: ("read" | "write") | undefined + organization_administration?: ("read" | "write") | undefined + organization_announcement_banners?: ("read" | "write") | undefined + organization_copilot_seat_management?: "write" | undefined + organization_custom_org_roles?: ("read" | "write") | undefined + organization_custom_properties?: ("read" | "write" | "admin") | undefined + organization_custom_roles?: ("read" | "write") | undefined + organization_events?: "read" | undefined + organization_hooks?: ("read" | "write") | undefined + organization_packages?: ("read" | "write") | undefined + organization_personal_access_token_requests?: ("read" | "write") | undefined + organization_personal_access_tokens?: ("read" | "write") | undefined + organization_plan?: "read" | undefined + organization_projects?: ("read" | "write" | "admin") | undefined + organization_secrets?: ("read" | "write") | undefined + organization_self_hosted_runners?: ("read" | "write") | undefined + organization_user_blocking?: ("read" | "write") | undefined + packages?: ("read" | "write") | undefined + pages?: ("read" | "write") | undefined + profile?: "write" | undefined + pull_requests?: ("read" | "write") | undefined + repository_custom_properties?: ("read" | "write") | undefined + repository_hooks?: ("read" | "write") | undefined + repository_projects?: ("read" | "write" | "admin") | undefined + secret_scanning_alerts?: ("read" | "write") | undefined + secrets?: ("read" | "write") | undefined + security_events?: ("read" | "write") | undefined + single_file?: ("read" | "write") | undefined + starring?: ("read" | "write") | undefined + statuses?: ("read" | "write") | undefined + team_discussions?: ("read" | "write") | undefined + vulnerability_alerts?: ("read" | "write") | undefined + workflows?: "write" | undefined } export type t_artifact = { @@ -311,13 +323,15 @@ export type t_artifact = { size_in_bytes: number updated_at: string | null url: string - workflow_run?: { - head_branch?: string - head_repository_id?: number - head_sha?: string - id?: number - repository_id?: number - } | null + workflow_run?: + | ({ + head_branch?: string | undefined + head_repository_id?: number | undefined + head_sha?: string | undefined + id?: number | undefined + repository_id?: number | undefined + } | null) + | undefined } export type t_assigned_issue_event = { @@ -336,10 +350,10 @@ export type t_assigned_issue_event = { export type t_authentication_token = { expires_at: string - permissions?: EmptyObject - repositories?: t_repository[] - repository_selection?: "all" | "selected" - single_file?: string | null + permissions?: EmptyObject | undefined + repositories?: t_repository[] | undefined + repository_selection?: ("all" | "selected") | undefined + single_file?: (string | null) | undefined token: string } @@ -364,7 +378,7 @@ export type t_authorization = { fingerprint: string | null hashed_token: string | null id: number - installation?: t_nullable_scoped_installation + installation?: t_nullable_scoped_installation | undefined note: string | null note_url: string | null scopes: string[] | null @@ -372,7 +386,7 @@ export type t_authorization = { token_last_eight: string | null updated_at: string url: string - user?: t_nullable_simple_user + user?: t_nullable_simple_user | undefined } export type t_auto_merge = { @@ -398,58 +412,60 @@ export type t_base_gist = { files: { [key: string]: | { - encoding?: string - filename?: string - language?: string - raw_url?: string - size?: number - type?: string + encoding?: string | undefined + filename?: string | undefined + language?: string | undefined + raw_url?: string | undefined + size?: number | undefined + type?: string | undefined } | undefined } - forks?: unknown[] + forks?: unknown[] | undefined forks_url: string git_pull_url: string git_push_url: string - history?: unknown[] + history?: unknown[] | undefined html_url: string id: string node_id: string - owner?: t_simple_user + owner?: t_simple_user | undefined public: boolean - truncated?: boolean + truncated?: boolean | undefined updated_at: string url: string user: t_nullable_simple_user } export type t_basic_error = { - documentation_url?: string - message?: string - status?: string - url?: string + documentation_url?: string | undefined + message?: string | undefined + status?: string | undefined + url?: string | undefined } export type t_billing_usage_report = { - usageItems?: { - date: string - discountAmount: number - grossAmount: number - netAmount: number - organizationName: string - pricePerUnit: number - product: string - quantity: number - repositoryName?: string - sku: string - unitType: string - }[] + usageItems?: + | { + date: string + discountAmount: number + grossAmount: number + netAmount: number + organizationName: string + pricePerUnit: number + product: string + quantity: number + repositoryName?: string | undefined + sku: string + unitType: string + }[] + | undefined } export type t_blob = { content: string encoding: string - highlighted_content?: string + highlighted_content?: string | undefined node_id: string sha: string size: number | null @@ -457,125 +473,147 @@ export type t_blob = { } export type t_branch_protection = { - allow_deletions?: { - enabled?: boolean - } - allow_force_pushes?: { - enabled?: boolean - } - allow_fork_syncing?: { - enabled?: boolean - } - block_creations?: { - enabled?: boolean - } - enabled?: boolean - enforce_admins?: t_protected_branch_admin_enforced - lock_branch?: { - enabled?: boolean - } - name?: string - protection_url?: string - required_conversation_resolution?: { - enabled?: boolean - } - required_linear_history?: { - enabled?: boolean - } - required_pull_request_reviews?: t_protected_branch_pull_request_review - required_signatures?: { - enabled: boolean - url: string - } - required_status_checks?: t_protected_branch_required_status_check - restrictions?: t_branch_restriction_policy - url?: string + allow_deletions?: + | { + enabled?: boolean | undefined + } + | undefined + allow_force_pushes?: + | { + enabled?: boolean | undefined + } + | undefined + allow_fork_syncing?: + | { + enabled?: boolean | undefined + } + | undefined + block_creations?: + | { + enabled?: boolean | undefined + } + | undefined + enabled?: boolean | undefined + enforce_admins?: t_protected_branch_admin_enforced | undefined + lock_branch?: + | { + enabled?: boolean | undefined + } + | undefined + name?: string | undefined + protection_url?: string | undefined + required_conversation_resolution?: + | { + enabled?: boolean | undefined + } + | undefined + required_linear_history?: + | { + enabled?: boolean | undefined + } + | undefined + required_pull_request_reviews?: + | t_protected_branch_pull_request_review + | undefined + required_signatures?: + | { + enabled: boolean + url: string + } + | undefined + required_status_checks?: t_protected_branch_required_status_check | undefined + restrictions?: t_branch_restriction_policy | undefined + url?: string | undefined } export type t_branch_restriction_policy = { apps: { - client_id?: string - created_at?: string - description?: string - events?: string[] - external_url?: string - html_url?: string - id?: number - name?: string - node_id?: string - owner?: { - avatar_url?: string - description?: string - events_url?: string - followers_url?: string - following_url?: string - gists_url?: string - gravatar_id?: string - hooks_url?: string - html_url?: string - id?: number - issues_url?: string - login?: string - members_url?: string - node_id?: string - organizations_url?: string - public_members_url?: string - received_events_url?: string - repos_url?: string - site_admin?: boolean - starred_url?: string - subscriptions_url?: string - type?: string - url?: string - user_view_type?: string - } - permissions?: { - contents?: string - issues?: string - metadata?: string - single_file?: string - } - slug?: string - updated_at?: string + client_id?: string | undefined + created_at?: string | undefined + description?: string | undefined + events?: string[] | undefined + external_url?: string | undefined + html_url?: string | undefined + id?: number | undefined + name?: string | undefined + node_id?: string | undefined + owner?: + | { + avatar_url?: string | undefined + description?: string | undefined + events_url?: string | undefined + followers_url?: string | undefined + following_url?: string | undefined + gists_url?: string | undefined + gravatar_id?: string | undefined + hooks_url?: string | undefined + html_url?: string | undefined + id?: number | undefined + issues_url?: string | undefined + login?: string | undefined + members_url?: string | undefined + node_id?: string | undefined + organizations_url?: string | undefined + public_members_url?: string | undefined + received_events_url?: string | undefined + repos_url?: string | undefined + site_admin?: boolean | undefined + starred_url?: string | undefined + subscriptions_url?: string | undefined + type?: string | undefined + url?: string | undefined + user_view_type?: string | undefined + } + | undefined + permissions?: + | { + contents?: string | undefined + issues?: string | undefined + metadata?: string | undefined + single_file?: string | undefined + } + | undefined + slug?: string | undefined + updated_at?: string | undefined }[] apps_url: string teams: { - description?: string | null - html_url?: string - id?: number - members_url?: string - name?: string - node_id?: string - notification_setting?: string - parent?: string | null - permission?: string - privacy?: string - repositories_url?: string - slug?: string - url?: string + description?: (string | null) | undefined + html_url?: string | undefined + id?: number | undefined + members_url?: string | undefined + name?: string | undefined + node_id?: string | undefined + notification_setting?: string | undefined + parent?: (string | null) | undefined + permission?: string | undefined + privacy?: string | undefined + repositories_url?: string | undefined + slug?: string | undefined + url?: string | undefined }[] teams_url: string url: string users: { - avatar_url?: string - events_url?: string - followers_url?: string - following_url?: string - gists_url?: string - gravatar_id?: string - html_url?: string - id?: number - login?: string - node_id?: string - organizations_url?: string - received_events_url?: string - repos_url?: string - site_admin?: boolean - starred_url?: string - subscriptions_url?: string - type?: string - url?: string - user_view_type?: string + avatar_url?: string | undefined + events_url?: string | undefined + followers_url?: string | undefined + following_url?: string | undefined + gists_url?: string | undefined + gravatar_id?: string | undefined + html_url?: string | undefined + id?: number | undefined + login?: string | undefined + node_id?: string | undefined + organizations_url?: string | undefined + received_events_url?: string | undefined + repos_url?: string | undefined + site_admin?: boolean | undefined + starred_url?: string | undefined + subscriptions_url?: string | undefined + type?: string | undefined + url?: string | undefined + user_view_type?: string | undefined }[] users_url: string } @@ -596,11 +634,11 @@ export type t_branch_with_protection = { } commit: t_commit name: string - pattern?: string + pattern?: string | undefined protected: boolean protection: t_branch_protection protection_url: string - required_approving_review_count?: number + required_approving_review_count?: number | undefined } export type t_check_annotation = { @@ -636,7 +674,7 @@ export type t_check_run = { | "timed_out" | "action_required" | null - deployment?: t_deployment_simple + deployment?: t_deployment_simple | undefined details_url: string | null external_id: string | null head_sha: string @@ -688,8 +726,8 @@ export type t_check_suite = { node_id: string pull_requests: t_pull_request_minimal[] | null repository: t_minimal_repository - rerequestable?: boolean - runs_rerequestable?: boolean + rerequestable?: boolean | undefined + runs_rerequestable?: boolean | undefined status: | "queued" | "in_progress" @@ -704,10 +742,12 @@ export type t_check_suite = { export type t_check_suite_preference = { preferences: { - auto_trigger_checks?: { - app_id: number - setting: boolean - }[] + auto_trigger_checks?: + | { + app_id: number + setting: boolean + }[] + | undefined } repository: t_minimal_repository } @@ -757,7 +797,7 @@ export type t_classroom_assignment_grade = { assignment_name: string assignment_url: string github_username: string - group_name?: string + group_name?: string | undefined points_available: number points_awarded: number roster_identifier: string @@ -776,7 +816,7 @@ export type t_clone_traffic = { export type t_code_frequency_stat = number[] export type t_code_of_conduct = { - body?: string + body?: string | undefined html_url: string | null key: string name: string @@ -794,9 +834,9 @@ export type t_code_scanning_alert = { created_at: t_alert_created_at dismissed_at: t_alert_dismissed_at dismissed_by: t_nullable_simple_user - dismissed_comment?: t_code_scanning_alert_dismissed_comment + dismissed_comment?: t_code_scanning_alert_dismissed_comment | undefined dismissed_reason: t_code_scanning_alert_dismissed_reason - fixed_at?: t_alert_fixed_at + fixed_at?: t_alert_fixed_at | undefined html_url: t_alert_html_url instances_url: t_alert_instances_url most_recent_instance: t_code_scanning_alert_instance @@ -804,7 +844,7 @@ export type t_code_scanning_alert = { rule: t_code_scanning_alert_rule state: t_code_scanning_alert_state tool: t_code_scanning_analysis_tool - updated_at?: t_alert_updated_at + updated_at?: t_alert_updated_at | undefined url: t_alert_url } @@ -826,27 +866,29 @@ export type t_code_scanning_alert_dismissed_reason = export type t_code_scanning_alert_environment = string export type t_code_scanning_alert_instance = { - analysis_key?: t_code_scanning_analysis_analysis_key - category?: t_code_scanning_analysis_category - classifications?: t_code_scanning_alert_classification[] - commit_sha?: string - environment?: t_code_scanning_alert_environment - html_url?: string - location?: t_code_scanning_alert_location - message?: { - text?: string - } - ref?: t_code_scanning_ref - state?: t_code_scanning_alert_state + analysis_key?: t_code_scanning_analysis_analysis_key | undefined + category?: t_code_scanning_analysis_category | undefined + classifications?: t_code_scanning_alert_classification[] | undefined + commit_sha?: string | undefined + environment?: t_code_scanning_alert_environment | undefined + html_url?: string | undefined + location?: t_code_scanning_alert_location | undefined + message?: + | { + text?: string | undefined + } + | undefined + ref?: t_code_scanning_ref | undefined + state?: t_code_scanning_alert_state | undefined } export type t_code_scanning_alert_items = { created_at: t_alert_created_at dismissed_at: t_alert_dismissed_at dismissed_by: t_nullable_simple_user - dismissed_comment?: t_code_scanning_alert_dismissed_comment + dismissed_comment?: t_code_scanning_alert_dismissed_comment | undefined dismissed_reason: t_code_scanning_alert_dismissed_reason - fixed_at?: t_alert_fixed_at + fixed_at?: t_alert_fixed_at | undefined html_url: t_alert_html_url instances_url: t_alert_instances_url most_recent_instance: t_code_scanning_alert_instance @@ -854,40 +896,44 @@ export type t_code_scanning_alert_items = { rule: t_code_scanning_alert_rule_summary state: t_code_scanning_alert_state tool: t_code_scanning_analysis_tool - updated_at?: t_alert_updated_at + updated_at?: t_alert_updated_at | undefined url: t_alert_url } export type t_code_scanning_alert_location = { - end_column?: number - end_line?: number - path?: string - start_column?: number - start_line?: number + end_column?: number | undefined + end_line?: number | undefined + path?: string | undefined + start_column?: number | undefined + start_line?: number | undefined } export type t_code_scanning_alert_rule = { - description?: string - full_description?: string - help?: string | null - help_uri?: string | null - id?: string | null - name?: string - security_severity_level?: "low" | "medium" | "high" | "critical" | null - severity?: "none" | "note" | "warning" | "error" | null - tags?: string[] | null + description?: string | undefined + full_description?: string | undefined + help?: (string | null) | undefined + help_uri?: (string | null) | undefined + id?: (string | null) | undefined + name?: string | undefined + security_severity_level?: + | ("low" | "medium" | "high" | "critical" | null) + | undefined + severity?: ("none" | "note" | "warning" | "error" | null) | undefined + tags?: (string[] | null) | undefined } export type t_code_scanning_alert_rule_summary = { - description?: string - full_description?: string - help?: string | null - help_uri?: string | null - id?: string | null - name?: string - security_severity_level?: "low" | "medium" | "high" | "critical" | null - severity?: "none" | "note" | "warning" | "error" | null - tags?: string[] | null + description?: string | undefined + full_description?: string | undefined + help?: (string | null) | undefined + help_uri?: (string | null) | undefined + id?: (string | null) | undefined + name?: string | undefined + security_severity_level?: + | ("low" | "medium" | "high" | "critical" | null) + | undefined + severity?: ("none" | "note" | "warning" | "error" | null) | undefined + tags?: (string[] | null) | undefined } export type t_code_scanning_alert_set_state = "open" | "dismissed" @@ -911,7 +957,7 @@ export type t_code_scanning_alert_state_query = export type t_code_scanning_analysis = { analysis_key: t_code_scanning_analysis_analysis_key - category?: t_code_scanning_analysis_category + category?: t_code_scanning_analysis_category | undefined commit_sha: t_code_scanning_analysis_commit_sha created_at: t_code_scanning_analysis_created_at deletable: boolean @@ -947,9 +993,9 @@ export type t_code_scanning_analysis_sarif_file = string export type t_code_scanning_analysis_sarif_id = string export type t_code_scanning_analysis_tool = { - guid?: t_code_scanning_analysis_tool_guid - name?: t_code_scanning_analysis_tool_name - version?: t_code_scanning_analysis_tool_version + guid?: t_code_scanning_analysis_tool_guid | undefined + name?: t_code_scanning_analysis_tool_name | undefined + version?: t_code_scanning_analysis_tool_version | undefined } export type t_code_scanning_analysis_tool_guid = string | null @@ -961,7 +1007,7 @@ export type t_code_scanning_analysis_tool_version = string | null export type t_code_scanning_analysis_url = string export type t_code_scanning_codeql_database = { - commit_oid?: string | null + commit_oid?: (string | null) | undefined content_type: string created_at: string id: number @@ -974,58 +1020,62 @@ export type t_code_scanning_codeql_database = { } export type t_code_scanning_default_setup = { - languages?: ( - | "c-cpp" - | "csharp" - | "go" - | "java-kotlin" - | "javascript-typescript" - | "javascript" - | "python" - | "ruby" - | "typescript" - | "swift" - )[] - query_suite?: "default" | "extended" - schedule?: "weekly" | null - state?: "configured" | "not-configured" - updated_at?: string | null + languages?: + | ( + | "c-cpp" + | "csharp" + | "go" + | "java-kotlin" + | "javascript-typescript" + | "javascript" + | "python" + | "ruby" + | "typescript" + | "swift" + )[] + | undefined + query_suite?: ("default" | "extended") | undefined + schedule?: ("weekly" | null) | undefined + state?: ("configured" | "not-configured") | undefined + updated_at?: (string | null) | undefined } export type t_code_scanning_default_setup_options = { - runner_label?: string | null - runner_type?: "standard" | "labeled" | "not_set" + runner_label?: (string | null) | undefined + runner_type?: ("standard" | "labeled" | "not_set") | undefined } | null export type t_code_scanning_default_setup_update = { - languages?: ( - | "c-cpp" - | "csharp" - | "go" - | "java-kotlin" - | "javascript-typescript" - | "python" - | "ruby" - | "swift" - )[] - query_suite?: "default" | "extended" - runner_label?: string | null - runner_type?: "standard" | "labeled" - state?: "configured" | "not-configured" + languages?: + | ( + | "c-cpp" + | "csharp" + | "go" + | "java-kotlin" + | "javascript-typescript" + | "python" + | "ruby" + | "swift" + )[] + | undefined + query_suite?: ("default" | "extended") | undefined + runner_label?: (string | null) | undefined + runner_type?: ("standard" | "labeled") | undefined + state?: ("configured" | "not-configured") | undefined } export type t_code_scanning_default_setup_update_response = { - run_id?: number - run_url?: string + run_id?: number | undefined + run_url?: string | undefined } export type t_code_scanning_organization_alert_items = { created_at: t_alert_created_at dismissed_at: t_alert_dismissed_at dismissed_by: t_nullable_simple_user - dismissed_comment?: t_code_scanning_alert_dismissed_comment + dismissed_comment?: t_code_scanning_alert_dismissed_comment | undefined dismissed_reason: t_code_scanning_alert_dismissed_reason - fixed_at?: t_alert_fixed_at + fixed_at?: t_alert_fixed_at | undefined html_url: t_alert_html_url instances_url: t_alert_instances_url most_recent_instance: t_code_scanning_alert_instance @@ -1034,7 +1084,7 @@ export type t_code_scanning_organization_alert_items = { rule: t_code_scanning_alert_rule_summary state: t_code_scanning_alert_state tool: t_code_scanning_analysis_tool - updated_at?: t_alert_updated_at + updated_at?: t_alert_updated_at | undefined url: t_alert_url } @@ -1043,47 +1093,50 @@ export type t_code_scanning_ref = string export type t_code_scanning_ref_full = string export type t_code_scanning_sarifs_receipt = { - id?: t_code_scanning_analysis_sarif_id - readonly url?: string + id?: t_code_scanning_analysis_sarif_id | undefined + readonly url?: string | undefined } export type t_code_scanning_sarifs_status = { - readonly analyses_url?: string | null - readonly errors?: string[] | null - processing_status?: "pending" | "complete" | "failed" + readonly analyses_url?: (string | null) | undefined + readonly errors?: (string[] | null) | undefined + processing_status?: ("pending" | "complete" | "failed") | undefined } export type t_code_scanning_variant_analysis = { - actions_workflow_run_id?: number + actions_workflow_run_id?: number | undefined actor: t_simple_user - completed_at?: string | null + completed_at?: (string | null) | undefined controller_repo: t_simple_repository - created_at?: string + created_at?: string | undefined failure_reason?: - | "no_repos_queried" - | "actions_workflow_run_failed" - | "internal_error" + | ("no_repos_queried" | "actions_workflow_run_failed" | "internal_error") + | undefined id: number query_language: t_code_scanning_variant_analysis_language query_pack_url: string - scanned_repositories?: { - analysis_status: t_code_scanning_variant_analysis_status - artifact_size_in_bytes?: number - failure_message?: string - repository: t_code_scanning_variant_analysis_repository - result_count?: number - }[] - skipped_repositories?: { - access_mismatch_repos: t_code_scanning_variant_analysis_skipped_repo_group - no_codeql_db_repos: t_code_scanning_variant_analysis_skipped_repo_group - not_found_repos: { - repository_count: number - repository_full_names: string[] - } - over_limit_repos: t_code_scanning_variant_analysis_skipped_repo_group - } + scanned_repositories?: + | { + analysis_status: t_code_scanning_variant_analysis_status + artifact_size_in_bytes?: number | undefined + failure_message?: string | undefined + repository: t_code_scanning_variant_analysis_repository + result_count?: number | undefined + }[] + | undefined + skipped_repositories?: + | { + access_mismatch_repos: t_code_scanning_variant_analysis_skipped_repo_group + no_codeql_db_repos: t_code_scanning_variant_analysis_skipped_repo_group + not_found_repos: { + repository_count: number + repository_full_names: string[] + } + over_limit_repos: t_code_scanning_variant_analysis_skipped_repo_group + } + | undefined status: "in_progress" | "succeeded" | "failed" | "cancelled" - updated_at?: string + updated_at?: string | undefined } export type t_code_scanning_variant_analysis_language = @@ -1098,13 +1151,13 @@ export type t_code_scanning_variant_analysis_language = export type t_code_scanning_variant_analysis_repo_task = { analysis_status: t_code_scanning_variant_analysis_status - artifact_size_in_bytes?: number - artifact_url?: string - database_commit_sha?: string - failure_message?: string + artifact_size_in_bytes?: number | undefined + artifact_url?: string | undefined + database_commit_sha?: string | undefined + failure_message?: string | undefined repository: t_simple_repository - result_count?: number - source_location_prefix?: string + result_count?: number | undefined + source_location_prefix?: string | undefined } export type t_code_scanning_variant_analysis_repository = { @@ -1130,87 +1183,113 @@ export type t_code_scanning_variant_analysis_status = | "timed_out" export type t_code_search_result_item = { - file_size?: number + file_size?: number | undefined git_url: string html_url: string - language?: string | null - last_modified_at?: string - line_numbers?: string[] + language?: (string | null) | undefined + last_modified_at?: string | undefined + line_numbers?: string[] | undefined name: string path: string repository: t_minimal_repository score: number sha: string - text_matches?: t_search_result_text_matches + text_matches?: t_search_result_text_matches | undefined url: string } export type t_code_security_configuration = { - advanced_security?: "enabled" | "disabled" - code_scanning_default_setup?: "enabled" | "disabled" | "not_set" - code_scanning_default_setup_options?: { - runner_label?: string | null - runner_type?: "standard" | "labeled" | "not_set" | null - } | null - created_at?: string - dependabot_alerts?: "enabled" | "disabled" | "not_set" - dependabot_security_updates?: "enabled" | "disabled" | "not_set" - dependency_graph?: "enabled" | "disabled" | "not_set" - dependency_graph_autosubmit_action?: "enabled" | "disabled" | "not_set" - dependency_graph_autosubmit_action_options?: { - labeled_runners?: boolean - } - description?: string - enforcement?: "enforced" | "unenforced" - html_url?: string - id?: number - name?: string - private_vulnerability_reporting?: "enabled" | "disabled" | "not_set" - secret_scanning?: "enabled" | "disabled" | "not_set" - secret_scanning_delegated_bypass?: "enabled" | "disabled" | "not_set" - secret_scanning_delegated_bypass_options?: { - reviewers?: { - reviewer_id: number - reviewer_type: "TEAM" | "ROLE" - }[] - } - secret_scanning_non_provider_patterns?: "enabled" | "disabled" | "not_set" - secret_scanning_push_protection?: "enabled" | "disabled" | "not_set" - secret_scanning_validity_checks?: "enabled" | "disabled" | "not_set" - target_type?: "global" | "organization" | "enterprise" - updated_at?: string - url?: string + advanced_security?: ("enabled" | "disabled") | undefined + code_scanning_default_setup?: ("enabled" | "disabled" | "not_set") | undefined + code_scanning_default_setup_options?: + | ({ + runner_label?: (string | null) | undefined + runner_type?: ("standard" | "labeled" | "not_set" | null) | undefined + } | null) + | undefined + created_at?: string | undefined + dependabot_alerts?: ("enabled" | "disabled" | "not_set") | undefined + dependabot_security_updates?: ("enabled" | "disabled" | "not_set") | undefined + dependency_graph?: ("enabled" | "disabled" | "not_set") | undefined + dependency_graph_autosubmit_action?: + | ("enabled" | "disabled" | "not_set") + | undefined + dependency_graph_autosubmit_action_options?: + | { + labeled_runners?: boolean | undefined + } + | undefined + description?: string | undefined + enforcement?: ("enforced" | "unenforced") | undefined + html_url?: string | undefined + id?: number | undefined + name?: string | undefined + private_vulnerability_reporting?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning?: ("enabled" | "disabled" | "not_set") | undefined + secret_scanning_delegated_bypass?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_delegated_bypass_options?: + | { + reviewers?: + | { + reviewer_id: number + reviewer_type: "TEAM" | "ROLE" + }[] + | undefined + } + | undefined + secret_scanning_non_provider_patterns?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_push_protection?: + | ("enabled" | "disabled" | "not_set") + | undefined + secret_scanning_validity_checks?: + | ("enabled" | "disabled" | "not_set") + | undefined + target_type?: ("global" | "organization" | "enterprise") | undefined + updated_at?: string | undefined + url?: string | undefined } export type t_code_security_configuration_for_repository = { - configuration?: t_code_security_configuration + configuration?: t_code_security_configuration | undefined status?: - | "attached" - | "attaching" - | "detached" - | "removed" - | "enforced" - | "failed" - | "updating" - | "removed_by_enterprise" + | ( + | "attached" + | "attaching" + | "detached" + | "removed" + | "enforced" + | "failed" + | "updating" + | "removed_by_enterprise" + ) + | undefined } export type t_code_security_configuration_repositories = { - repository?: t_simple_repository + repository?: t_simple_repository | undefined status?: - | "attached" - | "attaching" - | "detached" - | "removed" - | "enforced" - | "failed" - | "updating" - | "removed_by_enterprise" + | ( + | "attached" + | "attaching" + | "detached" + | "removed" + | "enforced" + | "failed" + | "updating" + | "removed_by_enterprise" + ) + | undefined } export type t_code_security_default_configurations = { - configuration?: t_code_security_configuration - default_for_new_repos?: EmptyObject + configuration?: t_code_security_configuration | undefined + default_for_new_repos?: EmptyObject | undefined }[] export type t_codeowners_errors = { @@ -1220,46 +1299,48 @@ export type t_codeowners_errors = { line: number message: string path: string - source?: string - suggestion?: string | null + source?: string | undefined + suggestion?: (string | null) | undefined }[] } export type t_codespace = { billable_owner: t_simple_user created_at: string - devcontainer_path?: string | null - display_name?: string | null + devcontainer_path?: (string | null) | undefined + display_name?: (string | null) | undefined environment_id: string | null git_status: { - ahead?: number - behind?: number - has_uncommitted_changes?: boolean - has_unpushed_changes?: boolean - ref?: string + ahead?: number | undefined + behind?: number | undefined + has_uncommitted_changes?: boolean | undefined + has_unpushed_changes?: boolean | undefined + ref?: string | undefined } id: number idle_timeout_minutes: number | null - idle_timeout_notice?: string | null - last_known_stop_notice?: string | null + idle_timeout_notice?: (string | null) | undefined + last_known_stop_notice?: (string | null) | undefined last_used_at: string location: "EastUs" | "SouthEastAsia" | "WestEurope" | "WestUs2" machine: t_nullable_codespace_machine machines_url: string name: string owner: t_simple_user - pending_operation?: boolean | null - pending_operation_disabled_reason?: string | null + pending_operation?: (boolean | null) | undefined + pending_operation_disabled_reason?: (string | null) | undefined prebuild: boolean | null - publish_url?: string | null + publish_url?: (string | null) | undefined pulls_url: string | null recent_folders: string[] repository: t_minimal_repository - retention_expires_at?: string | null - retention_period_minutes?: number | null - runtime_constraints?: { - allowed_port_privacy_settings?: string[] | null - } + retention_expires_at?: (string | null) | undefined + retention_period_minutes?: (number | null) | undefined + runtime_constraints?: + | { + allowed_port_privacy_settings?: (string[] | null) | undefined + } + | undefined start_url: string state: | "Unknown" @@ -1286,13 +1367,13 @@ export type t_codespace = { } export type t_codespace_export_details = { - branch?: string | null - completed_at?: string | null - export_url?: string - html_url?: string | null - id?: string - sha?: string | null - state?: string | null + branch?: (string | null) | undefined + completed_at?: (string | null) | undefined + export_url?: string | undefined + html_url?: (string | null) | undefined + id?: string | undefined + sha?: (string | null) | undefined + state?: (string | null) | undefined } export type t_codespace_machine = { @@ -1308,37 +1389,39 @@ export type t_codespace_machine = { export type t_codespace_with_full_repository = { billable_owner: t_simple_user created_at: string - devcontainer_path?: string | null - display_name?: string | null + devcontainer_path?: (string | null) | undefined + display_name?: (string | null) | undefined environment_id: string | null git_status: { - ahead?: number - behind?: number - has_uncommitted_changes?: boolean - has_unpushed_changes?: boolean - ref?: string + ahead?: number | undefined + behind?: number | undefined + has_uncommitted_changes?: boolean | undefined + has_unpushed_changes?: boolean | undefined + ref?: string | undefined } id: number idle_timeout_minutes: number | null - idle_timeout_notice?: string | null + idle_timeout_notice?: (string | null) | undefined last_used_at: string location: "EastUs" | "SouthEastAsia" | "WestEurope" | "WestUs2" machine: t_nullable_codespace_machine machines_url: string name: string owner: t_simple_user - pending_operation?: boolean | null - pending_operation_disabled_reason?: string | null + pending_operation?: (boolean | null) | undefined + pending_operation_disabled_reason?: (string | null) | undefined prebuild: boolean | null - publish_url?: string | null + publish_url?: (string | null) | undefined pulls_url: string | null recent_folders: string[] repository: t_full_repository - retention_expires_at?: string | null - retention_period_minutes?: number | null - runtime_constraints?: { - allowed_port_privacy_settings?: string[] | null - } + retention_expires_at?: (string | null) | undefined + retention_period_minutes?: (number | null) | undefined + runtime_constraints?: + | { + allowed_port_privacy_settings?: (string[] | null) | undefined + } + | undefined start_url: string state: | "Unknown" @@ -1367,7 +1450,7 @@ export type t_codespace_with_full_repository = { export type t_codespaces_org_secret = { created_at: string name: string - selected_repositories_url?: string + selected_repositories_url?: string | undefined updated_at: string visibility: "all" | "private" | "selected" } @@ -1377,12 +1460,12 @@ export type t_codespaces_permissions_check_for_devcontainer = { } export type t_codespaces_public_key = { - created_at?: string - id?: number + created_at?: string | undefined + id?: number | undefined key: string key_id: string - title?: string - url?: string + title?: string | undefined + url?: string | undefined } export type t_codespaces_secret = { @@ -1400,7 +1483,7 @@ export type t_codespaces_user_public_key = { export type t_collaborator = { avatar_url: string - email?: string | null + email?: (string | null) | undefined events_url: string followers_url: string following_url: string @@ -1409,16 +1492,18 @@ export type t_collaborator = { html_url: string id: number login: string - name?: string | null + name?: (string | null) | undefined node_id: string organizations_url: string - permissions?: { - admin: boolean - maintain?: boolean - pull: boolean - push: boolean - triage?: boolean - } + permissions?: + | { + admin: boolean + maintain?: boolean | undefined + pull: boolean + push: boolean + triage?: boolean | undefined + } + | undefined received_events_url: string repos_url: string role_name: string @@ -1427,7 +1512,7 @@ export type t_collaborator = { subscriptions_url: string type: string url: string - user_view_type?: string + user_view_type?: string | undefined } export type t_combined_billing_usage = { @@ -1459,23 +1544,25 @@ export type t_commit = { url: string } url: string - verification?: t_verification + verification?: t_verification | undefined } committer: t_simple_user | t_empty_object | null - files?: t_diff_entry[] + files?: t_diff_entry[] | undefined html_url: string node_id: string parents: { - html_url?: string + html_url?: string | undefined sha: string url: string }[] sha: string - stats?: { - additions?: number - deletions?: number - total?: number - } + stats?: + | { + additions?: number | undefined + deletions?: number | undefined + total?: number | undefined + } + | undefined url: string } @@ -1496,7 +1583,7 @@ export type t_commit_comment = { node_id: string path: string | null position: number | null - reactions?: t_reaction_rollup + reactions?: t_reaction_rollup | undefined updated_at: string url: string user: t_nullable_simple_user @@ -1508,7 +1595,7 @@ export type t_commit_comparison = { behind_by: number commits: t_commit[] diff_url: string - files?: t_diff_entry[] + files?: t_diff_entry[] | undefined html_url: string merge_base_commit: t_commit patch_url: string @@ -1535,25 +1622,25 @@ export type t_commit_search_result_item = { url: string } url: string - verification?: t_verification + verification?: t_verification | undefined } committer: t_nullable_git_user html_url: string node_id: string parents: { - html_url?: string - sha?: string - url?: string + html_url?: string | undefined + sha?: string | undefined + url?: string | undefined }[] repository: t_minimal_repository score: number sha: string - text_matches?: t_search_result_text_matches + text_matches?: t_search_result_text_matches | undefined url: string } export type t_community_profile = { - content_reports_enabled?: boolean + content_reports_enabled?: boolean | undefined description: string | null documentation: string | null files: { @@ -1575,7 +1662,7 @@ export type t_content_directory = { html: string | null self: string } - content?: string + content?: string | undefined download_url: string | null git_url: string | null html_url: string | null @@ -1602,8 +1689,8 @@ export type t_content_file = { path: string sha: string size: number - submodule_git_url?: string - target?: string + submodule_git_url?: string | undefined + target?: string | undefined type: "file" url: string } @@ -1652,38 +1739,38 @@ export type t_content_traffic = { } export type t_contributor = { - avatar_url?: string + avatar_url?: string | undefined contributions: number - email?: string - events_url?: string - followers_url?: string - following_url?: string - gists_url?: string - gravatar_id?: string | null - html_url?: string - id?: number - login?: string - name?: string - node_id?: string - organizations_url?: string - received_events_url?: string - repos_url?: string - site_admin?: boolean - starred_url?: string - subscriptions_url?: string + email?: string | undefined + events_url?: string | undefined + followers_url?: string | undefined + following_url?: string | undefined + gists_url?: string | undefined + gravatar_id?: (string | null) | undefined + html_url?: string | undefined + id?: number | undefined + login?: string | undefined + name?: string | undefined + node_id?: string | undefined + organizations_url?: string | undefined + received_events_url?: string | undefined + repos_url?: string | undefined + site_admin?: boolean | undefined + starred_url?: string | undefined + subscriptions_url?: string | undefined type: string - url?: string - user_view_type?: string + url?: string | undefined + user_view_type?: string | undefined } export type t_contributor_activity = { author: t_nullable_simple_user total: number weeks: { - a?: number - c?: number - d?: number - w?: number + a?: number | undefined + c?: number | undefined + d?: number | undefined + w?: number | undefined }[] } @@ -1696,96 +1783,116 @@ export type t_converted_note_to_issue_issue_event = { id: number node_id: string performed_via_github_app: t_integration - project_card?: { - column_name: string - id: number - previous_column_name?: string - project_id: number - project_url: string - url: string - } + project_card?: + | { + column_name: string + id: number + previous_column_name?: string | undefined + project_id: number + project_url: string + url: string + } + | undefined url: string } export type t_copilot_dotcom_chat = { - models?: { - custom_model_training_date?: string | null - is_custom_model?: boolean - name?: string - total_chats?: number - total_engaged_users?: number - }[] - total_engaged_users?: number + models?: + | { + custom_model_training_date?: (string | null) | undefined + is_custom_model?: boolean | undefined + name?: string | undefined + total_chats?: number | undefined + total_engaged_users?: number | undefined + }[] + | undefined + total_engaged_users?: number | undefined [key: string]: unknown | undefined } | null export type t_copilot_dotcom_pull_requests = { - repositories?: { - models?: { - custom_model_training_date?: string | null - is_custom_model?: boolean - name?: string - total_engaged_users?: number - total_pr_summaries_created?: number - }[] - name?: string - total_engaged_users?: number - }[] - total_engaged_users?: number + repositories?: + | { + models?: + | { + custom_model_training_date?: (string | null) | undefined + is_custom_model?: boolean | undefined + name?: string | undefined + total_engaged_users?: number | undefined + total_pr_summaries_created?: number | undefined + }[] + | undefined + name?: string | undefined + total_engaged_users?: number | undefined + }[] + | undefined + total_engaged_users?: number | undefined [key: string]: unknown | undefined } | null export type t_copilot_ide_chat = { - editors?: { - models?: { - custom_model_training_date?: string | null - is_custom_model?: boolean - name?: string - total_chat_copy_events?: number - total_chat_insertion_events?: number - total_chats?: number - total_engaged_users?: number - }[] - name?: string - total_engaged_users?: number - }[] - total_engaged_users?: number + editors?: + | { + models?: + | { + custom_model_training_date?: (string | null) | undefined + is_custom_model?: boolean | undefined + name?: string | undefined + total_chat_copy_events?: number | undefined + total_chat_insertion_events?: number | undefined + total_chats?: number | undefined + total_engaged_users?: number | undefined + }[] + | undefined + name?: string | undefined + total_engaged_users?: number | undefined + }[] + | undefined + total_engaged_users?: number | undefined [key: string]: unknown | undefined } | null export type t_copilot_ide_code_completions = { - editors?: { - models?: { - custom_model_training_date?: string | null - is_custom_model?: boolean - languages?: { - name?: string - total_code_acceptances?: number - total_code_lines_accepted?: number - total_code_lines_suggested?: number - total_code_suggestions?: number - total_engaged_users?: number + editors?: + | { + models?: + | { + custom_model_training_date?: (string | null) | undefined + is_custom_model?: boolean | undefined + languages?: + | { + name?: string | undefined + total_code_acceptances?: number | undefined + total_code_lines_accepted?: number | undefined + total_code_lines_suggested?: number | undefined + total_code_suggestions?: number | undefined + total_engaged_users?: number | undefined + }[] + | undefined + name?: string | undefined + total_engaged_users?: number | undefined + }[] + | undefined + name?: string | undefined + total_engaged_users?: number | undefined + [key: string]: unknown | undefined }[] - name?: string - total_engaged_users?: number - }[] - name?: string - total_engaged_users?: number - [key: string]: unknown | undefined - }[] - languages?: { - name?: string - total_engaged_users?: number - }[] - total_engaged_users?: number + | undefined + languages?: + | { + name?: string | undefined + total_engaged_users?: number | undefined + }[] + | undefined + total_engaged_users?: number | undefined [key: string]: unknown | undefined } | null export type t_copilot_organization_details = { - cli?: "enabled" | "disabled" | "unconfigured" - ide_chat?: "enabled" | "disabled" | "unconfigured" - plan_type?: "business" | "enterprise" | "unknown" - platform_chat?: "enabled" | "disabled" | "unconfigured" + cli?: ("enabled" | "disabled" | "unconfigured") | undefined + ide_chat?: ("enabled" | "disabled" | "unconfigured") | undefined + plan_type?: ("business" | "enterprise" | "unknown") | undefined + platform_chat?: ("enabled" | "disabled" | "unconfigured") | undefined public_code_suggestions: "allow" | "block" | "unconfigured" | "unknown" seat_breakdown: t_copilot_seat_breakdown seat_management_setting: @@ -1797,58 +1904,58 @@ export type t_copilot_organization_details = { } export type t_copilot_seat_breakdown = { - active_this_cycle?: number - added_this_cycle?: number - inactive_this_cycle?: number - pending_cancellation?: number - pending_invitation?: number - total?: number + active_this_cycle?: number | undefined + added_this_cycle?: number | undefined + inactive_this_cycle?: number | undefined + pending_cancellation?: number | undefined + pending_invitation?: number | undefined + total?: number | undefined } export type t_copilot_seat_details = { assignee: t_simple_user - assigning_team?: t_team | t_enterprise_team | null + assigning_team?: (t_team | t_enterprise_team | null) | undefined created_at: string - last_activity_at?: string | null - last_activity_editor?: string | null - organization?: t_nullable_organization_simple - pending_cancellation_date?: string | null - plan_type?: "business" | "enterprise" | "unknown" - updated_at?: string + last_activity_at?: (string | null) | undefined + last_activity_editor?: (string | null) | undefined + organization?: t_nullable_organization_simple | undefined + pending_cancellation_date?: (string | null) | undefined + plan_type?: ("business" | "enterprise" | "unknown") | undefined + updated_at?: string | undefined } export type t_copilot_usage_metrics = { breakdown: | { - acceptances_count?: number - active_users?: number - editor?: string - language?: string - lines_accepted?: number - lines_suggested?: number - suggestions_count?: number + acceptances_count?: number | undefined + active_users?: number | undefined + editor?: string | undefined + language?: string | undefined + lines_accepted?: number | undefined + lines_suggested?: number | undefined + suggestions_count?: number | undefined [key: string]: unknown | undefined }[] | null day: string - total_acceptances_count?: number - total_active_chat_users?: number - total_active_users?: number - total_chat_acceptances?: number - total_chat_turns?: number - total_lines_accepted?: number - total_lines_suggested?: number - total_suggestions_count?: number + total_acceptances_count?: number | undefined + total_active_chat_users?: number | undefined + total_active_users?: number | undefined + total_chat_acceptances?: number | undefined + total_chat_turns?: number | undefined + total_lines_accepted?: number | undefined + total_lines_suggested?: number | undefined + total_suggestions_count?: number | undefined } export type t_copilot_usage_metrics_day = { - copilot_dotcom_chat?: t_copilot_dotcom_chat - copilot_dotcom_pull_requests?: t_copilot_dotcom_pull_requests - copilot_ide_chat?: t_copilot_ide_chat - copilot_ide_code_completions?: t_copilot_ide_code_completions + copilot_dotcom_chat?: t_copilot_dotcom_chat | undefined + copilot_dotcom_pull_requests?: t_copilot_dotcom_pull_requests | undefined + copilot_ide_chat?: t_copilot_ide_chat | undefined + copilot_ide_code_completions?: t_copilot_ide_code_completions | undefined date: string - total_active_users?: number - total_engaged_users?: number + total_active_users?: number | undefined + total_engaged_users?: number | undefined [key: string]: unknown | undefined } @@ -1860,15 +1967,15 @@ export type t_custom_deployment_rule_app = { } export type t_custom_property = { - allowed_values?: string[] | null - default_value?: string | string[] | null - description?: string | null + allowed_values?: (string[] | null) | undefined + default_value?: (string | string[] | null) | undefined + description?: (string | null) | undefined property_name: string - required?: boolean - source_type?: "organization" | "enterprise" - url?: string + required?: boolean | undefined + source_type?: ("organization" | "enterprise") | undefined + url?: string | undefined value_type: "string" | "single_select" | "multi_select" | "true_false" - values_editable_by?: "org_actors" | "org_and_repo_actors" | null + values_editable_by?: ("org_actors" | "org_and_repo_actors" | null) | undefined } export type t_custom_property_value = { @@ -1877,14 +1984,18 @@ export type t_custom_property_value = { } export type t_cvss_severities = { - cvss_v3?: { - readonly score: number | null - vector_string: string | null - } | null - cvss_v4?: { - readonly score: number | null - vector_string: string | null - } | null + cvss_v3?: + | ({ + readonly score: number | null + vector_string: string | null + } | null) + | undefined + cvss_v4?: + | ({ + readonly score: number | null + vector_string: string | null + } | null) + | undefined } | null export type t_demilestoned_issue_event = { @@ -1903,12 +2014,12 @@ export type t_demilestoned_issue_event = { } export type t_dependabot_alert = { - auto_dismissed_at?: t_alert_auto_dismissed_at + auto_dismissed_at?: t_alert_auto_dismissed_at | undefined created_at: t_alert_created_at readonly dependency: { - readonly manifest_path?: string - package?: t_dependabot_alert_package - readonly scope?: "development" | "runtime" | null + readonly manifest_path?: string | undefined + package?: t_dependabot_alert_package | undefined + readonly scope?: ("development" | "runtime" | null) | undefined } dismissed_at: t_alert_dismissed_at dismissed_by: t_nullable_simple_user @@ -1941,7 +2052,7 @@ export type t_dependabot_alert_security_advisory = { readonly score: number readonly vector_string: string | null } - cvss_severities?: t_cvss_severities + cvss_severities?: t_cvss_severities | undefined readonly cwes: { readonly cwe_id: string readonly name: string @@ -1973,12 +2084,12 @@ export type t_dependabot_alert_security_vulnerability = { } export type t_dependabot_alert_with_repository = { - auto_dismissed_at?: t_alert_auto_dismissed_at + auto_dismissed_at?: t_alert_auto_dismissed_at | undefined created_at: t_alert_created_at readonly dependency: { - readonly manifest_path?: string - package?: t_dependabot_alert_package - readonly scope?: "development" | "runtime" | null + readonly manifest_path?: string | undefined + package?: t_dependabot_alert_package | undefined + readonly scope?: ("development" | "runtime" | null) | undefined } dismissed_at: t_alert_dismissed_at dismissed_by: t_nullable_simple_user @@ -2013,11 +2124,11 @@ export type t_dependabot_secret = { } export type t_dependency = { - dependencies?: string[] - metadata?: t_metadata - package_url?: string - relationship?: "direct" | "indirect" - scope?: "runtime" | "development" + dependencies?: string[] | undefined + metadata?: t_metadata | undefined + package_url?: string | undefined + relationship?: ("direct" | "indirect") | undefined + scope?: ("runtime" | "development") | undefined } export type t_dependency_graph_diff = { @@ -2041,7 +2152,7 @@ export type t_dependency_graph_diff = { export type t_dependency_graph_spdx_sbom = { sbom: { SPDXID: string - comment?: string + comment?: string | undefined creationInfo: { created: string creators: string[] @@ -2050,37 +2161,41 @@ export type t_dependency_graph_spdx_sbom = { documentNamespace: string name: string packages: { - SPDXID?: string - copyrightText?: string - downloadLocation?: string - externalRefs?: { - referenceCategory: string - referenceLocator: string - referenceType: string - }[] - filesAnalyzed?: boolean - licenseConcluded?: string - licenseDeclared?: string - name?: string - supplier?: string - versionInfo?: string - }[] - relationships?: { - relatedSpdxElement?: string - relationshipType?: string - spdxElementId?: string + SPDXID?: string | undefined + copyrightText?: string | undefined + downloadLocation?: string | undefined + externalRefs?: + | { + referenceCategory: string + referenceLocator: string + referenceType: string + }[] + | undefined + filesAnalyzed?: boolean | undefined + licenseConcluded?: string | undefined + licenseDeclared?: string | undefined + name?: string | undefined + supplier?: string | undefined + versionInfo?: string | undefined }[] + relationships?: + | { + relatedSpdxElement?: string | undefined + relationshipType?: string | undefined + spdxElementId?: string | undefined + }[] + | undefined spdxVersion: string } } export type t_deploy_key = { - added_by?: string | null + added_by?: (string | null) | undefined created_at: string - enabled?: boolean + enabled?: boolean | undefined id: number key: string - last_used?: string | null + last_used?: (string | null) | undefined read_only: boolean title: string url: string @@ -2094,29 +2209,29 @@ export type t_deployment = { environment: string id: number node_id: string - original_environment?: string + original_environment?: string | undefined payload: | { [key: string]: unknown | undefined } | string - performed_via_github_app?: t_nullable_integration - production_environment?: boolean + performed_via_github_app?: t_nullable_integration | undefined + production_environment?: boolean | undefined ref: string repository_url: string sha: string statuses_url: string task: string - transient_environment?: boolean + transient_environment?: boolean | undefined updated_at: string url: string } export type t_deployment_branch_policy = { - id?: number - name?: string - node_id?: string - type?: "branch" | "tag" + id?: number | undefined + name?: string | undefined + node_id?: string | undefined + type?: ("branch" | "tag") | undefined } export type t_deployment_branch_policy_name_pattern = { @@ -2125,7 +2240,7 @@ export type t_deployment_branch_policy_name_pattern = { export type t_deployment_branch_policy_name_pattern_with_type = { name: string - type?: "branch" | "tag" + type?: ("branch" | "tag") | undefined } export type t_deployment_branch_policy_settings = { @@ -2148,13 +2263,13 @@ export type t_deployment_simple = { environment: string id: number node_id: string - original_environment?: string - performed_via_github_app?: t_nullable_integration - production_environment?: boolean + original_environment?: string | undefined + performed_via_github_app?: t_nullable_integration | undefined + production_environment?: boolean | undefined repository_url: string statuses_url: string task: string - transient_environment?: boolean + transient_environment?: boolean | undefined updated_at: string url: string } @@ -2164,12 +2279,12 @@ export type t_deployment_status = { creator: t_nullable_simple_user deployment_url: string description: string - environment?: string - environment_url?: string + environment?: string | undefined + environment_url?: string | undefined id: number - log_url?: string + log_url?: string | undefined node_id: string - performed_via_github_app?: t_nullable_integration + performed_via_github_app?: t_nullable_integration | undefined repository_url: string state: | "error" @@ -2191,8 +2306,8 @@ export type t_diff_entry = { contents_url: string deletions: number filename: string - patch?: string - previous_filename?: string + patch?: string | undefined + previous_filename?: string | undefined raw_url: string sha: string status: @@ -2219,19 +2334,19 @@ export type t_enabled_repositories = "all" | "none" | "selected" export type t_enterprise = { avatar_url: string created_at: string | null - description?: string | null + description?: (string | null) | undefined html_url: string id: number name: string node_id: string slug: string updated_at: string | null - website_url?: string | null + website_url?: (string | null) | undefined } export type t_enterprise_team = { created_at: string - group_id?: string | null + group_id?: (string | null) | undefined html_url: string id: number members_url: string @@ -2244,34 +2359,38 @@ export type t_enterprise_team = { export type t_environment = { created_at: string - deployment_branch_policy?: t_deployment_branch_policy_settings + deployment_branch_policy?: t_deployment_branch_policy_settings | undefined html_url: string id: number name: string node_id: string - protection_rules?: ( - | { - id: number - node_id: string - type: string - wait_timer?: t_wait_timer - } - | { - id: number - node_id: string - prevent_self_review?: boolean - reviewers?: { - reviewer?: t_simple_user | t_team - type?: t_deployment_reviewer_type - }[] - type: string - } - | { - id: number - node_id: string - type: string - } - )[] + protection_rules?: + | ( + | { + id: number + node_id: string + type: string + wait_timer?: t_wait_timer | undefined + } + | { + id: number + node_id: string + prevent_self_review?: boolean | undefined + reviewers?: + | { + reviewer?: (t_simple_user | t_team) | undefined + type?: t_deployment_reviewer_type | undefined + }[] + | undefined + type: string + } + | { + id: number + node_id: string + type: string + } + )[] + | undefined updated_at: string url: string } @@ -2279,13 +2398,13 @@ export type t_environment = { export type t_environment_approvals = { comment: string environments: { - created_at?: string - html_url?: string - id?: number - name?: string - node_id?: string - updated_at?: string - url?: string + created_at?: string | undefined + html_url?: string | undefined + id?: number | undefined + name?: string | undefined + node_id?: string | undefined + updated_at?: string | undefined + url?: string | undefined }[] state: "approved" | "rejected" | "pending" user: t_simple_user @@ -2295,19 +2414,21 @@ export type t_event = { actor: t_actor created_at: string | null id: string - org?: t_actor + org?: t_actor | undefined payload: { - action?: string - comment?: t_issue_comment - issue?: t_issue - pages?: { - action?: string - html_url?: string - page_name?: string - sha?: string - summary?: string | null - title?: string - }[] + action?: string | undefined + comment?: t_issue_comment | undefined + issue?: t_issue | undefined + pages?: + | { + action?: string | undefined + html_url?: string | undefined + page_name?: string | undefined + sha?: string | undefined + summary?: (string | null) | undefined + title?: string | undefined + }[] + | undefined } public: boolean repo: { @@ -2320,96 +2441,108 @@ export type t_event = { export type t_feed = { _links: { - current_user?: t_link_with_type - current_user_actor?: t_link_with_type - current_user_organization?: t_link_with_type - current_user_organizations?: t_link_with_type[] - current_user_public?: t_link_with_type - repository_discussions?: t_link_with_type - repository_discussions_category?: t_link_with_type - security_advisories?: t_link_with_type + current_user?: t_link_with_type | undefined + current_user_actor?: t_link_with_type | undefined + current_user_organization?: t_link_with_type | undefined + current_user_organizations?: t_link_with_type[] | undefined + current_user_public?: t_link_with_type | undefined + repository_discussions?: t_link_with_type | undefined + repository_discussions_category?: t_link_with_type | undefined + security_advisories?: t_link_with_type | undefined timeline: t_link_with_type user: t_link_with_type } - current_user_actor_url?: string - current_user_organization_url?: string - current_user_organization_urls?: string[] - current_user_public_url?: string - current_user_url?: string - repository_discussions_category_url?: string - repository_discussions_url?: string - security_advisories_url?: string + current_user_actor_url?: string | undefined + current_user_organization_url?: string | undefined + current_user_organization_urls?: string[] | undefined + current_user_public_url?: string | undefined + current_user_url?: string | undefined + repository_discussions_category_url?: string | undefined + repository_discussions_url?: string | undefined + security_advisories_url?: string | undefined timeline_url: string user_url: string } export type t_file_commit = { commit: { - author?: { - date?: string - email?: string - name?: string - } - committer?: { - date?: string - email?: string - name?: string - } - html_url?: string - message?: string - node_id?: string - parents?: { - html_url?: string - sha?: string - url?: string - }[] - sha?: string - tree?: { - sha?: string - url?: string - } - url?: string - verification?: { - payload?: string | null - reason?: string - signature?: string | null - verified?: boolean - verified_at?: string | null - } + author?: + | { + date?: string | undefined + email?: string | undefined + name?: string | undefined + } + | undefined + committer?: + | { + date?: string | undefined + email?: string | undefined + name?: string | undefined + } + | undefined + html_url?: string | undefined + message?: string | undefined + node_id?: string | undefined + parents?: + | { + html_url?: string | undefined + sha?: string | undefined + url?: string | undefined + }[] + | undefined + sha?: string | undefined + tree?: + | { + sha?: string | undefined + url?: string | undefined + } + | undefined + url?: string | undefined + verification?: + | { + payload?: (string | null) | undefined + reason?: string | undefined + signature?: (string | null) | undefined + verified?: boolean | undefined + verified_at?: (string | null) | undefined + } + | undefined } content: { - _links?: { - git?: string - html?: string - self?: string - } - download_url?: string - git_url?: string - html_url?: string - name?: string - path?: string - sha?: string - size?: number - type?: string - url?: string + _links?: + | { + git?: string | undefined + html?: string | undefined + self?: string | undefined + } + | undefined + download_url?: string | undefined + git_url?: string | undefined + html_url?: string | undefined + name?: string | undefined + path?: string | undefined + sha?: string | undefined + size?: number | undefined + type?: string | undefined + url?: string | undefined } | null } export type t_full_repository = { - allow_auto_merge?: boolean - allow_forking?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean - allow_update_branch?: boolean - anonymous_access_enabled?: boolean + allow_auto_merge?: boolean | undefined + allow_forking?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined + allow_update_branch?: boolean | undefined + anonymous_access_enabled?: boolean | undefined archive_url: string archived: boolean assignees_url: string blobs_url: string branches_url: string clone_url: string - code_of_conduct?: t_code_of_conduct_simple + code_of_conduct?: t_code_of_conduct_simple | undefined collaborators_url: string comments_url: string commits_url: string @@ -2417,11 +2550,13 @@ export type t_full_repository = { contents_url: string contributors_url: string created_at: string - custom_properties?: { - [key: string]: unknown | undefined - } + custom_properties?: + | { + [key: string]: unknown | undefined + } + | undefined default_branch: string - delete_branch_on_merge?: boolean + delete_branch_on_merge?: boolean | undefined deployments_url: string description: string | null disabled: boolean @@ -2437,7 +2572,7 @@ export type t_full_repository = { git_tags_url: string git_url: string has_discussions: boolean - has_downloads?: boolean + has_downloads?: boolean | undefined has_issues: boolean has_pages: boolean has_projects: boolean @@ -2446,7 +2581,7 @@ export type t_full_repository = { hooks_url: string html_url: string id: number - is_template?: boolean + is_template?: boolean | undefined issue_comment_url: string issue_events_url: string issues_url: string @@ -2455,9 +2590,9 @@ export type t_full_repository = { language: string | null languages_url: string license: t_nullable_license_simple - master_branch?: string - merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK" - merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" + master_branch?: string | undefined + merge_commit_message?: ("PR_BODY" | "PR_TITLE" | "BLANK") | undefined + merge_commit_title?: ("PR_TITLE" | "MERGE_MESSAGE") | undefined merges_url: string milestones_url: string mirror_url: string | null @@ -2467,25 +2602,29 @@ export type t_full_repository = { notifications_url: string open_issues: number open_issues_count: number - organization?: t_nullable_simple_user + organization?: t_nullable_simple_user | undefined owner: t_simple_user - parent?: t_repository - permissions?: { - admin: boolean - maintain?: boolean - pull: boolean - push: boolean - triage?: boolean - } + parent?: t_repository | undefined + permissions?: + | { + admin: boolean + maintain?: boolean | undefined + pull: boolean + push: boolean + triage?: boolean | undefined + } + | undefined private: boolean pulls_url: string pushed_at: string releases_url: string - security_and_analysis?: t_security_and_analysis + security_and_analysis?: t_security_and_analysis | undefined size: number - source?: t_repository - squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" - squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" + source?: t_repository | undefined + squash_merge_commit_message?: + | ("PR_BODY" | "COMMIT_MESSAGES" | "BLANK") + | undefined + squash_merge_commit_title?: ("PR_TITLE" | "COMMIT_OR_PR_TITLE") | undefined ssh_url: string stargazers_count: number stargazers_url: string @@ -2496,17 +2635,17 @@ export type t_full_repository = { svn_url: string tags_url: string teams_url: string - temp_clone_token?: string | null - template_repository?: t_nullable_repository - topics?: string[] + temp_clone_token?: (string | null) | undefined + template_repository?: t_nullable_repository | undefined + topics?: string[] | undefined trees_url: string updated_at: string url: string - use_squash_pr_title_as_default?: boolean - visibility?: string + use_squash_pr_title_as_default?: boolean | undefined + visibility?: string | undefined watchers: number watchers_count: number - web_commit_signoff_required?: boolean + web_commit_signoff_required?: boolean | undefined } export type t_gist_comment = { @@ -2522,9 +2661,9 @@ export type t_gist_comment = { export type t_gist_commit = { change_status: { - additions?: number - deletions?: number - total?: number + additions?: number | undefined + deletions?: number | undefined + total?: number | undefined } committed_at: string url: string @@ -2533,91 +2672,100 @@ export type t_gist_commit = { } export type t_gist_history = { - change_status?: { - additions?: number - deletions?: number - total?: number - } - committed_at?: string - url?: string - user?: t_nullable_simple_user - version?: string + change_status?: + | { + additions?: number | undefined + deletions?: number | undefined + total?: number | undefined + } + | undefined + committed_at?: string | undefined + url?: string | undefined + user?: t_nullable_simple_user | undefined + version?: string | undefined } export type t_gist_simple = { - comments?: number - comments_url?: string - commits_url?: string - created_at?: string - description?: string | null - files?: { - [key: string]: - | ({ - content?: string - encoding?: string - filename?: string - language?: string - raw_url?: string - size?: number - truncated?: boolean - type?: string - } | null) - | undefined - } - fork_of?: { - comments: number - comments_url: string - commits_url: string - created_at: string - description: string | null - files: { - [key: string]: - | { - filename?: string - language?: string - raw_url?: string - size?: number - type?: string - } - | undefined - } - forks?: unknown[] - forks_url: string - git_pull_url: string - git_push_url: string - history?: unknown[] - html_url: string - id: string - node_id: string - owner?: t_nullable_simple_user - public: boolean - truncated?: boolean - updated_at: string - url: string - user: t_nullable_simple_user - } | null - forks?: + comments?: number | undefined + comments_url?: string | undefined + commits_url?: string | undefined + created_at?: string | undefined + description?: (string | null) | undefined + files?: | { - created_at?: string - id?: string - updated_at?: string - url?: string - user?: t_public_user - }[] - | null - forks_url?: string - git_pull_url?: string - git_push_url?: string - history?: t_gist_history[] | null - html_url?: string - id?: string - node_id?: string - owner?: t_simple_user - public?: boolean - truncated?: boolean - updated_at?: string - url?: string - user?: string | null + [key: string]: + | ({ + content?: string | undefined + encoding?: string | undefined + filename?: string | undefined + language?: string | undefined + raw_url?: string | undefined + size?: number | undefined + truncated?: boolean | undefined + type?: string | undefined + } | null) + | undefined + } + | undefined + fork_of?: + | ({ + comments: number + comments_url: string + commits_url: string + created_at: string + description: string | null + files: { + [key: string]: + | { + filename?: string | undefined + language?: string | undefined + raw_url?: string | undefined + size?: number | undefined + type?: string | undefined + } + | undefined + } + forks?: unknown[] | undefined + forks_url: string + git_pull_url: string + git_push_url: string + history?: unknown[] | undefined + html_url: string + id: string + node_id: string + owner?: t_nullable_simple_user | undefined + public: boolean + truncated?: boolean | undefined + updated_at: string + url: string + user: t_nullable_simple_user + } | null) + | undefined + forks?: + | ( + | { + created_at?: string | undefined + id?: string | undefined + updated_at?: string | undefined + url?: string | undefined + user?: t_public_user | undefined + }[] + | null + ) + | undefined + forks_url?: string | undefined + git_pull_url?: string | undefined + git_push_url?: string | undefined + history?: (t_gist_history[] | null) | undefined + html_url?: string | undefined + id?: string | undefined + node_id?: string | undefined + owner?: t_simple_user | undefined + public?: boolean | undefined + truncated?: boolean | undefined + updated_at?: string | undefined + url?: string | undefined + user?: (string | null) | undefined } export type t_git_commit = { @@ -2650,7 +2798,7 @@ export type t_git_commit = { reason: string signature: string | null verified: boolean - verified_at?: string | null + verified_at?: (string | null) | undefined } } @@ -2681,18 +2829,18 @@ export type t_git_tag = { name: string } url: string - verification?: t_verification + verification?: t_verification | undefined } export type t_git_tree = { sha: string tree: { - mode?: string - path?: string - sha?: string - size?: number - type?: string - url?: string + mode?: string | undefined + path?: string | undefined + sha?: string | undefined + size?: number | undefined + type?: string | undefined + url?: string | undefined }[] truncated: boolean url: string @@ -2715,7 +2863,7 @@ export type t_global_advisory = { readonly score: number | null vector_string: string | null } | null - cvss_severities?: t_cvss_severities + cvss_severities?: t_cvss_severities | undefined cwes: | { cwe_id: string @@ -2723,10 +2871,12 @@ export type t_global_advisory = { }[] | null description: string | null - epss?: { - percentage?: number - percentile?: number - } | null + epss?: + | ({ + percentage?: number | undefined + percentile?: number | undefined + } | null) + | undefined readonly ghsa_id: string readonly github_reviewed_at: string | null readonly html_url: string @@ -2757,35 +2907,37 @@ export type t_gpg_key = { can_sign: boolean created_at: string emails: { - email?: string - verified?: boolean + email?: string | undefined + verified?: boolean | undefined }[] expires_at: string | null id: number key_id: string - name?: string | null + name?: (string | null) | undefined primary_key_id: number | null public_key: string raw_key: string | null revoked: boolean subkeys: { - can_certify?: boolean - can_encrypt_comms?: boolean - can_encrypt_storage?: boolean - can_sign?: boolean - created_at?: string - emails?: { - email?: string - verified?: boolean - }[] - expires_at?: string | null - id?: number - key_id?: string - primary_key_id?: number - public_key?: string - raw_key?: string | null - revoked?: boolean - subkeys?: unknown[] + can_certify?: boolean | undefined + can_encrypt_comms?: boolean | undefined + can_encrypt_storage?: boolean | undefined + can_sign?: boolean | undefined + created_at?: string | undefined + emails?: + | { + email?: string | undefined + verified?: boolean | undefined + }[] + | undefined + expires_at?: (string | null) | undefined + id?: number | undefined + key_id?: string | undefined + primary_key_id?: number | undefined + public_key?: string | undefined + raw_key?: (string | null) | undefined + revoked?: boolean | undefined + subkeys?: unknown[] | undefined }[] } @@ -2793,7 +2945,7 @@ export type t_hook = { active: boolean config: t_webhook_config created_at: string - deliveries_url?: string + deliveries_url?: string | undefined events: string[] id: number last_response: t_hook_response @@ -2831,8 +2983,8 @@ export type t_hook_delivery = { } status: string status_code: number - throttled_at?: string | null - url?: string + throttled_at?: (string | null) | undefined + url?: string | undefined } export type t_hook_delivery_item = { @@ -2847,7 +2999,7 @@ export type t_hook_delivery_item = { repository_id: number | null status: string status_code: number - throttled_at?: string | null + throttled_at?: (string | null) | undefined } export type t_hook_response = { @@ -2864,23 +3016,25 @@ export type t_hovercard = { } export type t_import = { - authors_count?: number | null + authors_count?: (number | null) | undefined authors_url: string - commit_count?: number | null - error_message?: string | null - failed_step?: string | null - has_large_files?: boolean + commit_count?: (number | null) | undefined + error_message?: (string | null) | undefined + failed_step?: (string | null) | undefined + has_large_files?: boolean | undefined html_url: string - import_percent?: number | null - large_files_count?: number - large_files_size?: number - message?: string - project_choices?: { - human_name?: string - tfvc_project?: string - vcs?: string - }[] - push_percent?: number | null + import_percent?: (number | null) | undefined + large_files_count?: number | undefined + large_files_size?: number | undefined + message?: string | undefined + project_choices?: + | { + human_name?: string | undefined + tfvc_project?: string | undefined + vcs?: string | undefined + }[] + | undefined + push_percent?: (number | null) | undefined repository_url: string status: | "auth" @@ -2899,12 +3053,12 @@ export type t_import = { | "detection_found_multiple" | "detection_found_nothing" | "detection_needs_auth" - status_text?: string | null - svc_root?: string - svn_root?: string - tfvc_project?: string + status_text?: (string | null) | undefined + svc_root?: string | undefined + svn_root?: string | undefined + tfvc_project?: string | undefined url: string - use_lfs?: boolean + use_lfs?: boolean | undefined vcs: string | null vcs_url: string } @@ -2914,17 +3068,17 @@ export type t_installation = { account: t_simple_user | t_enterprise | null app_id: number app_slug: string - contact_email?: string | null + contact_email?: (string | null) | undefined created_at: string events: string[] - has_multiple_single_files?: boolean + has_multiple_single_files?: boolean | undefined html_url: string id: number permissions: t_app_permissions repositories_url: string repository_selection: "all" | "selected" single_file_name: string | null - single_file_paths?: string[] + single_file_paths?: string[] | undefined suspended_at: string | null suspended_by: t_nullable_simple_user target_id: number @@ -2934,47 +3088,47 @@ export type t_installation = { export type t_installation_token = { expires_at: string - has_multiple_single_files?: boolean - permissions?: t_app_permissions - repositories?: t_repository[] - repository_selection?: "all" | "selected" - single_file?: string - single_file_paths?: string[] + has_multiple_single_files?: boolean | undefined + permissions?: t_app_permissions | undefined + repositories?: t_repository[] | undefined + repository_selection?: ("all" | "selected") | undefined + single_file?: string | undefined + single_file_paths?: string[] | undefined token: string } export type t_integration = { - client_id?: string - client_secret?: string + client_id?: string | undefined + client_secret?: string | undefined created_at: string description: string | null events: string[] external_url: string html_url: string id: number - installations_count?: number + installations_count?: number | undefined name: string node_id: string owner: t_nullable_simple_user - pem?: string + pem?: string | undefined permissions: { - checks?: string - contents?: string - deployments?: string - issues?: string - metadata?: string + checks?: string | undefined + contents?: string | undefined + deployments?: string | undefined + issues?: string | undefined + metadata?: string | undefined [key: string]: string | undefined } - slug?: string + slug?: string | undefined updated_at: string - webhook_secret?: string | null + webhook_secret?: (string | null) | undefined } | null export type t_integration_installation_request = { account: t_simple_user | t_enterprise created_at: string id: number - node_id?: string + node_id?: string | undefined requester: t_simple_user } @@ -2991,7 +3145,7 @@ export type t_interaction_group = | "collaborators_only" export type t_interaction_limit = { - expiry?: t_interaction_expiry + expiry?: t_interaction_expiry | undefined limit: t_interaction_group } @@ -3002,32 +3156,32 @@ export type t_interaction_limit_response = { } export type t_issue = { - active_lock_reason?: string | null + active_lock_reason?: (string | null) | undefined assignee: t_nullable_simple_user - assignees?: t_simple_user[] | null + assignees?: (t_simple_user[] | null) | undefined author_association: t_author_association - body?: string | null - body_html?: string - body_text?: string + body?: (string | null) | undefined + body_html?: string | undefined + body_text?: string | undefined closed_at: string | null - closed_by?: t_nullable_simple_user + closed_by?: t_nullable_simple_user | undefined comments: number comments_url: string created_at: string - draft?: boolean + draft?: boolean | undefined events_url: string html_url: string id: number labels: ( | string | { - color?: string | null - default?: boolean - description?: string | null - id?: number - name?: string - node_id?: string - url?: string + color?: (string | null) | undefined + default?: boolean | undefined + description?: (string | null) | undefined + id?: number | undefined + name?: string | undefined + node_id?: string | undefined + url?: string | undefined } )[] labels_url: string @@ -3035,21 +3189,23 @@ export type t_issue = { milestone: t_nullable_milestone node_id: string number: number - performed_via_github_app?: t_nullable_integration - pull_request?: { - diff_url: string | null - html_url: string | null - merged_at?: string | null - patch_url: string | null - url: string | null - } - reactions?: t_reaction_rollup - repository?: t_repository + performed_via_github_app?: t_nullable_integration | undefined + pull_request?: + | { + diff_url: string | null + html_url: string | null + merged_at?: (string | null) | undefined + patch_url: string | null + url: string | null + } + | undefined + reactions?: t_reaction_rollup | undefined + repository?: t_repository | undefined repository_url: string state: string - state_reason?: "completed" | "reopened" | "not_planned" | null - sub_issues_summary?: t_sub_issues_summary - timeline_url?: string + state_reason?: ("completed" | "reopened" | "not_planned" | null) | undefined + sub_issues_summary?: t_sub_issues_summary | undefined + timeline_url?: string | undefined title: string updated_at: string url: string @@ -3058,16 +3214,16 @@ export type t_issue = { export type t_issue_comment = { author_association: t_author_association - body?: string - body_html?: string - body_text?: string + body?: string | undefined + body_html?: string | undefined + body_text?: string | undefined created_at: string html_url: string id: number issue_url: string node_id: string - performed_via_github_app?: t_nullable_integration - reactions?: t_reaction_rollup + performed_via_github_app?: t_nullable_integration | undefined + reactions?: t_reaction_rollup | undefined updated_at: string url: string user: t_nullable_simple_user @@ -3075,31 +3231,31 @@ export type t_issue_comment = { export type t_issue_event = { actor: t_nullable_simple_user - assignee?: t_nullable_simple_user - assigner?: t_nullable_simple_user - author_association?: t_author_association + assignee?: t_nullable_simple_user | undefined + assigner?: t_nullable_simple_user | undefined + author_association?: t_author_association | undefined commit_id: string | null commit_url: string | null created_at: string - dismissed_review?: t_issue_event_dismissed_review + dismissed_review?: t_issue_event_dismissed_review | undefined event: string id: number - issue?: t_nullable_issue - label?: t_issue_event_label - lock_reason?: string | null - milestone?: t_issue_event_milestone + issue?: t_nullable_issue | undefined + label?: t_issue_event_label | undefined + lock_reason?: (string | null) | undefined + milestone?: t_issue_event_milestone | undefined node_id: string - performed_via_github_app?: t_nullable_integration - project_card?: t_issue_event_project_card - rename?: t_issue_event_rename - requested_reviewer?: t_nullable_simple_user - requested_team?: t_team - review_requester?: t_nullable_simple_user + performed_via_github_app?: t_nullable_integration | undefined + project_card?: t_issue_event_project_card | undefined + rename?: t_issue_event_rename | undefined + requested_reviewer?: t_nullable_simple_user | undefined + requested_team?: t_team | undefined + review_requester?: t_nullable_simple_user | undefined url: string } export type t_issue_event_dismissed_review = { - dismissal_commit_id?: string | null + dismissal_commit_id?: (string | null) | undefined dismissal_message: string | null review_id: number state: string @@ -3134,7 +3290,7 @@ export type t_issue_event_milestone = { export type t_issue_event_project_card = { column_name: string id: number - previous_column_name?: string + previous_column_name?: string | undefined project_id: number project_url: string url: string @@ -3146,56 +3302,60 @@ export type t_issue_event_rename = { } export type t_issue_search_result_item = { - active_lock_reason?: string | null + active_lock_reason?: (string | null) | undefined assignee: t_nullable_simple_user - assignees?: t_simple_user[] | null + assignees?: (t_simple_user[] | null) | undefined author_association: t_author_association - body?: string - body_html?: string - body_text?: string + body?: string | undefined + body_html?: string | undefined + body_text?: string | undefined closed_at: string | null comments: number comments_url: string created_at: string - draft?: boolean + draft?: boolean | undefined events_url: string html_url: string id: number labels: { - color?: string - default?: boolean - description?: string | null - id?: number - name?: string - node_id?: string - url?: string + color?: string | undefined + default?: boolean | undefined + description?: (string | null) | undefined + id?: number | undefined + name?: string | undefined + node_id?: string | undefined + url?: string | undefined }[] labels_url: string locked: boolean milestone: t_nullable_milestone node_id: string number: number - performed_via_github_app?: t_nullable_integration - pull_request?: { - diff_url: string | null - html_url: string | null - merged_at?: string | null - patch_url: string | null - url: string | null - } - reactions?: t_reaction_rollup - repository?: t_repository + performed_via_github_app?: t_nullable_integration | undefined + pull_request?: + | { + diff_url: string | null + html_url: string | null + merged_at?: (string | null) | undefined + patch_url: string | null + url: string | null + } + | undefined + reactions?: t_reaction_rollup | undefined + repository?: t_repository | undefined repository_url: string score: number state: string - state_reason?: string | null - sub_issues_summary?: { - completed: number - percent_completed: number - total: number - } - text_matches?: t_search_result_text_matches - timeline_url?: string + state_reason?: (string | null) | undefined + sub_issues_summary?: + | { + completed: number + percent_completed: number + total: number + } + | undefined + text_matches?: t_search_result_text_matches | undefined + timeline_url?: string | undefined title: string updated_at: string url: string @@ -3222,7 +3382,7 @@ export type t_job = { labels: string[] name: string node_id: string - run_attempt?: number + run_attempt?: number | undefined run_id: number run_url: string runner_group_id: number | null @@ -3237,14 +3397,16 @@ export type t_job = { | "waiting" | "requested" | "pending" - steps?: { - completed_at?: string | null - conclusion: string | null - name: string - number: number - started_at?: string | null - status: "queued" | "in_progress" | "completed" - }[] + steps?: + | { + completed_at?: (string | null) | undefined + conclusion: string | null + name: string + number: number + started_at?: (string | null) | undefined + status: "queued" | "in_progress" | "completed" + }[] + | undefined url: string workflow_name: string | null } @@ -3282,7 +3444,7 @@ export type t_label_search_result_item = { name: string node_id: string score: number - text_matches?: t_search_result_text_matches + text_matches?: t_search_result_text_matches | undefined url: string } @@ -3343,7 +3505,7 @@ export type t_license_content = { } export type t_license_simple = { - html_url?: string + html_url?: string | undefined key: string name: string node_id: string @@ -3374,22 +3536,26 @@ export type t_locked_issue_event = { } export type t_manifest = { - file?: { - source_location?: string - } - metadata?: t_metadata + file?: + | { + source_location?: string | undefined + } + | undefined + metadata?: t_metadata | undefined name: string - resolved?: { - [key: string]: t_dependency | undefined - } + resolved?: + | { + [key: string]: t_dependency | undefined + } + | undefined } export type t_marketplace_account = { - email?: string | null + email?: (string | null) | undefined id: number login: string - node_id?: string - organization_billing_email?: string | null + node_id?: string | undefined + organization_billing_email?: (string | null) | undefined type: string url: string } @@ -3411,35 +3577,37 @@ export type t_marketplace_listing_plan = { } export type t_marketplace_purchase = { - email?: string | null + email?: (string | null) | undefined id: number login: string - marketplace_pending_change?: { - effective_date?: string - id?: number - is_installed?: boolean - plan?: t_marketplace_listing_plan - unit_count?: number | null - } | null + marketplace_pending_change?: + | ({ + effective_date?: string | undefined + id?: number | undefined + is_installed?: boolean | undefined + plan?: t_marketplace_listing_plan | undefined + unit_count?: (number | null) | undefined + } | null) + | undefined marketplace_purchase: { - billing_cycle?: string - free_trial_ends_on?: string | null - is_installed?: boolean - next_billing_date?: string | null - on_free_trial?: boolean - plan?: t_marketplace_listing_plan - unit_count?: number | null - updated_at?: string - } - organization_billing_email?: string + billing_cycle?: string | undefined + free_trial_ends_on?: (string | null) | undefined + is_installed?: boolean | undefined + next_billing_date?: (string | null) | undefined + on_free_trial?: boolean | undefined + plan?: t_marketplace_listing_plan | undefined + unit_count?: (number | null) | undefined + updated_at?: string | undefined + } + organization_billing_email?: string | undefined type: string url: string } export type t_merged_upstream = { - base_branch?: string - merge_type?: "merge" | "fast-forward" | "none" - message?: string + base_branch?: string | undefined + merge_type?: ("merge" | "fast-forward" | "none") | undefined + message?: string | undefined } export type t_metadata = { @@ -3447,9 +3615,9 @@ export type t_metadata = { } export type t_migration = { - archive_url?: string + archive_url?: string | undefined created_at: string - exclude?: string[] + exclude?: string[] | undefined exclude_attachments: boolean exclude_git_data: boolean exclude_metadata: boolean @@ -3502,105 +3670,109 @@ export type t_milestoned_issue_event = { } export type t_minimal_repository = { - allow_forking?: boolean + allow_forking?: boolean | undefined archive_url: string - archived?: boolean + archived?: boolean | undefined assignees_url: string blobs_url: string branches_url: string - clone_url?: string - code_of_conduct?: t_code_of_conduct + clone_url?: string | undefined + code_of_conduct?: t_code_of_conduct | undefined collaborators_url: string comments_url: string commits_url: string compare_url: string contents_url: string contributors_url: string - created_at?: string | null - default_branch?: string - delete_branch_on_merge?: boolean + created_at?: (string | null) | undefined + default_branch?: string | undefined + delete_branch_on_merge?: boolean | undefined deployments_url: string description: string | null - disabled?: boolean + disabled?: boolean | undefined downloads_url: string events_url: string fork: boolean - forks?: number - forks_count?: number + forks?: number | undefined + forks_count?: number | undefined forks_url: string full_name: string git_commits_url: string git_refs_url: string git_tags_url: string - git_url?: string - has_discussions?: boolean - has_downloads?: boolean - has_issues?: boolean - has_pages?: boolean - has_projects?: boolean - has_wiki?: boolean - homepage?: string | null + git_url?: string | undefined + has_discussions?: boolean | undefined + has_downloads?: boolean | undefined + has_issues?: boolean | undefined + has_pages?: boolean | undefined + has_projects?: boolean | undefined + has_wiki?: boolean | undefined + homepage?: (string | null) | undefined hooks_url: string html_url: string id: number - is_template?: boolean + is_template?: boolean | undefined issue_comment_url: string issue_events_url: string issues_url: string keys_url: string labels_url: string - language?: string | null + language?: (string | null) | undefined languages_url: string - license?: { - key?: string - name?: string - node_id?: string - spdx_id?: string - url?: string - } | null + license?: + | ({ + key?: string | undefined + name?: string | undefined + node_id?: string | undefined + spdx_id?: string | undefined + url?: string | undefined + } | null) + | undefined merges_url: string milestones_url: string - mirror_url?: string | null + mirror_url?: (string | null) | undefined name: string - network_count?: number + network_count?: number | undefined node_id: string notifications_url: string - open_issues?: number - open_issues_count?: number + open_issues?: number | undefined + open_issues_count?: number | undefined owner: t_simple_user - permissions?: { - admin?: boolean - maintain?: boolean - pull?: boolean - push?: boolean - triage?: boolean - } + permissions?: + | { + admin?: boolean | undefined + maintain?: boolean | undefined + pull?: boolean | undefined + push?: boolean | undefined + triage?: boolean | undefined + } + | undefined private: boolean pulls_url: string - pushed_at?: string | null + pushed_at?: (string | null) | undefined releases_url: string - role_name?: string - security_and_analysis?: t_security_and_analysis - size?: number - ssh_url?: string - stargazers_count?: number + role_name?: string | undefined + security_and_analysis?: t_security_and_analysis | undefined + size?: number | undefined + ssh_url?: string | undefined + stargazers_count?: number | undefined stargazers_url: string statuses_url: string - subscribers_count?: number + subscribers_count?: number | undefined subscribers_url: string subscription_url: string - svn_url?: string + svn_url?: string | undefined tags_url: string teams_url: string - temp_clone_token?: string - topics?: string[] + temp_clone_token?: string | undefined + topics?: string[] | undefined trees_url: string - updated_at?: string | null + updated_at?: (string | null) | undefined url: string - visibility?: string - watchers?: number - watchers_count?: number - web_commit_signoff_required?: boolean + visibility?: string | undefined + watchers?: number | undefined + watchers_count?: number | undefined + web_commit_signoff_required?: boolean | undefined } export type t_moved_column_in_project_issue_event = { @@ -3612,14 +3784,16 @@ export type t_moved_column_in_project_issue_event = { id: number node_id: string performed_via_github_app: t_nullable_integration - project_card?: { - column_name: string - id: number - previous_column_name?: string - project_id: number - project_url: string - url: string - } + project_card?: + | { + column_name: string + id: number + previous_column_name?: string | undefined + project_id: number + project_url: string + url: string + } + | undefined url: string } @@ -3644,7 +3818,7 @@ export type t_nullable_codespace_machine = { export type t_nullable_collaborator = { avatar_url: string - email?: string | null + email?: (string | null) | undefined events_url: string followers_url: string following_url: string @@ -3653,16 +3827,18 @@ export type t_nullable_collaborator = { html_url: string id: number login: string - name?: string | null + name?: (string | null) | undefined node_id: string organizations_url: string - permissions?: { - admin: boolean - maintain?: boolean - pull: boolean - push: boolean - triage?: boolean - } + permissions?: + | { + admin: boolean + maintain?: boolean | undefined + pull: boolean + push: boolean + triage?: boolean | undefined + } + | undefined received_events_url: string repos_url: string role_name: string @@ -3671,7 +3847,7 @@ export type t_nullable_collaborator = { subscriptions_url: string type: string url: string - user_view_type?: string + user_view_type?: string | undefined } | null export type t_nullable_community_health_file = { @@ -3680,65 +3856,65 @@ export type t_nullable_community_health_file = { } | null export type t_nullable_git_user = { - date?: string - email?: string - name?: string + date?: string | undefined + email?: string | undefined + name?: string | undefined } | null export type t_nullable_integration = { - client_id?: string - client_secret?: string + client_id?: string | undefined + client_secret?: string | undefined created_at: string description: string | null events: string[] external_url: string html_url: string id: number - installations_count?: number + installations_count?: number | undefined name: string node_id: string owner: t_nullable_simple_user - pem?: string + pem?: string | undefined permissions: { - checks?: string - contents?: string - deployments?: string - issues?: string - metadata?: string + checks?: string | undefined + contents?: string | undefined + deployments?: string | undefined + issues?: string | undefined + metadata?: string | undefined [key: string]: string | undefined } - slug?: string + slug?: string | undefined updated_at: string - webhook_secret?: string | null + webhook_secret?: (string | null) | undefined } | null export type t_nullable_issue = { - active_lock_reason?: string | null + active_lock_reason?: (string | null) | undefined assignee: t_nullable_simple_user - assignees?: t_simple_user[] | null + assignees?: (t_simple_user[] | null) | undefined author_association: t_author_association - body?: string | null - body_html?: string - body_text?: string + body?: (string | null) | undefined + body_html?: string | undefined + body_text?: string | undefined closed_at: string | null - closed_by?: t_nullable_simple_user + closed_by?: t_nullable_simple_user | undefined comments: number comments_url: string created_at: string - draft?: boolean + draft?: boolean | undefined events_url: string html_url: string id: number labels: ( | string | { - color?: string | null - default?: boolean - description?: string | null - id?: number - name?: string - node_id?: string - url?: string + color?: (string | null) | undefined + default?: boolean | undefined + description?: (string | null) | undefined + id?: number | undefined + name?: string | undefined + node_id?: string | undefined + url?: string | undefined } )[] labels_url: string @@ -3746,21 +3922,23 @@ export type t_nullable_issue = { milestone: t_nullable_milestone node_id: string number: number - performed_via_github_app?: t_nullable_integration - pull_request?: { - diff_url: string | null - html_url: string | null - merged_at?: string | null - patch_url: string | null - url: string | null - } - reactions?: t_reaction_rollup - repository?: t_repository + performed_via_github_app?: t_nullable_integration | undefined + pull_request?: + | { + diff_url: string | null + html_url: string | null + merged_at?: (string | null) | undefined + patch_url: string | null + url: string | null + } + | undefined + reactions?: t_reaction_rollup | undefined + repository?: t_repository | undefined repository_url: string state: string - state_reason?: "completed" | "reopened" | "not_planned" | null - sub_issues_summary?: t_sub_issues_summary - timeline_url?: string + state_reason?: ("completed" | "reopened" | "not_planned" | null) | undefined + sub_issues_summary?: t_sub_issues_summary | undefined + timeline_url?: string | undefined title: string updated_at: string url: string @@ -3768,7 +3946,7 @@ export type t_nullable_issue = { } | null export type t_nullable_license_simple = { - html_url?: string + html_url?: string | undefined key: string name: string node_id: string @@ -3796,105 +3974,109 @@ export type t_nullable_milestone = { } | null export type t_nullable_minimal_repository = { - allow_forking?: boolean + allow_forking?: boolean | undefined archive_url: string - archived?: boolean + archived?: boolean | undefined assignees_url: string blobs_url: string branches_url: string - clone_url?: string - code_of_conduct?: t_code_of_conduct + clone_url?: string | undefined + code_of_conduct?: t_code_of_conduct | undefined collaborators_url: string comments_url: string commits_url: string compare_url: string contents_url: string contributors_url: string - created_at?: string | null - default_branch?: string - delete_branch_on_merge?: boolean + created_at?: (string | null) | undefined + default_branch?: string | undefined + delete_branch_on_merge?: boolean | undefined deployments_url: string description: string | null - disabled?: boolean + disabled?: boolean | undefined downloads_url: string events_url: string fork: boolean - forks?: number - forks_count?: number + forks?: number | undefined + forks_count?: number | undefined forks_url: string full_name: string git_commits_url: string git_refs_url: string git_tags_url: string - git_url?: string - has_discussions?: boolean - has_downloads?: boolean - has_issues?: boolean - has_pages?: boolean - has_projects?: boolean - has_wiki?: boolean - homepage?: string | null + git_url?: string | undefined + has_discussions?: boolean | undefined + has_downloads?: boolean | undefined + has_issues?: boolean | undefined + has_pages?: boolean | undefined + has_projects?: boolean | undefined + has_wiki?: boolean | undefined + homepage?: (string | null) | undefined hooks_url: string html_url: string id: number - is_template?: boolean + is_template?: boolean | undefined issue_comment_url: string issue_events_url: string issues_url: string keys_url: string labels_url: string - language?: string | null + language?: (string | null) | undefined languages_url: string - license?: { - key?: string - name?: string - node_id?: string - spdx_id?: string - url?: string - } | null + license?: + | ({ + key?: string | undefined + name?: string | undefined + node_id?: string | undefined + spdx_id?: string | undefined + url?: string | undefined + } | null) + | undefined merges_url: string milestones_url: string - mirror_url?: string | null + mirror_url?: (string | null) | undefined name: string - network_count?: number + network_count?: number | undefined node_id: string notifications_url: string - open_issues?: number - open_issues_count?: number + open_issues?: number | undefined + open_issues_count?: number | undefined owner: t_simple_user - permissions?: { - admin?: boolean - maintain?: boolean - pull?: boolean - push?: boolean - triage?: boolean - } + permissions?: + | { + admin?: boolean | undefined + maintain?: boolean | undefined + pull?: boolean | undefined + push?: boolean | undefined + triage?: boolean | undefined + } + | undefined private: boolean pulls_url: string - pushed_at?: string | null + pushed_at?: (string | null) | undefined releases_url: string - role_name?: string - security_and_analysis?: t_security_and_analysis - size?: number - ssh_url?: string - stargazers_count?: number + role_name?: string | undefined + security_and_analysis?: t_security_and_analysis | undefined + size?: number | undefined + ssh_url?: string | undefined + stargazers_count?: number | undefined stargazers_url: string statuses_url: string - subscribers_count?: number + subscribers_count?: number | undefined subscribers_url: string subscription_url: string - svn_url?: string + svn_url?: string | undefined tags_url: string teams_url: string - temp_clone_token?: string - topics?: string[] + temp_clone_token?: string | undefined + topics?: string[] | undefined trees_url: string - updated_at?: string | null + updated_at?: (string | null) | undefined url: string - visibility?: string - watchers?: number - watchers_count?: number - web_commit_signoff_required?: boolean + visibility?: string | undefined + watchers?: number | undefined + watchers_count?: number | undefined + web_commit_signoff_required?: boolean | undefined } | null export type t_nullable_organization_simple = { @@ -3913,13 +4095,13 @@ export type t_nullable_organization_simple = { } | null export type t_nullable_repository = { - allow_auto_merge?: boolean - allow_forking?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean - allow_update_branch?: boolean - anonymous_access_enabled?: boolean + allow_auto_merge?: boolean | undefined + allow_forking?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined + allow_update_branch?: boolean | undefined + anonymous_access_enabled?: boolean | undefined archive_url: string archived: boolean assignees_url: string @@ -3934,7 +4116,7 @@ export type t_nullable_repository = { contributors_url: string created_at: string | null default_branch: string - delete_branch_on_merge?: boolean + delete_branch_on_merge?: boolean | undefined deployments_url: string description: string | null disabled: boolean @@ -3949,7 +4131,7 @@ export type t_nullable_repository = { git_refs_url: string git_tags_url: string git_url: string - has_discussions?: boolean + has_discussions?: boolean | undefined has_downloads: boolean has_issues: boolean has_pages: boolean @@ -3959,7 +4141,7 @@ export type t_nullable_repository = { hooks_url: string html_url: string id: number - is_template?: boolean + is_template?: boolean | undefined issue_comment_url: string issue_events_url: string issues_url: string @@ -3968,9 +4150,9 @@ export type t_nullable_repository = { language: string | null languages_url: string license: t_nullable_license_simple - master_branch?: string - merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK" - merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" + master_branch?: string | undefined + merge_commit_message?: ("PR_BODY" | "PR_TITLE" | "BLANK") | undefined + merge_commit_title?: ("PR_TITLE" | "MERGE_MESSAGE") | undefined merges_url: string milestones_url: string mirror_url: string | null @@ -3980,50 +4162,54 @@ export type t_nullable_repository = { open_issues: number open_issues_count: number owner: t_simple_user - permissions?: { - admin: boolean - maintain?: boolean - pull: boolean - push: boolean - triage?: boolean - } + permissions?: + | { + admin: boolean + maintain?: boolean | undefined + pull: boolean + push: boolean + triage?: boolean | undefined + } + | undefined private: boolean pulls_url: string pushed_at: string | null releases_url: string size: number - squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" - squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" + squash_merge_commit_message?: + | ("PR_BODY" | "COMMIT_MESSAGES" | "BLANK") + | undefined + squash_merge_commit_title?: ("PR_TITLE" | "COMMIT_OR_PR_TITLE") | undefined ssh_url: string stargazers_count: number stargazers_url: string - starred_at?: string + starred_at?: string | undefined statuses_url: string subscribers_url: string subscription_url: string svn_url: string tags_url: string teams_url: string - temp_clone_token?: string - topics?: string[] + temp_clone_token?: string | undefined + topics?: string[] | undefined trees_url: string updated_at: string | null url: string - use_squash_pr_title_as_default?: boolean - visibility?: string + use_squash_pr_title_as_default?: boolean | undefined + visibility?: string | undefined watchers: number watchers_count: number - web_commit_signoff_required?: boolean + web_commit_signoff_required?: boolean | undefined } | null export type t_nullable_scoped_installation = { account: t_simple_user - has_multiple_single_files?: boolean + has_multiple_single_files?: boolean | undefined permissions: t_app_permissions repositories_url: string repository_selection: "all" | "selected" single_file_name: string | null - single_file_paths?: string[] + single_file_paths?: string[] | undefined } | null export type t_nullable_simple_commit = { @@ -4043,7 +4229,7 @@ export type t_nullable_simple_commit = { export type t_nullable_simple_user = { avatar_url: string - email?: string | null + email?: (string | null) | undefined events_url: string followers_url: string following_url: string @@ -4052,31 +4238,31 @@ export type t_nullable_simple_user = { html_url: string id: number login: string - name?: string | null + name?: (string | null) | undefined node_id: string organizations_url: string received_events_url: string repos_url: string site_admin: boolean - starred_at?: string + starred_at?: string | undefined starred_url: string subscriptions_url: string type: string url: string - user_view_type?: string + user_view_type?: string | undefined } | null export type t_nullable_team_simple = { description: string | null html_url: string id: number - ldap_dn?: string + ldap_dn?: string | undefined members_url: string name: string node_id: string - notification_setting?: string + notification_setting?: string | undefined permission: string - privacy?: string + privacy?: string | undefined repositories_url: string slug: string url: string @@ -4087,20 +4273,20 @@ export type t_oidc_custom_sub = { } export type t_oidc_custom_sub_repo = { - include_claim_keys?: string[] + include_claim_keys?: string[] | undefined use_default: boolean } export type t_org_hook = { active: boolean config: { - content_type?: string - insecure_ssl?: string - secret?: string - url?: string + content_type?: string | undefined + insecure_ssl?: string | undefined + secret?: string | undefined + url?: string | undefined } created_at: string - deliveries_url?: string + deliveries_url?: string | undefined events: string[] id: number name: string @@ -4113,9 +4299,11 @@ export type t_org_hook = { export type t_org_membership = { organization: t_organization_simple organization_url: string - permissions?: { - can_create_repository: boolean - } + permissions?: + | { + can_create_repository: boolean + } + | undefined role: "admin" | "member" | "billing_manager" state: "active" | "pending" url: string @@ -4140,7 +4328,7 @@ export type t_org_ruleset_conditions = export type t_organization_actions_secret = { created_at: string name: string - selected_repositories_url?: string + selected_repositories_url?: string | undefined updated_at: string visibility: "all" | "private" | "selected" } @@ -4148,7 +4336,7 @@ export type t_organization_actions_secret = { export type t_organization_actions_variable = { created_at: string name: string - selected_repositories_url?: string + selected_repositories_url?: string | undefined updated_at: string value: string visibility: "all" | "private" | "selected" @@ -4157,28 +4345,28 @@ export type t_organization_actions_variable = { export type t_organization_dependabot_secret = { created_at: string name: string - selected_repositories_url?: string + selected_repositories_url?: string | undefined updated_at: string visibility: "all" | "private" | "selected" } export type t_organization_full = { - advanced_security_enabled_for_new_repositories?: boolean + advanced_security_enabled_for_new_repositories?: boolean | undefined archived_at: string | null avatar_url: string - billing_email?: string | null - blog?: string - collaborators?: number | null - company?: string + billing_email?: (string | null) | undefined + blog?: string | undefined + collaborators?: (number | null) | undefined + company?: string | undefined created_at: string - default_repository_permission?: string | null - dependabot_alerts_enabled_for_new_repositories?: boolean - dependabot_security_updates_enabled_for_new_repositories?: boolean - dependency_graph_enabled_for_new_repositories?: boolean - deploy_keys_enabled_for_repositories?: boolean + default_repository_permission?: (string | null) | undefined + dependabot_alerts_enabled_for_new_repositories?: boolean | undefined + dependabot_security_updates_enabled_for_new_repositories?: boolean | undefined + dependency_graph_enabled_for_new_repositories?: boolean | undefined + deploy_keys_enabled_for_repositories?: boolean | undefined description: string | null - disk_usage?: number | null - email?: string + disk_usage?: (number | null) | undefined + email?: string | undefined events_url: string followers: number following: number @@ -4187,55 +4375,59 @@ export type t_organization_full = { hooks_url: string html_url: string id: number - is_verified?: boolean + is_verified?: boolean | undefined issues_url: string - location?: string + location?: string | undefined login: string - members_allowed_repository_creation_type?: string - members_can_create_internal_repositories?: boolean - members_can_create_pages?: boolean - members_can_create_private_pages?: boolean - members_can_create_private_repositories?: boolean - members_can_create_public_pages?: boolean - members_can_create_public_repositories?: boolean - members_can_create_repositories?: boolean | null - members_can_fork_private_repositories?: boolean | null + members_allowed_repository_creation_type?: string | undefined + members_can_create_internal_repositories?: boolean | undefined + members_can_create_pages?: boolean | undefined + members_can_create_private_pages?: boolean | undefined + members_can_create_private_repositories?: boolean | undefined + members_can_create_public_pages?: boolean | undefined + members_can_create_public_repositories?: boolean | undefined + members_can_create_repositories?: (boolean | null) | undefined + members_can_fork_private_repositories?: (boolean | null) | undefined members_url: string - name?: string + name?: string | undefined node_id: string - owned_private_repos?: number - plan?: { - filled_seats?: number - name: string - private_repos: number - seats?: number - space: number - } - private_gists?: number | null + owned_private_repos?: number | undefined + plan?: + | { + filled_seats?: number | undefined + name: string + private_repos: number + seats?: number | undefined + space: number + } + | undefined + private_gists?: (number | null) | undefined public_gists: number public_members_url: string public_repos: number repos_url: string - secret_scanning_enabled_for_new_repositories?: boolean - secret_scanning_push_protection_custom_link?: string | null - secret_scanning_push_protection_custom_link_enabled?: boolean - secret_scanning_push_protection_enabled_for_new_repositories?: boolean - total_private_repos?: number - twitter_username?: string | null - two_factor_requirement_enabled?: boolean | null + secret_scanning_enabled_for_new_repositories?: boolean | undefined + secret_scanning_push_protection_custom_link?: (string | null) | undefined + secret_scanning_push_protection_custom_link_enabled?: boolean | undefined + secret_scanning_push_protection_enabled_for_new_repositories?: + | boolean + | undefined + total_private_repos?: number | undefined + twitter_username?: (string | null) | undefined + two_factor_requirement_enabled?: (boolean | null) | undefined type: string updated_at: string url: string - web_commit_signoff_required?: boolean + web_commit_signoff_required?: boolean | undefined } export type t_organization_invitation = { created_at: string email: string | null - failed_at?: string | null - failed_reason?: string | null + failed_at?: (string | null) | undefined + failed_reason?: (string | null) | undefined id: number - invitation_source?: string + invitation_source?: string | undefined invitation_teams_url: string inviter: t_simple_user login: string | null @@ -4249,15 +4441,21 @@ export type t_organization_programmatic_access_grant = { id: number owner: t_simple_user permissions: { - organization?: { - [key: string]: string | undefined - } - other?: { - [key: string]: string | undefined - } - repository?: { - [key: string]: string | undefined - } + organization?: + | { + [key: string]: string | undefined + } + | undefined + other?: + | { + [key: string]: string | undefined + } + | undefined + repository?: + | { + [key: string]: string | undefined + } + | undefined } repositories_url: string repository_selection: "none" | "all" | "subset" @@ -4273,15 +4471,21 @@ export type t_organization_programmatic_access_grant_request = { id: number owner: t_simple_user permissions: { - organization?: { - [key: string]: string | undefined - } - other?: { - [key: string]: string | undefined - } - repository?: { - [key: string]: string | undefined - } + organization?: + | { + [key: string]: string | undefined + } + | undefined + other?: + | { + [key: string]: string | undefined + } + | undefined + repository?: + | { + [key: string]: string | undefined + } + | undefined } reason: string | null repositories_url: string @@ -4294,42 +4498,44 @@ export type t_organization_programmatic_access_grant_request = { } export type t_organization_role = { - base_role?: "read" | "triage" | "write" | "maintain" | "admin" | null + base_role?: + | ("read" | "triage" | "write" | "maintain" | "admin" | null) + | undefined created_at: string - description?: string | null + description?: (string | null) | undefined id: number name: string organization: t_nullable_simple_user permissions: string[] - source?: "Organization" | "Enterprise" | "Predefined" | null + source?: ("Organization" | "Enterprise" | "Predefined" | null) | undefined updated_at: string } export type t_organization_secret_scanning_alert = { - created_at?: t_alert_created_at - html_url?: t_alert_html_url - locations_url?: string - multi_repo?: boolean | null - number?: t_alert_number - publicly_leaked?: boolean | null - push_protection_bypass_request_comment?: string | null - push_protection_bypass_request_html_url?: string | null - push_protection_bypass_request_reviewer?: t_nullable_simple_user - push_protection_bypassed?: boolean | null - push_protection_bypassed_at?: string | null - push_protection_bypassed_by?: t_nullable_simple_user - repository?: t_simple_repository - resolution?: t_secret_scanning_alert_resolution - resolution_comment?: string | null - resolved_at?: string | null - resolved_by?: t_nullable_simple_user - secret?: string - secret_type?: string - secret_type_display_name?: string - state?: t_secret_scanning_alert_state - updated_at?: t_nullable_alert_updated_at - url?: t_alert_url - validity?: "active" | "inactive" | "unknown" + created_at?: t_alert_created_at | undefined + html_url?: t_alert_html_url | undefined + locations_url?: string | undefined + multi_repo?: (boolean | null) | undefined + number?: t_alert_number | undefined + publicly_leaked?: (boolean | null) | undefined + push_protection_bypass_request_comment?: (string | null) | undefined + push_protection_bypass_request_html_url?: (string | null) | undefined + push_protection_bypass_request_reviewer?: t_nullable_simple_user | undefined + push_protection_bypassed?: (boolean | null) | undefined + push_protection_bypassed_at?: (string | null) | undefined + push_protection_bypassed_by?: t_nullable_simple_user | undefined + repository?: t_simple_repository | undefined + resolution?: t_secret_scanning_alert_resolution | undefined + resolution_comment?: (string | null) | undefined + resolved_at?: (string | null) | undefined + resolved_by?: t_nullable_simple_user | undefined + secret?: string | undefined + secret_type?: string | undefined + secret_type_display_name?: string | undefined + state?: t_secret_scanning_alert_state | undefined + updated_at?: t_nullable_alert_updated_at | undefined + url?: t_alert_url | undefined + validity?: ("active" | "inactive" | "unknown") | undefined } export type t_organization_simple = { @@ -4352,9 +4558,9 @@ export type t_package = { html_url: string id: number name: string - owner?: t_nullable_simple_user + owner?: t_nullable_simple_user | undefined package_type: "npm" | "maven" | "rubygems" | "docker" | "nuget" | "container" - repository?: t_nullable_minimal_repository + repository?: t_nullable_minimal_repository | undefined updated_at: string url: string version_count: number @@ -4363,26 +4569,32 @@ export type t_package = { export type t_package_version = { created_at: string - deleted_at?: string - description?: string - html_url?: string - id: number - license?: string - metadata?: { - container?: { - tags: string[] - } - docker?: { - tag?: string[] - } - package_type: - | "npm" - | "maven" - | "rubygems" - | "docker" - | "nuget" - | "container" - } + deleted_at?: string | undefined + description?: string | undefined + html_url?: string | undefined + id: number + license?: string | undefined + metadata?: + | { + container?: + | { + tags: string[] + } + | undefined + docker?: + | { + tag?: string[] | undefined + } + | undefined + package_type: + | "npm" + | "maven" + | "rubygems" + | "docker" + | "nuget" + | "container" + } + | undefined name: string package_html_url: string updated_at: string @@ -4396,16 +4608,18 @@ export type t_packages_billing_usage = { } export type t_page = { - build_type?: "legacy" | "workflow" | null + build_type?: ("legacy" | "workflow" | null) | undefined cname: string | null custom_404: boolean - html_url?: string - https_certificate?: t_pages_https_certificate - https_enforced?: boolean - pending_domain_unverified_at?: string | null - protected_domain_state?: "pending" | "verified" | "unverified" | null + html_url?: string | undefined + https_certificate?: t_pages_https_certificate | undefined + https_enforced?: boolean | undefined + pending_domain_unverified_at?: (string | null) | undefined + protected_domain_state?: + | ("pending" | "verified" | "unverified" | null) + | undefined public: boolean - source?: t_pages_source_hash + source?: t_pages_source_hash | undefined status: "built" | "building" | "errored" | null url: string } @@ -4431,92 +4645,99 @@ export type t_page_build_status = { export type t_page_deployment = { id: number | string page_url: string - preview_url?: string + preview_url?: string | undefined status_url: string } export type t_pages_deployment_status = { status?: - | "deployment_in_progress" - | "syncing_files" - | "finished_file_sync" - | "updating_pages" - | "purging_cdn" - | "deployment_cancelled" - | "deployment_failed" - | "deployment_content_failed" - | "deployment_attempt_error" - | "deployment_lost" - | "succeed" + | ( + | "deployment_in_progress" + | "syncing_files" + | "finished_file_sync" + | "updating_pages" + | "purging_cdn" + | "deployment_cancelled" + | "deployment_failed" + | "deployment_content_failed" + | "deployment_attempt_error" + | "deployment_lost" + | "succeed" + ) + | undefined } export type t_pages_health_check = { - alt_domain?: { - caa_error?: string | null - dns_resolves?: boolean - enforces_https?: boolean - has_cname_record?: boolean | null - has_mx_records_present?: boolean | null - host?: string - https_error?: string | null - is_a_record?: boolean | null - is_apex_domain?: boolean - is_cloudflare_ip?: boolean | null - is_cname_to_fastly?: boolean | null - is_cname_to_github_user_domain?: boolean | null - is_cname_to_pages_dot_github_dot_com?: boolean | null - is_fastly_ip?: boolean | null - is_https_eligible?: boolean | null - is_non_github_pages_ip_present?: boolean | null - is_old_ip_address?: boolean | null - is_pages_domain?: boolean - is_pointed_to_github_pages_ip?: boolean | null - is_proxied?: boolean | null - is_served_by_pages?: boolean | null - is_valid?: boolean - is_valid_domain?: boolean - nameservers?: string - reason?: string | null - responds_to_https?: boolean - should_be_a_record?: boolean | null - uri?: string - } | null - domain?: { - caa_error?: string | null - dns_resolves?: boolean - enforces_https?: boolean - has_cname_record?: boolean | null - has_mx_records_present?: boolean | null - host?: string - https_error?: string | null - is_a_record?: boolean | null - is_apex_domain?: boolean - is_cloudflare_ip?: boolean | null - is_cname_to_fastly?: boolean | null - is_cname_to_github_user_domain?: boolean | null - is_cname_to_pages_dot_github_dot_com?: boolean | null - is_fastly_ip?: boolean | null - is_https_eligible?: boolean | null - is_non_github_pages_ip_present?: boolean | null - is_old_ip_address?: boolean | null - is_pages_domain?: boolean - is_pointed_to_github_pages_ip?: boolean | null - is_proxied?: boolean | null - is_served_by_pages?: boolean | null - is_valid?: boolean - is_valid_domain?: boolean - nameservers?: string - reason?: string | null - responds_to_https?: boolean - should_be_a_record?: boolean | null - uri?: string - } + alt_domain?: + | ({ + caa_error?: (string | null) | undefined + dns_resolves?: boolean | undefined + enforces_https?: boolean | undefined + has_cname_record?: (boolean | null) | undefined + has_mx_records_present?: (boolean | null) | undefined + host?: string | undefined + https_error?: (string | null) | undefined + is_a_record?: (boolean | null) | undefined + is_apex_domain?: boolean | undefined + is_cloudflare_ip?: (boolean | null) | undefined + is_cname_to_fastly?: (boolean | null) | undefined + is_cname_to_github_user_domain?: (boolean | null) | undefined + is_cname_to_pages_dot_github_dot_com?: (boolean | null) | undefined + is_fastly_ip?: (boolean | null) | undefined + is_https_eligible?: (boolean | null) | undefined + is_non_github_pages_ip_present?: (boolean | null) | undefined + is_old_ip_address?: (boolean | null) | undefined + is_pages_domain?: boolean | undefined + is_pointed_to_github_pages_ip?: (boolean | null) | undefined + is_proxied?: (boolean | null) | undefined + is_served_by_pages?: (boolean | null) | undefined + is_valid?: boolean | undefined + is_valid_domain?: boolean | undefined + nameservers?: string | undefined + reason?: (string | null) | undefined + responds_to_https?: boolean | undefined + should_be_a_record?: (boolean | null) | undefined + uri?: string | undefined + } | null) + | undefined + domain?: + | { + caa_error?: (string | null) | undefined + dns_resolves?: boolean | undefined + enforces_https?: boolean | undefined + has_cname_record?: (boolean | null) | undefined + has_mx_records_present?: (boolean | null) | undefined + host?: string | undefined + https_error?: (string | null) | undefined + is_a_record?: (boolean | null) | undefined + is_apex_domain?: boolean | undefined + is_cloudflare_ip?: (boolean | null) | undefined + is_cname_to_fastly?: (boolean | null) | undefined + is_cname_to_github_user_domain?: (boolean | null) | undefined + is_cname_to_pages_dot_github_dot_com?: (boolean | null) | undefined + is_fastly_ip?: (boolean | null) | undefined + is_https_eligible?: (boolean | null) | undefined + is_non_github_pages_ip_present?: (boolean | null) | undefined + is_old_ip_address?: (boolean | null) | undefined + is_pages_domain?: boolean | undefined + is_pointed_to_github_pages_ip?: (boolean | null) | undefined + is_proxied?: (boolean | null) | undefined + is_served_by_pages?: (boolean | null) | undefined + is_valid?: boolean | undefined + is_valid_domain?: boolean | undefined + nameservers?: string | undefined + reason?: (string | null) | undefined + responds_to_https?: boolean | undefined + should_be_a_record?: (boolean | null) | undefined + uri?: string | undefined + } + | undefined } export type t_pages_https_certificate = { description: string domains: string[] - expires_at?: string + expires_at?: string | undefined state: | "new" | "authorization_created" @@ -4545,15 +4766,15 @@ export type t_participation_stats = { export type t_pending_deployment = { current_user_can_approve: boolean environment: { - html_url?: string - id?: number - name?: string - node_id?: string - url?: string + html_url?: string | undefined + id?: number | undefined + name?: string | undefined + node_id?: string | undefined + url?: string | undefined } reviewers: { - reviewer?: t_simple_user | t_team - type?: t_deployment_reviewer_type + reviewer?: (t_simple_user | t_team) | undefined + type?: t_deployment_reviewer_type | undefined }[] wait_timer: number wait_timer_started_at: string | null @@ -4582,7 +4803,7 @@ export type t_private_user = { avatar_url: string bio: string | null blog: string | null - business_plus?: boolean + business_plus?: boolean | undefined collaborators: number company: string | null created_at: string @@ -4598,20 +4819,22 @@ export type t_private_user = { hireable: boolean | null html_url: string id: number - ldap_dn?: string + ldap_dn?: string | undefined location: string | null login: string name: string | null node_id: string - notification_email?: string | null + notification_email?: (string | null) | undefined organizations_url: string owned_private_repos: number - plan?: { - collaborators: number - name: string - private_repos: number - space: number - } + plan?: + | { + collaborators: number + name: string + private_repos: number + space: number + } + | undefined private_gists: number public_gists: number public_repos: number @@ -4621,32 +4844,35 @@ export type t_private_user = { starred_url: string subscriptions_url: string total_private_repos: number - twitter_username?: string | null + twitter_username?: (string | null) | undefined two_factor_authentication: boolean type: string updated_at: string url: string - user_view_type?: string + user_view_type?: string | undefined } export type t_private_vulnerability_report_create = { - cvss_vector_string?: string | null - cwe_ids?: string[] | null + cvss_vector_string?: (string | null) | undefined + cwe_ids?: (string[] | null) | undefined description: string - severity?: "critical" | "high" | "medium" | "low" | null - start_private_fork?: boolean + severity?: ("critical" | "high" | "medium" | "low" | null) | undefined + start_private_fork?: boolean | undefined summary: string vulnerabilities?: - | { - package: { - ecosystem: t_security_advisory_ecosystems - name?: string | null - } - patched_versions?: string | null - vulnerable_functions?: string[] | null - vulnerable_version_range?: string | null - }[] - | null + | ( + | { + package: { + ecosystem: t_security_advisory_ecosystems + name?: (string | null) | undefined + } + patched_versions?: (string | null) | undefined + vulnerable_functions?: (string[] | null) | undefined + vulnerable_version_range?: (string | null) | undefined + }[] + | null + ) + | undefined } export type t_project = { @@ -4659,25 +4885,25 @@ export type t_project = { name: string node_id: string number: number - organization_permission?: "read" | "write" | "admin" | "none" + organization_permission?: ("read" | "write" | "admin" | "none") | undefined owner_url: string - private?: boolean + private?: boolean | undefined state: string updated_at: string url: string } export type t_project_card = { - archived?: boolean - column_name?: string + archived?: boolean | undefined + column_name?: string | undefined column_url: string - content_url?: string + content_url?: string | undefined created_at: string creator: t_nullable_simple_user id: number node_id: string note: string | null - project_id?: string + project_id?: string | undefined project_url: string updated_at: string url: string @@ -4700,57 +4926,81 @@ export type t_project_column = { } export type t_protected_branch = { - allow_deletions?: { - enabled: boolean - } - allow_force_pushes?: { - enabled: boolean - } - allow_fork_syncing?: { - enabled?: boolean - } - block_creations?: { - enabled: boolean - } - enforce_admins?: { - enabled: boolean - url: string - } - lock_branch?: { - enabled?: boolean - } - required_conversation_resolution?: { - enabled?: boolean - } - required_linear_history?: { - enabled: boolean - } - required_pull_request_reviews?: { - bypass_pull_request_allowances?: { - apps?: t_integration[] - teams: t_team[] - users: t_simple_user[] - } - dismiss_stale_reviews?: boolean - dismissal_restrictions?: { - apps?: t_integration[] - teams: t_team[] - teams_url: string - url: string - users: t_simple_user[] - users_url: string - } - require_code_owner_reviews?: boolean - require_last_push_approval?: boolean - required_approving_review_count?: number - url: string - } - required_signatures?: { - enabled: boolean - url: string - } - required_status_checks?: t_status_check_policy - restrictions?: t_branch_restriction_policy + allow_deletions?: + | { + enabled: boolean + } + | undefined + allow_force_pushes?: + | { + enabled: boolean + } + | undefined + allow_fork_syncing?: + | { + enabled?: boolean | undefined + } + | undefined + block_creations?: + | { + enabled: boolean + } + | undefined + enforce_admins?: + | { + enabled: boolean + url: string + } + | undefined + lock_branch?: + | { + enabled?: boolean | undefined + } + | undefined + required_conversation_resolution?: + | { + enabled?: boolean | undefined + } + | undefined + required_linear_history?: + | { + enabled: boolean + } + | undefined + required_pull_request_reviews?: + | { + bypass_pull_request_allowances?: + | { + apps?: t_integration[] | undefined + teams: t_team[] + users: t_simple_user[] + } + | undefined + dismiss_stale_reviews?: boolean | undefined + dismissal_restrictions?: + | { + apps?: t_integration[] | undefined + teams: t_team[] + teams_url: string + url: string + users: t_simple_user[] + users_url: string + } + | undefined + require_code_owner_reviews?: boolean | undefined + require_last_push_approval?: boolean | undefined + required_approving_review_count?: number | undefined + url: string + } + | undefined + required_signatures?: + | { + enabled: boolean + url: string + } + | undefined + required_status_checks?: t_status_check_policy | undefined + restrictions?: t_branch_restriction_policy | undefined url: string } @@ -4760,24 +5010,28 @@ export type t_protected_branch_admin_enforced = { } export type t_protected_branch_pull_request_review = { - bypass_pull_request_allowances?: { - apps?: t_integration[] - teams?: t_team[] - users?: t_simple_user[] - } + bypass_pull_request_allowances?: + | { + apps?: t_integration[] | undefined + teams?: t_team[] | undefined + users?: t_simple_user[] | undefined + } + | undefined dismiss_stale_reviews: boolean - dismissal_restrictions?: { - apps?: t_integration[] - teams?: t_team[] - teams_url?: string - url?: string - users?: t_simple_user[] - users_url?: string - } + dismissal_restrictions?: + | { + apps?: t_integration[] | undefined + teams?: t_team[] | undefined + teams_url?: string | undefined + url?: string | undefined + users?: t_simple_user[] | undefined + users_url?: string | undefined + } + | undefined require_code_owner_reviews: boolean - require_last_push_approval?: boolean - required_approving_review_count?: number - url?: string + require_last_push_approval?: boolean | undefined + required_approving_review_count?: number | undefined + url?: string | undefined } export type t_protected_branch_required_status_check = { @@ -4786,20 +5040,20 @@ export type t_protected_branch_required_status_check = { context: string }[] contexts: string[] - contexts_url?: string - enforcement_level?: string - strict?: boolean - url?: string + contexts_url?: string | undefined + enforcement_level?: string | undefined + strict?: boolean | undefined + url?: string | undefined } export type t_public_user = { avatar_url: string bio: string | null blog: string | null - collaborators?: number + collaborators?: number | undefined company: string | null created_at: string - disk_usage?: number + disk_usage?: number | undefined email: string | null events_url: string followers: number @@ -4815,16 +5069,18 @@ export type t_public_user = { login: string name: string | null node_id: string - notification_email?: string | null + notification_email?: (string | null) | undefined organizations_url: string - owned_private_repos?: number - plan?: { - collaborators: number - name: string - private_repos: number - space: number - } - private_gists?: number + owned_private_repos?: number | undefined + plan?: + | { + collaborators: number + name: string + private_repos: number + space: number + } + | undefined + private_gists?: number | undefined public_gists: number public_repos: number received_events_url: string @@ -4832,12 +5088,12 @@ export type t_public_user = { site_admin: boolean starred_url: string subscriptions_url: string - total_private_repos?: number - twitter_username?: string | null + total_private_repos?: number | undefined + twitter_username?: (string | null) | undefined type: string updated_at: string url: string - user_view_type?: string + user_view_type?: string | undefined } export type t_pull_request = { @@ -4851,10 +5107,10 @@ export type t_pull_request = { self: t_link statuses: t_link } - active_lock_reason?: string | null + active_lock_reason?: (string | null) | undefined additions: number assignee: t_nullable_simple_user - assignees?: t_simple_user[] | null + assignees?: (t_simple_user[] | null) | undefined author_association: t_author_association auto_merge: t_auto_merge base: { @@ -4874,7 +5130,7 @@ export type t_pull_request = { created_at: string deletions: number diff_url: string - draft?: boolean + draft?: boolean | undefined head: { label: string ref: string @@ -4906,9 +5162,9 @@ export type t_pull_request = { node_id: string number: number patch_url: string - rebaseable?: boolean | null - requested_reviewers?: t_simple_user[] | null - requested_teams?: t_team_simple[] | null + rebaseable?: (boolean | null) | undefined + requested_reviewers?: (t_simple_user[] | null) | undefined + requested_teams?: (t_team_simple[] | null) | undefined review_comment_url: string review_comments: number review_comments_url: string @@ -4961,15 +5217,15 @@ export type t_pull_request_review = { } author_association: t_author_association body: string - body_html?: string - body_text?: string + body_html?: string | undefined + body_text?: string | undefined commit_id: string | null html_url: string id: number node_id: string pull_request_url: string state: string - submitted_at?: string + submitted_at?: string | undefined user: t_nullable_simple_user } @@ -4987,29 +5243,29 @@ export type t_pull_request_review_comment = { } author_association: t_author_association body: string - body_html?: string - body_text?: string + body_html?: string | undefined + body_text?: string | undefined commit_id: string created_at: string diff_hunk: string html_url: string id: number - in_reply_to_id?: number - line?: number + in_reply_to_id?: number | undefined + line?: number | undefined node_id: string original_commit_id: string - original_line?: number - original_position?: number - original_start_line?: number | null + original_line?: number | undefined + original_position?: number | undefined + original_start_line?: (number | null) | undefined path: string - position?: number + position?: number | undefined pull_request_review_id: number | null pull_request_url: string - reactions?: t_reaction_rollup - side?: "LEFT" | "RIGHT" - start_line?: number | null - start_side?: "LEFT" | "RIGHT" | null - subject_type?: "line" | "file" + reactions?: t_reaction_rollup | undefined + side?: ("LEFT" | "RIGHT") | undefined + start_line?: (number | null) | undefined + start_side?: ("LEFT" | "RIGHT" | null) | undefined + subject_type?: ("line" | "file") | undefined updated_at: string url: string user: t_simple_user @@ -5031,9 +5287,9 @@ export type t_pull_request_simple = { self: t_link statuses: t_link } - active_lock_reason?: string | null + active_lock_reason?: (string | null) | undefined assignee: t_nullable_simple_user - assignees?: t_simple_user[] | null + assignees?: (t_simple_user[] | null) | undefined author_association: t_author_association auto_merge: t_auto_merge base: { @@ -5049,7 +5305,7 @@ export type t_pull_request_simple = { commits_url: string created_at: string diff_url: string - draft?: boolean + draft?: boolean | undefined head: { label: string ref: string @@ -5076,8 +5332,8 @@ export type t_pull_request_simple = { node_id: string number: number patch_url: string - requested_reviewers?: t_simple_user[] | null - requested_teams?: t_team[] | null + requested_reviewers?: (t_simple_user[] | null) | undefined + requested_teams?: (t_team[] | null) | undefined review_comment_url: string review_comments_url: string state: string @@ -5098,16 +5354,16 @@ export type t_rate_limit = { export type t_rate_limit_overview = { rate: t_rate_limit resources: { - actions_runner_registration?: t_rate_limit - code_scanning_upload?: t_rate_limit - code_search?: t_rate_limit + actions_runner_registration?: t_rate_limit | undefined + code_scanning_upload?: t_rate_limit | undefined + code_search?: t_rate_limit | undefined core: t_rate_limit - dependency_snapshots?: t_rate_limit - graphql?: t_rate_limit - integration_manifest?: t_rate_limit - scim?: t_rate_limit + dependency_snapshots?: t_rate_limit | undefined + graphql?: t_rate_limit | undefined + integration_manifest?: t_rate_limit | undefined + scim?: t_rate_limit | undefined search: t_rate_limit - source_import?: t_rate_limit + source_import?: t_rate_limit | undefined } } @@ -5142,7 +5398,7 @@ export type t_reaction_rollup = { export type t_referenced_workflow = { path: string - ref?: string + ref?: string | undefined sha: string } @@ -5156,20 +5412,20 @@ export type t_release = { assets: t_release_asset[] assets_url: string author: t_simple_user - body?: string | null - body_html?: string - body_text?: string + body?: (string | null) | undefined + body_html?: string | undefined + body_text?: string | undefined created_at: string - discussion_url?: string + discussion_url?: string | undefined draft: boolean html_url: string id: number - mentions_count?: number + mentions_count?: number | undefined name: string | null node_id: string prerelease: boolean published_at: string | null - reactions?: t_reaction_rollup + reactions?: t_reaction_rollup | undefined tag_name: string tarball_url: string | null target_commitish: string @@ -5208,14 +5464,16 @@ export type t_removed_from_project_issue_event = { id: number node_id: string performed_via_github_app: t_nullable_integration - project_card?: { - column_name: string - id: number - previous_column_name?: string - project_id: number - project_url: string - url: string - } + project_card?: + | { + column_name: string + id: number + previous_column_name?: string | undefined + project_id: number + project_url: string + url: string + } + | undefined url: string } @@ -5242,11 +5500,11 @@ export type t_repo_codespaces_secret = { } export type t_repo_search_result_item = { - allow_auto_merge?: boolean - allow_forking?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean + allow_auto_merge?: boolean | undefined + allow_forking?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined archive_url: string archived: boolean assignees_url: string @@ -5261,7 +5519,7 @@ export type t_repo_search_result_item = { contributors_url: string created_at: string default_branch: string - delete_branch_on_merge?: boolean + delete_branch_on_merge?: boolean | undefined deployments_url: string description: string | null disabled: boolean @@ -5276,7 +5534,7 @@ export type t_repo_search_result_item = { git_refs_url: string git_tags_url: string git_url: string - has_discussions?: boolean + has_discussions?: boolean | undefined has_downloads: boolean has_issues: boolean has_pages: boolean @@ -5286,7 +5544,7 @@ export type t_repo_search_result_item = { hooks_url: string html_url: string id: number - is_template?: boolean + is_template?: boolean | undefined issue_comment_url: string issue_events_url: string issues_url: string @@ -5295,7 +5553,7 @@ export type t_repo_search_result_item = { language: string | null languages_url: string license: t_nullable_license_simple - master_branch?: string + master_branch?: string | undefined merges_url: string milestones_url: string mirror_url: string | null @@ -5305,13 +5563,15 @@ export type t_repo_search_result_item = { open_issues: number open_issues_count: number owner: t_nullable_simple_user - permissions?: { - admin: boolean - maintain?: boolean - pull: boolean - push: boolean - triage?: boolean - } + permissions?: + | { + admin: boolean + maintain?: boolean | undefined + pull: boolean + push: boolean + triage?: boolean | undefined + } + | undefined private: boolean pulls_url: string pushed_at: string @@ -5327,26 +5587,26 @@ export type t_repo_search_result_item = { svn_url: string tags_url: string teams_url: string - temp_clone_token?: string - text_matches?: t_search_result_text_matches - topics?: string[] + temp_clone_token?: string | undefined + text_matches?: t_search_result_text_matches | undefined + topics?: string[] | undefined trees_url: string updated_at: string url: string - visibility?: string + visibility?: string | undefined watchers: number watchers_count: number - web_commit_signoff_required?: boolean + web_commit_signoff_required?: boolean | undefined } export type t_repository = { - allow_auto_merge?: boolean - allow_forking?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean - allow_update_branch?: boolean - anonymous_access_enabled?: boolean + allow_auto_merge?: boolean | undefined + allow_forking?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined + allow_update_branch?: boolean | undefined + anonymous_access_enabled?: boolean | undefined archive_url: string archived: boolean assignees_url: string @@ -5361,7 +5621,7 @@ export type t_repository = { contributors_url: string created_at: string | null default_branch: string - delete_branch_on_merge?: boolean + delete_branch_on_merge?: boolean | undefined deployments_url: string description: string | null disabled: boolean @@ -5376,7 +5636,7 @@ export type t_repository = { git_refs_url: string git_tags_url: string git_url: string - has_discussions?: boolean + has_discussions?: boolean | undefined has_downloads: boolean has_issues: boolean has_pages: boolean @@ -5386,7 +5646,7 @@ export type t_repository = { hooks_url: string html_url: string id: number - is_template?: boolean + is_template?: boolean | undefined issue_comment_url: string issue_events_url: string issues_url: string @@ -5395,9 +5655,9 @@ export type t_repository = { language: string | null languages_url: string license: t_nullable_license_simple - master_branch?: string - merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK" - merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" + master_branch?: string | undefined + merge_commit_message?: ("PR_BODY" | "PR_TITLE" | "BLANK") | undefined + merge_commit_title?: ("PR_TITLE" | "MERGE_MESSAGE") | undefined merges_url: string milestones_url: string mirror_url: string | null @@ -5407,40 +5667,44 @@ export type t_repository = { open_issues: number open_issues_count: number owner: t_simple_user - permissions?: { - admin: boolean - maintain?: boolean - pull: boolean - push: boolean - triage?: boolean - } + permissions?: + | { + admin: boolean + maintain?: boolean | undefined + pull: boolean + push: boolean + triage?: boolean | undefined + } + | undefined private: boolean pulls_url: string pushed_at: string | null releases_url: string size: number - squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" - squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" + squash_merge_commit_message?: + | ("PR_BODY" | "COMMIT_MESSAGES" | "BLANK") + | undefined + squash_merge_commit_title?: ("PR_TITLE" | "COMMIT_OR_PR_TITLE") | undefined ssh_url: string stargazers_count: number stargazers_url: string - starred_at?: string + starred_at?: string | undefined statuses_url: string subscribers_url: string subscription_url: string svn_url: string tags_url: string teams_url: string - temp_clone_token?: string - topics?: string[] + temp_clone_token?: string | undefined + topics?: string[] | undefined trees_url: string updated_at: string | null url: string - use_squash_pr_title_as_default?: boolean - visibility?: string + use_squash_pr_title_as_default?: boolean | undefined + visibility?: string | undefined watchers: number watchers_count: number - web_commit_signoff_required?: boolean + web_commit_signoff_required?: boolean | undefined } export type t_repository_advisory = { @@ -5451,8 +5715,8 @@ export type t_repository_advisory = { readonly created_at: string | null credits: | { - login?: string - type?: t_security_advisory_credit_types + login?: string | undefined + type?: t_security_advisory_credit_types | undefined }[] | null readonly credits_detailed: t_repository_advisory_credit[] | null @@ -5461,7 +5725,7 @@ export type t_repository_advisory = { readonly score: number | null vector_string: string | null } | null - cvss_severities?: t_cvss_severities + cvss_severities?: t_cvss_severities | undefined cwe_ids: string[] | null readonly cwes: | { @@ -5493,26 +5757,29 @@ export type t_repository_advisory = { export type t_repository_advisory_create = { credits?: - | { - login: string - type: t_security_advisory_credit_types - }[] - | null - cve_id?: string | null - cvss_vector_string?: string | null - cwe_ids?: string[] | null + | ( + | { + login: string + type: t_security_advisory_credit_types + }[] + | null + ) + | undefined + cve_id?: (string | null) | undefined + cvss_vector_string?: (string | null) | undefined + cwe_ids?: (string[] | null) | undefined description: string - severity?: "critical" | "high" | "medium" | "low" | null - start_private_fork?: boolean + severity?: ("critical" | "high" | "medium" | "low" | null) | undefined + start_private_fork?: boolean | undefined summary: string vulnerabilities: { package: { ecosystem: t_security_advisory_ecosystems - name?: string | null + name?: (string | null) | undefined } - patched_versions?: string | null - vulnerable_functions?: string[] | null - vulnerable_version_range?: string | null + patched_versions?: (string | null) | undefined + vulnerable_functions?: (string[] | null) | undefined + vulnerable_version_range?: (string | null) | undefined }[] } @@ -5523,30 +5790,35 @@ export type t_repository_advisory_credit = { } export type t_repository_advisory_update = { - collaborating_teams?: string[] | null - collaborating_users?: string[] | null + collaborating_teams?: (string[] | null) | undefined + collaborating_users?: (string[] | null) | undefined credits?: + | ( + | { + login: string + type: t_security_advisory_credit_types + }[] + | null + ) + | undefined + cve_id?: (string | null) | undefined + cvss_vector_string?: (string | null) | undefined + cwe_ids?: (string[] | null) | undefined + description?: string | undefined + severity?: ("critical" | "high" | "medium" | "low" | null) | undefined + state?: ("published" | "closed" | "draft") | undefined + summary?: string | undefined + vulnerabilities?: | { - login: string - type: t_security_advisory_credit_types + package: { + ecosystem: t_security_advisory_ecosystems + name?: (string | null) | undefined + } + patched_versions?: (string | null) | undefined + vulnerable_functions?: (string[] | null) | undefined + vulnerable_version_range?: (string | null) | undefined }[] - | null - cve_id?: string | null - cvss_vector_string?: string | null - cwe_ids?: string[] | null - description?: string - severity?: "critical" | "high" | "medium" | "low" | null - state?: "published" | "closed" | "draft" - summary?: string - vulnerabilities?: { - package: { - ecosystem: t_security_advisory_ecosystems - name?: string | null - } - patched_versions?: string | null - vulnerable_functions?: string[] | null - vulnerable_version_range?: string | null - }[] + | undefined } export type t_repository_advisory_vulnerability = { @@ -5567,7 +5839,7 @@ export type t_repository_collaborator_permission = { export type t_repository_invitation = { created_at: string - expired?: boolean + expired?: boolean | undefined html_url: string id: number invitee: t_nullable_simple_user @@ -5595,76 +5867,94 @@ export type t_repository_rule = | t_repository_rule_branch_name_pattern | t_repository_rule_tag_name_pattern | { - parameters?: { - restricted_file_paths: string[] - } + parameters?: + | { + restricted_file_paths: string[] + } + | undefined type: "file_path_restriction" } | { - parameters?: { - max_file_path_length: number - } + parameters?: + | { + max_file_path_length: number + } + | undefined type: "max_file_path_length" } | { - parameters?: { - restricted_file_extensions: string[] - } + parameters?: + | { + restricted_file_extensions: string[] + } + | undefined type: "file_extension_restriction" } | { - parameters?: { - max_file_size: number - } + parameters?: + | { + max_file_size: number + } + | undefined type: "max_file_size" } | t_repository_rule_workflows | t_repository_rule_code_scanning export type t_repository_rule_branch_name_pattern = { - parameters?: { - name?: string - negate?: boolean - operator: "starts_with" | "ends_with" | "contains" | "regex" - pattern: string - } + parameters?: + | { + name?: string | undefined + negate?: boolean | undefined + operator: "starts_with" | "ends_with" | "contains" | "regex" + pattern: string + } + | undefined type: "branch_name_pattern" } export type t_repository_rule_code_scanning = { - parameters?: { - code_scanning_tools: t_repository_rule_params_code_scanning_tool[] - } + parameters?: + | { + code_scanning_tools: t_repository_rule_params_code_scanning_tool[] + } + | undefined type: "code_scanning" } export type t_repository_rule_commit_author_email_pattern = { - parameters?: { - name?: string - negate?: boolean - operator: "starts_with" | "ends_with" | "contains" | "regex" - pattern: string - } + parameters?: + | { + name?: string | undefined + negate?: boolean | undefined + operator: "starts_with" | "ends_with" | "contains" | "regex" + pattern: string + } + | undefined type: "commit_author_email_pattern" } export type t_repository_rule_commit_message_pattern = { - parameters?: { - name?: string - negate?: boolean - operator: "starts_with" | "ends_with" | "contains" | "regex" - pattern: string - } + parameters?: + | { + name?: string | undefined + negate?: boolean | undefined + operator: "starts_with" | "ends_with" | "contains" | "regex" + pattern: string + } + | undefined type: "commit_message_pattern" } export type t_repository_rule_committer_email_pattern = { - parameters?: { - name?: string - negate?: boolean - operator: "starts_with" | "ends_with" | "contains" | "regex" - pattern: string - } + parameters?: + | { + name?: string | undefined + negate?: boolean | undefined + operator: "starts_with" | "ends_with" | "contains" | "regex" + pattern: string + } + | undefined type: "committer_email_pattern" } @@ -5699,15 +5989,17 @@ export type t_repository_rule_detailed = export type t_repository_rule_enforcement = "disabled" | "active" | "evaluate" export type t_repository_rule_merge_queue = { - parameters?: { - check_response_timeout_minutes: number - grouping_strategy: "ALLGREEN" | "HEADGREEN" - max_entries_to_build: number - max_entries_to_merge: number - merge_method: "MERGE" | "SQUASH" | "REBASE" - min_entries_to_merge: number - min_entries_to_merge_wait_minutes: number - } + parameters?: + | { + check_response_timeout_minutes: number + grouping_strategy: "ALLGREEN" | "HEADGREEN" + max_entries_to_build: number + max_entries_to_merge: number + merge_method: "MERGE" | "SQUASH" | "REBASE" + min_entries_to_merge: number + min_entries_to_merge_wait_minutes: number + } + | undefined type: "merge_queue" } @@ -5728,31 +6020,35 @@ export type t_repository_rule_params_code_scanning_tool = { export type t_repository_rule_params_status_check_configuration = { context: string - integration_id?: number + integration_id?: number | undefined } export type t_repository_rule_params_workflow_file_reference = { path: string - ref?: string + ref?: string | undefined repository_id: number - sha?: string + sha?: string | undefined } export type t_repository_rule_pull_request = { - parameters?: { - dismiss_stale_reviews_on_push: boolean - require_code_owner_review: boolean - require_last_push_approval: boolean - required_approving_review_count: number - required_review_thread_resolution: boolean - } + parameters?: + | { + dismiss_stale_reviews_on_push: boolean + require_code_owner_review: boolean + require_last_push_approval: boolean + required_approving_review_count: number + required_review_thread_resolution: boolean + } + | undefined type: "pull_request" } export type t_repository_rule_required_deployments = { - parameters?: { - required_deployment_environments: string[] - } + parameters?: + | { + required_deployment_environments: string[] + } + | undefined type: "required_deployments" } @@ -5765,125 +6061,157 @@ export type t_repository_rule_required_signatures = { } export type t_repository_rule_required_status_checks = { - parameters?: { - do_not_enforce_on_create?: boolean - required_status_checks: t_repository_rule_params_status_check_configuration[] - strict_required_status_checks_policy: boolean - } + parameters?: + | { + do_not_enforce_on_create?: boolean | undefined + required_status_checks: t_repository_rule_params_status_check_configuration[] + strict_required_status_checks_policy: boolean + } + | undefined type: "required_status_checks" } export type t_repository_rule_ruleset_info = { - ruleset_id?: number - ruleset_source?: string - ruleset_source_type?: "Repository" | "Organization" + ruleset_id?: number | undefined + ruleset_source?: string | undefined + ruleset_source_type?: ("Repository" | "Organization") | undefined } export type t_repository_rule_tag_name_pattern = { - parameters?: { - name?: string - negate?: boolean - operator: "starts_with" | "ends_with" | "contains" | "regex" - pattern: string - } + parameters?: + | { + name?: string | undefined + negate?: boolean | undefined + operator: "starts_with" | "ends_with" | "contains" | "regex" + pattern: string + } + | undefined type: "tag_name_pattern" } export type t_repository_rule_update = { - parameters?: { - update_allows_fetch_and_merge: boolean - } + parameters?: + | { + update_allows_fetch_and_merge: boolean + } + | undefined type: "update" } export type t_repository_rule_violation_error = { - documentation_url?: string - message?: string - metadata?: { - secret_scanning?: { - bypass_placeholders?: { - placeholder_id?: t_secret_scanning_push_protection_bypass_placeholder_id - token_type?: string - }[] - } - } - status?: string + documentation_url?: string | undefined + message?: string | undefined + metadata?: + | { + secret_scanning?: + | { + bypass_placeholders?: + | { + placeholder_id?: + | t_secret_scanning_push_protection_bypass_placeholder_id + | undefined + token_type?: string | undefined + }[] + | undefined + } + | undefined + } + | undefined + status?: string | undefined } export type t_repository_rule_workflows = { - parameters?: { - do_not_enforce_on_create?: boolean - workflows: t_repository_rule_params_workflow_file_reference[] - } + parameters?: + | { + do_not_enforce_on_create?: boolean | undefined + workflows: t_repository_rule_params_workflow_file_reference[] + } + | undefined type: "workflows" } export type t_repository_ruleset = { - _links?: { - html?: { - href?: string - } | null - self?: { - href?: string - } - } - bypass_actors?: t_repository_ruleset_bypass_actor[] - conditions?: t_repository_ruleset_conditions | t_org_ruleset_conditions | null - created_at?: string - current_user_can_bypass?: "always" | "pull_requests_only" | "never" + _links?: + | { + html?: + | ({ + href?: string | undefined + } | null) + | undefined + self?: + | { + href?: string | undefined + } + | undefined + } + | undefined + bypass_actors?: t_repository_ruleset_bypass_actor[] | undefined + conditions?: + | (t_repository_ruleset_conditions | t_org_ruleset_conditions | null) + | undefined + created_at?: string | undefined + current_user_can_bypass?: + | ("always" | "pull_requests_only" | "never") + | undefined enforcement: t_repository_rule_enforcement id: number name: string - node_id?: string - rules?: t_repository_rule[] + node_id?: string | undefined + rules?: t_repository_rule[] | undefined source: string - source_type?: "Repository" | "Organization" - target?: "branch" | "tag" | "push" - updated_at?: string + source_type?: ("Repository" | "Organization") | undefined + target?: ("branch" | "tag" | "push") | undefined + updated_at?: string | undefined } export type t_repository_ruleset_bypass_actor = { - actor_id?: number | null + actor_id?: (number | null) | undefined actor_type: | "Integration" | "OrganizationAdmin" | "RepositoryRole" | "Team" | "DeployKey" - bypass_mode?: "always" | "pull_request" + bypass_mode?: ("always" | "pull_request") | undefined } export type t_repository_ruleset_conditions = { - ref_name?: { - exclude?: string[] - include?: string[] - } + ref_name?: + | { + exclude?: string[] | undefined + include?: string[] | undefined + } + | undefined } export type t_repository_ruleset_conditions_repository_id_target = { repository_id: { - repository_ids?: number[] + repository_ids?: number[] | undefined } } export type t_repository_ruleset_conditions_repository_name_target = { repository_name: { - exclude?: string[] - include?: string[] - protected?: boolean + exclude?: string[] | undefined + include?: string[] | undefined + protected?: boolean | undefined } } export type t_repository_ruleset_conditions_repository_property_spec = { name: string property_values: string[] - source?: "custom" | "system" + source?: ("custom" | "system") | undefined } export type t_repository_ruleset_conditions_repository_property_target = { repository_property: { - exclude?: t_repository_ruleset_conditions_repository_property_spec[] - include?: t_repository_ruleset_conditions_repository_property_spec[] + exclude?: + | t_repository_ruleset_conditions_repository_property_spec[] + | undefined + include?: + | t_repository_ruleset_conditions_repository_property_spec[] + | undefined } } @@ -5904,28 +6232,28 @@ export type t_review_comment = { } author_association: t_author_association body: string - body_html?: string - body_text?: string + body_html?: string | undefined + body_text?: string | undefined commit_id: string created_at: string diff_hunk: string html_url: string id: number - in_reply_to_id?: number - line?: number + in_reply_to_id?: number | undefined + line?: number | undefined node_id: string original_commit_id: string - original_line?: number + original_line?: number | undefined original_position: number - original_start_line?: number | null + original_start_line?: (number | null) | undefined path: string position: number | null pull_request_review_id: number | null pull_request_url: string - reactions?: t_reaction_rollup - side?: "LEFT" | "RIGHT" - start_line?: number | null - start_side?: "LEFT" | "RIGHT" | null + reactions?: t_reaction_rollup | undefined + side?: ("LEFT" | "RIGHT") | undefined + start_line?: (number | null) | undefined + start_side?: ("LEFT" | "RIGHT" | null) | undefined updated_at: string url: string user: t_nullable_simple_user @@ -5937,7 +6265,7 @@ export type t_review_custom_gates_comment_required = { } export type t_review_custom_gates_state_required = { - comment?: string + comment?: string | undefined environment_name: string state: "approved" | "rejected" } @@ -5948,7 +6276,7 @@ export type t_review_dismissed_issue_event = { commit_url: string | null created_at: string dismissed_review: { - dismissal_commit_id?: string + dismissal_commit_id?: string | undefined dismissal_message: string | null review_id: number state: string @@ -5969,8 +6297,8 @@ export type t_review_request_removed_issue_event = { id: number node_id: string performed_via_github_app: t_nullable_integration - requested_reviewer?: t_simple_user - requested_team?: t_team + requested_reviewer?: t_simple_user | undefined + requested_team?: t_team | undefined review_requester: t_simple_user url: string } @@ -5984,8 +6312,8 @@ export type t_review_requested_issue_event = { id: number node_id: string performed_via_github_app: t_nullable_integration - requested_reviewer?: t_simple_user - requested_team?: t_team + requested_reviewer?: t_simple_user | undefined + requested_team?: t_team | undefined review_requester: t_simple_user url: string } @@ -6004,7 +6332,7 @@ export type t_root = { followers_url: string following_url: string gists_url: string - hub_url?: string + hub_url?: string | undefined issue_search_url: string issues_url: string keys_url: string @@ -6019,7 +6347,7 @@ export type t_root = { repository_url: string starred_gists_url: string starred_url: string - topic_search_url?: string + topic_search_url?: string | undefined user_organizations_url: string user_repositories_url: string user_search_url: string @@ -6027,42 +6355,46 @@ export type t_root = { } export type t_rule_suite = { - actor_id?: number | null - actor_name?: string | null - after_sha?: string - before_sha?: string - evaluation_result?: "pass" | "fail" | "bypass" | null - id?: number - pushed_at?: string - ref?: string - repository_id?: number - repository_name?: string - result?: "pass" | "fail" | "bypass" - rule_evaluations?: { - details?: string | null - enforcement?: "active" | "evaluate" | "deleted ruleset" - result?: "pass" | "fail" - rule_source?: { - id?: number | null - name?: string | null - type?: string - } - rule_type?: string - }[] + actor_id?: (number | null) | undefined + actor_name?: (string | null) | undefined + after_sha?: string | undefined + before_sha?: string | undefined + evaluation_result?: ("pass" | "fail" | "bypass" | null) | undefined + id?: number | undefined + pushed_at?: string | undefined + ref?: string | undefined + repository_id?: number | undefined + repository_name?: string | undefined + result?: ("pass" | "fail" | "bypass") | undefined + rule_evaluations?: + | { + details?: (string | null) | undefined + enforcement?: ("active" | "evaluate" | "deleted ruleset") | undefined + result?: ("pass" | "fail") | undefined + rule_source?: + | { + id?: (number | null) | undefined + name?: (string | null) | undefined + type?: string | undefined + } + | undefined + rule_type?: string | undefined + }[] + | undefined } export type t_rule_suites = { - actor_id?: number - actor_name?: string - after_sha?: string - before_sha?: string - evaluation_result?: "pass" | "fail" | "bypass" - id?: number - pushed_at?: string - ref?: string - repository_id?: number - repository_name?: string - result?: "pass" | "fail" | "bypass" + actor_id?: number | undefined + actor_name?: string | undefined + after_sha?: string | undefined + before_sha?: string | undefined + evaluation_result?: ("pass" | "fail" | "bypass") | undefined + id?: number | undefined + pushed_at?: string | undefined + ref?: string | undefined + repository_id?: number | undefined + repository_name?: string | undefined + result?: ("pass" | "fail" | "bypass") | undefined }[] export type t_runner = { @@ -6071,7 +6403,7 @@ export type t_runner = { labels: t_runner_label[] name: string os: string - runner_group_id?: number + runner_group_id?: number | undefined status: string } @@ -6080,76 +6412,78 @@ export type t_runner_application = { download_url: string filename: string os: string - sha256_checksum?: string - temp_download_token?: string + sha256_checksum?: string | undefined + temp_download_token?: string | undefined } export type t_runner_groups_org = { allows_public_repositories: boolean default: boolean - hosted_runners_url?: string + hosted_runners_url?: string | undefined id: number inherited: boolean - inherited_allows_public_repositories?: boolean + inherited_allows_public_repositories?: boolean | undefined name: string - restricted_to_workflows?: boolean + restricted_to_workflows?: boolean | undefined runners_url: string - selected_repositories_url?: string - selected_workflows?: string[] + selected_repositories_url?: string | undefined + selected_workflows?: string[] | undefined visibility: string - workflow_restrictions_read_only?: boolean + workflow_restrictions_read_only?: boolean | undefined } export type t_runner_label = { - id?: number + id?: number | undefined name: string - type?: "read-only" | "custom" + type?: ("read-only" | "custom") | undefined } export type t_scim_error = { - detail?: string | null - documentation_url?: string | null - message?: string | null - schemas?: string[] - scimType?: string | null - status?: number + detail?: (string | null) | undefined + documentation_url?: (string | null) | undefined + message?: (string | null) | undefined + schemas?: string[] | undefined + scimType?: (string | null) | undefined + status?: number | undefined } export type t_search_result_text_matches = { - fragment?: string - matches?: { - indices?: number[] - text?: string - }[] - object_type?: string | null - object_url?: string - property?: string + fragment?: string | undefined + matches?: + | { + indices?: number[] | undefined + text?: string | undefined + }[] + | undefined + object_type?: (string | null) | undefined + object_url?: string | undefined + property?: string | undefined }[] export type t_secret_scanning_alert = { - created_at?: t_alert_created_at - html_url?: t_alert_html_url - locations_url?: string - multi_repo?: boolean | null - number?: t_alert_number - publicly_leaked?: boolean | null - push_protection_bypass_request_comment?: string | null - push_protection_bypass_request_html_url?: string | null - push_protection_bypass_request_reviewer?: t_nullable_simple_user - push_protection_bypassed?: boolean | null - push_protection_bypassed_at?: string | null - push_protection_bypassed_by?: t_nullable_simple_user - resolution?: t_secret_scanning_alert_resolution - resolution_comment?: string | null - resolved_at?: string | null - resolved_by?: t_nullable_simple_user - secret?: string - secret_type?: string - secret_type_display_name?: string - state?: t_secret_scanning_alert_state - updated_at?: t_nullable_alert_updated_at - url?: t_alert_url - validity?: "active" | "inactive" | "unknown" + created_at?: t_alert_created_at | undefined + html_url?: t_alert_html_url | undefined + locations_url?: string | undefined + multi_repo?: (boolean | null) | undefined + number?: t_alert_number | undefined + publicly_leaked?: (boolean | null) | undefined + push_protection_bypass_request_comment?: (string | null) | undefined + push_protection_bypass_request_html_url?: (string | null) | undefined + push_protection_bypass_request_reviewer?: t_nullable_simple_user | undefined + push_protection_bypassed?: (boolean | null) | undefined + push_protection_bypassed_at?: (string | null) | undefined + push_protection_bypassed_by?: t_nullable_simple_user | undefined + resolution?: t_secret_scanning_alert_resolution | undefined + resolution_comment?: (string | null) | undefined + resolved_at?: (string | null) | undefined + resolved_by?: t_nullable_simple_user | undefined + secret?: string | undefined + secret_type?: string | undefined + secret_type_display_name?: string | undefined + state?: t_secret_scanning_alert_state | undefined + updated_at?: t_nullable_alert_updated_at | undefined + url?: t_alert_url | undefined + validity?: ("active" | "inactive" | "unknown") | undefined } export type t_secret_scanning_alert_resolution = @@ -6165,33 +6499,39 @@ export type t_secret_scanning_alert_state = "open" | "resolved" export type t_secret_scanning_location = { details?: - | t_secret_scanning_location_commit - | t_secret_scanning_location_wiki_commit - | t_secret_scanning_location_issue_title - | t_secret_scanning_location_issue_body - | t_secret_scanning_location_issue_comment - | t_secret_scanning_location_discussion_title - | t_secret_scanning_location_discussion_body - | t_secret_scanning_location_discussion_comment - | t_secret_scanning_location_pull_request_title - | t_secret_scanning_location_pull_request_body - | t_secret_scanning_location_pull_request_comment - | t_secret_scanning_location_pull_request_review - | t_secret_scanning_location_pull_request_review_comment + | ( + | t_secret_scanning_location_commit + | t_secret_scanning_location_wiki_commit + | t_secret_scanning_location_issue_title + | t_secret_scanning_location_issue_body + | t_secret_scanning_location_issue_comment + | t_secret_scanning_location_discussion_title + | t_secret_scanning_location_discussion_body + | t_secret_scanning_location_discussion_comment + | t_secret_scanning_location_pull_request_title + | t_secret_scanning_location_pull_request_body + | t_secret_scanning_location_pull_request_comment + | t_secret_scanning_location_pull_request_review + | t_secret_scanning_location_pull_request_review_comment + ) + | undefined type?: - | "commit" - | "wiki_commit" - | "issue_title" - | "issue_body" - | "issue_comment" - | "discussion_title" - | "discussion_body" - | "discussion_comment" - | "pull_request_title" - | "pull_request_body" - | "pull_request_comment" - | "pull_request_review" - | "pull_request_review_comment" + | ( + | "commit" + | "wiki_commit" + | "issue_title" + | "issue_body" + | "issue_comment" + | "discussion_title" + | "discussion_body" + | "discussion_comment" + | "pull_request_title" + | "pull_request_body" + | "pull_request_comment" + | "pull_request_review" + | "pull_request_review_comment" + ) + | undefined } export type t_secret_scanning_location_commit = { @@ -6263,9 +6603,9 @@ export type t_secret_scanning_location_wiki_commit = { } export type t_secret_scanning_push_protection_bypass = { - expire_at?: string | null - reason?: t_secret_scanning_push_protection_bypass_reason - token_type?: string + expire_at?: (string | null) | undefined + reason?: t_secret_scanning_push_protection_bypass_reason | undefined + token_type?: string | undefined } export type t_secret_scanning_push_protection_bypass_placeholder_id = string @@ -6276,20 +6616,22 @@ export type t_secret_scanning_push_protection_bypass_reason = | "will_fix_later" export type t_secret_scanning_scan = { - completed_at?: string | null - started_at?: string | null - status?: string - type?: string + completed_at?: (string | null) | undefined + started_at?: (string | null) | undefined + status?: string | undefined + type?: string | undefined } export type t_secret_scanning_scan_history = { - backfill_scans?: t_secret_scanning_scan[] - custom_pattern_backfill_scans?: (t_secret_scanning_scan & { - pattern_name?: string - pattern_scope?: string - })[] - incremental_scans?: t_secret_scanning_scan[] - pattern_update_scans?: t_secret_scanning_scan[] + backfill_scans?: t_secret_scanning_scan[] | undefined + custom_pattern_backfill_scans?: + | (t_secret_scanning_scan & { + pattern_name?: string | undefined + pattern_scope?: string | undefined + })[] + | undefined + incremental_scans?: t_secret_scanning_scan[] | undefined + pattern_update_scans?: t_secret_scanning_scan[] | undefined } export type t_security_advisory_credit_types = @@ -6320,30 +6662,42 @@ export type t_security_advisory_ecosystems = | "swift" export type t_security_and_analysis = { - advanced_security?: { - status?: "enabled" | "disabled" - } - dependabot_security_updates?: { - status?: "enabled" | "disabled" - } - secret_scanning?: { - status?: "enabled" | "disabled" - } - secret_scanning_ai_detection?: { - status?: "enabled" | "disabled" - } - secret_scanning_non_provider_patterns?: { - status?: "enabled" | "disabled" - } - secret_scanning_push_protection?: { - status?: "enabled" | "disabled" - } + advanced_security?: + | { + status?: ("enabled" | "disabled") | undefined + } + | undefined + dependabot_security_updates?: + | { + status?: ("enabled" | "disabled") | undefined + } + | undefined + secret_scanning?: + | { + status?: ("enabled" | "disabled") | undefined + } + | undefined + secret_scanning_ai_detection?: + | { + status?: ("enabled" | "disabled") | undefined + } + | undefined + secret_scanning_non_provider_patterns?: + | { + status?: ("enabled" | "disabled") | undefined + } + | undefined + secret_scanning_push_protection?: + | { + status?: ("enabled" | "disabled") | undefined + } + | undefined } | null export type t_selected_actions = { - github_owned_allowed?: boolean - patterns_allowed?: string[] - verified_allowed?: boolean + github_owned_allowed?: boolean | undefined + patterns_allowed?: string[] | undefined + verified_allowed?: boolean | undefined } export type t_selected_actions_url = string @@ -6360,44 +6714,62 @@ export type t_short_branch = { } name: string protected: boolean - protection?: t_branch_protection - protection_url?: string + protection?: t_branch_protection | undefined + protection_url?: string | undefined } export type t_sigstore_bundle_0 = { - dsseEnvelope?: { - payload?: string - payloadType?: string - signatures?: { - keyid?: string - sig?: string - }[] - } - mediaType?: string - verificationMaterial?: { - timestampVerificationData?: string | null - tlogEntries?: { - canonicalizedBody?: string - inclusionPromise?: { - signedEntryTimestamp?: string - } - inclusionProof?: string | null - integratedTime?: string - kindVersion?: { - kind?: string - version?: string + dsseEnvelope?: + | { + payload?: string | undefined + payloadType?: string | undefined + signatures?: + | { + keyid?: string | undefined + sig?: string | undefined + }[] + | undefined } - logId?: { - keyId?: string + | undefined + mediaType?: string | undefined + verificationMaterial?: + | { + timestampVerificationData?: (string | null) | undefined + tlogEntries?: + | { + canonicalizedBody?: string | undefined + inclusionPromise?: + | { + signedEntryTimestamp?: string | undefined + } + | undefined + inclusionProof?: (string | null) | undefined + integratedTime?: string | undefined + kindVersion?: + | { + kind?: string | undefined + version?: string | undefined + } + | undefined + logId?: + | { + keyId?: string | undefined + } + | undefined + logIndex?: string | undefined + }[] + | undefined + x509CertificateChain?: + | { + certificates?: + | { + rawBytes?: string | undefined + }[] + | undefined + } + | undefined } - logIndex?: string - }[] - x509CertificateChain?: { - certificates?: { - rawBytes?: string - }[] - } - } + | undefined } export type t_simple_classroom = { @@ -6417,8 +6789,8 @@ export type t_simple_classroom_assignment = { invitations_enabled: boolean invite_link: string language: string - max_members?: number | null - max_teams?: number | null + max_members?: (number | null) | undefined + max_teams?: (number | null) | undefined passing: number public_repo: boolean slug: string @@ -6475,7 +6847,7 @@ export type t_simple_commit_status = { description: string | null id: number node_id: string - required?: boolean | null + required?: (boolean | null) | undefined state: string target_url: string | null updated_at: string @@ -6533,7 +6905,7 @@ export type t_simple_repository = { export type t_simple_user = { avatar_url: string - email?: string | null + email?: (string | null) | undefined events_url: string followers_url: string following_url: string @@ -6542,18 +6914,18 @@ export type t_simple_user = { html_url: string id: number login: string - name?: string | null + name?: (string | null) | undefined node_id: string organizations_url: string received_events_url: string repos_url: string site_admin: boolean - starred_at?: string + starred_at?: string | undefined starred_url: string subscriptions_url: string type: string url: string - user_view_type?: string + user_view_type?: string | undefined } export type t_snapshot = { @@ -6564,13 +6936,15 @@ export type t_snapshot = { } job: { correlator: string - html_url?: string + html_url?: string | undefined id: string } - manifests?: { - [key: string]: t_manifest | undefined - } - metadata?: t_metadata + manifests?: + | { + [key: string]: t_manifest | undefined + } + | undefined + metadata?: t_metadata | undefined ref: string scanned: string sha: string @@ -6608,7 +6982,7 @@ export type t_state_change_issue_event = { id: number node_id: string performed_via_github_app: t_nullable_integration - state_reason?: string | null + state_reason?: (string | null) | undefined url: string } @@ -6655,11 +7029,11 @@ export type t_tag = { } export type t_tag_protection = { - created_at?: string - enabled?: boolean - id?: number + created_at?: string | undefined + enabled?: boolean | undefined + id?: number | undefined pattern: string - updated_at?: string + updated_at?: string | undefined } export type t_team = { @@ -6669,17 +7043,19 @@ export type t_team = { members_url: string name: string node_id: string - notification_setting?: string + notification_setting?: string | undefined parent: t_nullable_team_simple permission: string - permissions?: { - admin: boolean - maintain: boolean - pull: boolean - push: boolean - triage: boolean - } - privacy?: string + permissions?: + | { + admin: boolean + maintain: boolean + pull: boolean + push: boolean + triage: boolean + } + | undefined + privacy?: string | undefined repositories_url: string slug: string url: string @@ -6699,7 +7075,7 @@ export type t_team_discussion = { number: number pinned: boolean private: boolean - reactions?: t_reaction_rollup + reactions?: t_reaction_rollup | undefined team_url: string title: string updated_at: string @@ -6717,7 +7093,7 @@ export type t_team_discussion_comment = { last_edited_at: string | null node_id: string number: number - reactions?: t_reaction_rollup + reactions?: t_reaction_rollup | undefined updated_at: string url: string } @@ -6727,16 +7103,18 @@ export type t_team_full = { description: string | null html_url: string id: number - ldap_dn?: string + ldap_dn?: string | undefined members_count: number members_url: string name: string node_id: string - notification_setting?: "notifications_enabled" | "notifications_disabled" + notification_setting?: + | ("notifications_enabled" | "notifications_disabled") + | undefined organization: t_team_organization - parent?: t_nullable_team_simple + parent?: t_nullable_team_simple | undefined permission: string - privacy?: "closed" | "secret" + privacy?: ("closed" | "secret") | undefined repos_count: number repositories_url: string slug: string @@ -6753,15 +7131,15 @@ export type t_team_membership = { export type t_team_organization = { archived_at: string | null avatar_url: string - billing_email?: string | null - blog?: string - collaborators?: number | null - company?: string + billing_email?: (string | null) | undefined + blog?: string | undefined + collaborators?: (number | null) | undefined + company?: string | undefined created_at: string - default_repository_permission?: string | null + default_repository_permission?: (string | null) | undefined description: string | null - disk_usage?: number | null - email?: string + disk_usage?: (number | null) | undefined + email?: string | undefined events_url: string followers: number following: number @@ -6770,42 +7148,44 @@ export type t_team_organization = { hooks_url: string html_url: string id: number - is_verified?: boolean + is_verified?: boolean | undefined issues_url: string - location?: string + location?: string | undefined login: string - members_allowed_repository_creation_type?: string - members_can_create_internal_repositories?: boolean - members_can_create_pages?: boolean - members_can_create_private_pages?: boolean - members_can_create_private_repositories?: boolean - members_can_create_public_pages?: boolean - members_can_create_public_repositories?: boolean - members_can_create_repositories?: boolean | null - members_can_fork_private_repositories?: boolean | null + members_allowed_repository_creation_type?: string | undefined + members_can_create_internal_repositories?: boolean | undefined + members_can_create_pages?: boolean | undefined + members_can_create_private_pages?: boolean | undefined + members_can_create_private_repositories?: boolean | undefined + members_can_create_public_pages?: boolean | undefined + members_can_create_public_repositories?: boolean | undefined + members_can_create_repositories?: (boolean | null) | undefined + members_can_fork_private_repositories?: (boolean | null) | undefined members_url: string - name?: string + name?: string | undefined node_id: string - owned_private_repos?: number - plan?: { - filled_seats?: number - name: string - private_repos: number - seats?: number - space: number - } - private_gists?: number | null + owned_private_repos?: number | undefined + plan?: + | { + filled_seats?: number | undefined + name: string + private_repos: number + seats?: number | undefined + space: number + } + | undefined + private_gists?: (number | null) | undefined public_gists: number public_members_url: string public_repos: number repos_url: string - total_private_repos?: number - twitter_username?: string | null - two_factor_requirement_enabled?: boolean | null + total_private_repos?: number | undefined + twitter_username?: (string | null) | undefined + two_factor_requirement_enabled?: (boolean | null) | undefined type: string updated_at: string url: string - web_commit_signoff_required?: boolean + web_commit_signoff_required?: boolean | undefined } export type t_team_project = { @@ -6818,25 +7198,25 @@ export type t_team_project = { name: string node_id: string number: number - organization_permission?: string + organization_permission?: string | undefined owner_url: string permissions: { admin: boolean read: boolean write: boolean } - private?: boolean + private?: boolean | undefined state: string updated_at: string url: string } export type t_team_repository = { - allow_auto_merge?: boolean - allow_forking?: boolean - allow_merge_commit?: boolean - allow_rebase_merge?: boolean - allow_squash_merge?: boolean + allow_auto_merge?: boolean | undefined + allow_forking?: boolean | undefined + allow_merge_commit?: boolean | undefined + allow_rebase_merge?: boolean | undefined + allow_squash_merge?: boolean | undefined archive_url: string archived: boolean assignees_url: string @@ -6851,7 +7231,7 @@ export type t_team_repository = { contributors_url: string created_at: string | null default_branch: string - delete_branch_on_merge?: boolean + delete_branch_on_merge?: boolean | undefined deployments_url: string description: string | null disabled: boolean @@ -6875,7 +7255,7 @@ export type t_team_repository = { hooks_url: string html_url: string id: number - is_template?: boolean + is_template?: boolean | undefined issue_comment_url: string issue_events_url: string issues_url: string @@ -6884,70 +7264,74 @@ export type t_team_repository = { language: string | null languages_url: string license: t_nullable_license_simple - master_branch?: string + master_branch?: string | undefined merges_url: string milestones_url: string mirror_url: string | null name: string - network_count?: number + network_count?: number | undefined node_id: string notifications_url: string open_issues: number open_issues_count: number owner: t_nullable_simple_user - permissions?: { - admin: boolean - maintain?: boolean - pull: boolean - push: boolean - triage?: boolean - } + permissions?: + | { + admin: boolean + maintain?: boolean | undefined + pull: boolean + push: boolean + triage?: boolean | undefined + } + | undefined private: boolean pulls_url: string pushed_at: string | null releases_url: string - role_name?: string + role_name?: string | undefined size: number ssh_url: string stargazers_count: number stargazers_url: string statuses_url: string - subscribers_count?: number + subscribers_count?: number | undefined subscribers_url: string subscription_url: string svn_url: string tags_url: string teams_url: string - temp_clone_token?: string - topics?: string[] + temp_clone_token?: string | undefined + topics?: string[] | undefined trees_url: string updated_at: string | null url: string - visibility?: string + visibility?: string | undefined watchers: number watchers_count: number - web_commit_signoff_required?: boolean + web_commit_signoff_required?: boolean | undefined } export type t_team_role_assignment = { - assignment?: "direct" | "indirect" | "mixed" + assignment?: ("direct" | "indirect" | "mixed") | undefined description: string | null html_url: string id: number members_url: string name: string node_id: string - notification_setting?: string + notification_setting?: string | undefined parent: t_nullable_team_simple permission: string - permissions?: { - admin: boolean - maintain: boolean - pull: boolean - push: boolean - triage: boolean - } - privacy?: string + permissions?: + | { + admin: boolean + maintain: boolean + pull: boolean + push: boolean + triage: boolean + } + | undefined + privacy?: string | undefined repositories_url: string slug: string url: string @@ -6957,13 +7341,13 @@ export type t_team_simple = { description: string | null html_url: string id: number - ldap_dn?: string + ldap_dn?: string | undefined members_url: string name: string node_id: string - notification_setting?: string + notification_setting?: string | undefined permission: string - privacy?: string + privacy?: string | undefined repositories_url: string slug: string url: string @@ -6990,9 +7374,9 @@ export type t_thread_subscription = { created_at: string | null ignored: boolean reason: string | null - repository_url?: string + repository_url?: string | undefined subscribed: boolean - thread_url?: string + thread_url?: string | undefined url: string } @@ -7012,27 +7396,27 @@ export type t_timeline_assigned_issue_event = { export type t_timeline_comment_event = { actor: t_simple_user author_association: t_author_association - body?: string - body_html?: string - body_text?: string + body?: string | undefined + body_html?: string | undefined + body_text?: string | undefined created_at: string event: string html_url: string id: number issue_url: string node_id: string - performed_via_github_app?: t_nullable_integration - reactions?: t_reaction_rollup + performed_via_github_app?: t_nullable_integration | undefined + reactions?: t_reaction_rollup | undefined updated_at: string url: string user: t_simple_user } export type t_timeline_commit_commented_event = { - comments?: t_commit_comment[] - commit_id?: string - event?: string - node_id?: string + comments?: t_commit_comment[] | undefined + commit_id?: string | undefined + event?: string | undefined + node_id?: string | undefined } export type t_timeline_committed_event = { @@ -7046,7 +7430,7 @@ export type t_timeline_committed_event = { email: string name: string } - event?: string + event?: string | undefined html_url: string message: string node_id: string @@ -7066,17 +7450,17 @@ export type t_timeline_committed_event = { reason: string signature: string | null verified: boolean - verified_at?: string | null + verified_at?: (string | null) | undefined } } export type t_timeline_cross_referenced_event = { - actor?: t_simple_user + actor?: t_simple_user | undefined created_at: string event: string source: { - issue?: t_issue - type?: string + issue?: t_issue | undefined + type?: string | undefined } updated_at: string } @@ -7106,9 +7490,9 @@ export type t_timeline_issue_events = | t_state_change_issue_event export type t_timeline_line_commented_event = { - comments?: t_pull_request_review_comment[] - event?: string - node_id?: string + comments?: t_pull_request_review_comment[] | undefined + event?: string | undefined + node_id?: string | undefined } export type t_timeline_reviewed_event = { @@ -7122,8 +7506,8 @@ export type t_timeline_reviewed_event = { } author_association: t_author_association body: string | null - body_html?: string - body_text?: string + body_html?: string | undefined + body_text?: string | undefined commit_id: string event: string html_url: string @@ -7131,7 +7515,7 @@ export type t_timeline_reviewed_event = { node_id: string pull_request_url: string state: string - submitted_at?: string + submitted_at?: string | undefined user: t_simple_user } @@ -7154,38 +7538,48 @@ export type t_topic = { export type t_topic_search_result_item = { aliases?: - | { - topic_relation?: { - id?: number - name?: string - relation_type?: string - topic_id?: number - } - }[] - | null + | ( + | { + topic_relation?: + | { + id?: number | undefined + name?: string | undefined + relation_type?: string | undefined + topic_id?: number | undefined + } + | undefined + }[] + | null + ) + | undefined created_at: string created_by: string | null curated: boolean description: string | null display_name: string | null featured: boolean - logo_url?: string | null + logo_url?: (string | null) | undefined name: string related?: - | { - topic_relation?: { - id?: number - name?: string - relation_type?: string - topic_id?: number - } - }[] - | null + | ( + | { + topic_relation?: + | { + id?: number | undefined + name?: string | undefined + relation_type?: string | undefined + topic_id?: number | undefined + } + | undefined + }[] + | null + ) + | undefined released: string | null - repository_count?: number | null + repository_count?: (number | null) | undefined score: number short_description: string | null - text_matches?: t_search_result_text_matches + text_matches?: t_search_result_text_matches | undefined updated_at: string } @@ -7237,9 +7631,9 @@ export type t_user_marketplace_purchase = { } export type t_user_role_assignment = { - assignment?: "direct" | "indirect" | "mixed" + assignment?: ("direct" | "indirect" | "mixed") | undefined avatar_url: string - email?: string | null + email?: (string | null) | undefined events_url: string followers_url: string following_url: string @@ -7247,76 +7641,78 @@ export type t_user_role_assignment = { gravatar_id: string | null html_url: string id: number - inherited_from?: t_team_simple[] + inherited_from?: t_team_simple[] | undefined login: string - name?: string | null + name?: (string | null) | undefined node_id: string organizations_url: string received_events_url: string repos_url: string site_admin: boolean - starred_at?: string + starred_at?: string | undefined starred_url: string subscriptions_url: string type: string url: string - user_view_type?: string + user_view_type?: string | undefined } export type t_user_search_result_item = { avatar_url: string - bio?: string | null - blog?: string | null - company?: string | null - created_at?: string - email?: string | null + bio?: (string | null) | undefined + blog?: (string | null) | undefined + company?: (string | null) | undefined + created_at?: string | undefined + email?: (string | null) | undefined events_url: string - followers?: number + followers?: number | undefined followers_url: string - following?: number + following?: number | undefined following_url: string gists_url: string gravatar_id: string | null - hireable?: boolean | null + hireable?: (boolean | null) | undefined html_url: string id: number - location?: string | null + location?: (string | null) | undefined login: string - name?: string | null + name?: (string | null) | undefined node_id: string organizations_url: string - public_gists?: number - public_repos?: number + public_gists?: number | undefined + public_repos?: number | undefined received_events_url: string repos_url: string score: number site_admin: boolean starred_url: string subscriptions_url: string - suspended_at?: string | null - text_matches?: t_search_result_text_matches + suspended_at?: (string | null) | undefined + text_matches?: t_search_result_text_matches | undefined type: string - updated_at?: string + updated_at?: string | undefined url: string - user_view_type?: string + user_view_type?: string | undefined } export type t_validation_error = { documentation_url: string - errors?: { - code: string - field?: string - index?: number - message?: string - resource?: string - value?: string | null | number | string[] - }[] + errors?: + | { + code: string + field?: string | undefined + index?: number | undefined + message?: string | undefined + resource?: string | undefined + value?: (string | null | number | string[]) | undefined + }[] + | undefined message: string } export type t_validation_error_simple = { documentation_url: string - errors?: string[] + errors?: string[] | undefined message: string } @@ -7325,7 +7721,7 @@ export type t_verification = { reason: string signature: string | null verified: boolean - verified_at?: string | null + verified_at?: (string | null) | undefined } export type t_view_traffic = { @@ -7347,10 +7743,10 @@ export type t_vulnerability = { export type t_wait_timer = number export type t_webhook_config = { - content_type?: t_webhook_config_content_type - insecure_ssl?: t_webhook_config_insecure_ssl - secret?: t_webhook_config_secret - url?: t_webhook_config_url + content_type?: t_webhook_config_content_type | undefined + insecure_ssl?: t_webhook_config_insecure_ssl | undefined + secret?: t_webhook_config_secret | undefined + url?: t_webhook_config_url | undefined } export type t_webhook_config_content_type = string @@ -7364,7 +7760,7 @@ export type t_webhook_config_url = string export type t_workflow = { badge_url: string created_at: string - deleted_at?: string + deleted_at?: string | undefined html_url: string id: number name: string @@ -7381,11 +7777,11 @@ export type t_workflow = { } export type t_workflow_run = { - actor?: t_simple_user + actor?: t_simple_user | undefined artifacts_url: string cancel_url: string - check_suite_id?: number - check_suite_node_id?: string + check_suite_id?: number | undefined + check_suite_node_id?: string | undefined check_suite_url: string conclusion: string | null created_at: string @@ -7394,25 +7790,25 @@ export type t_workflow_run = { head_branch: string | null head_commit: t_nullable_simple_commit head_repository: t_minimal_repository - head_repository_id?: number + head_repository_id?: number | undefined head_sha: string html_url: string id: number jobs_url: string logs_url: string - name?: string | null + name?: (string | null) | undefined node_id: string path: string - previous_attempt_url?: string | null + previous_attempt_url?: (string | null) | undefined pull_requests: t_pull_request_minimal[] | null - referenced_workflows?: t_referenced_workflow[] | null + referenced_workflows?: (t_referenced_workflow[] | null) | undefined repository: t_minimal_repository rerun_url: string - run_attempt?: number + run_attempt?: number | undefined run_number: number - run_started_at?: string + run_started_at?: string | undefined status: string | null - triggering_actor?: t_simple_user + triggering_actor?: t_simple_user | undefined updated_at: string url: string workflow_id: number @@ -7421,44 +7817,62 @@ export type t_workflow_run = { export type t_workflow_run_usage = { billable: { - MACOS?: { - job_runs?: { - duration_ms: number - job_id: number - }[] - jobs: number - total_ms: number - } - UBUNTU?: { - job_runs?: { - duration_ms: number - job_id: number - }[] - jobs: number - total_ms: number - } - WINDOWS?: { - job_runs?: { - duration_ms: number - job_id: number - }[] - jobs: number - total_ms: number - } + MACOS?: + | { + job_runs?: + | { + duration_ms: number + job_id: number + }[] + | undefined + jobs: number + total_ms: number + } + | undefined + UBUNTU?: + | { + job_runs?: + | { + duration_ms: number + job_id: number + }[] + | undefined + jobs: number + total_ms: number + } + | undefined + WINDOWS?: + | { + job_runs?: + | { + duration_ms: number + job_id: number + }[] + | undefined + jobs: number + total_ms: number + } + | undefined } - run_duration_ms?: number + run_duration_ms?: number | undefined } export type t_workflow_usage = { billable: { - MACOS?: { - total_ms?: number - } - UBUNTU?: { - total_ms?: number - } - WINDOWS?: { - total_ms?: number - } + MACOS?: + | { + total_ms?: number | undefined + } + | undefined + UBUNTU?: + | { + total_ms?: number | undefined + } + | undefined + WINDOWS?: + | { + total_ms?: number | undefined + } + | undefined } } diff --git a/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts b/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts index d4af95a0..0e8bdb78 100644 --- a/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts +++ b/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/client.ts @@ -99,13 +99,13 @@ export class ContosoWidgetManager extends AbstractAxiosClient { ): Promise< AxiosResponse< | { - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string - result?: t_Widget + result?: t_Widget | undefined status: t_Azure_Core_Foundations_OperationState } | { - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string status: t_Azure_Core_Foundations_OperationState } @@ -218,7 +218,7 @@ export class ContosoWidgetManager extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string status: t_Azure_Core_Foundations_OperationState }> @@ -369,9 +369,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string - result?: t_WidgetRepairRequest + result?: t_WidgetRepairRequest | undefined status: t_Azure_Core_Foundations_OperationState }> > { @@ -401,15 +401,17 @@ export class ContosoWidgetManager extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string - result?: { - completedDateTime: string - createdDateTime: string - requestState: t_WidgetRepairState - scheduledDateTime: string - updatedDateTime: string - } + result?: + | { + completedDateTime: string + createdDateTime: string + requestState: t_WidgetRepairState + scheduledDateTime: string + updatedDateTime: string + } + | undefined status: t_Azure_Core_Foundations_OperationState }> > { @@ -447,9 +449,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string - result?: t_WidgetPart + result?: t_WidgetPart | undefined status: t_Azure_Core_Foundations_OperationState }> > { @@ -623,7 +625,7 @@ export class ContosoWidgetManager extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string status: t_Azure_Core_Foundations_OperationState }> @@ -661,9 +663,9 @@ export class ContosoWidgetManager extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string - result?: t_Manufacturer + result?: t_Manufacturer | undefined status: t_Azure_Core_Foundations_OperationState }> > { @@ -774,7 +776,7 @@ export class ContosoWidgetManager extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - error?: t_Azure_Core_Foundations_Error + error?: t_Azure_Core_Foundations_Error | undefined id: string status: t_Azure_Core_Foundations_OperationState }> diff --git a/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/models.ts b/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/models.ts index 53615d15..d0a4132a 100644 --- a/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/models.ts +++ b/integration-tests/typescript-axios/src/generated/azure-core-data-plane-service.tsp/models.ts @@ -4,10 +4,10 @@ export type t_Azure_Core_Foundations_Error = { code: string - details?: t_Azure_Core_Foundations_Error[] - innererror?: t_Azure_Core_Foundations_InnerError + details?: t_Azure_Core_Foundations_Error[] | undefined + innererror?: t_Azure_Core_Foundations_InnerError | undefined message: string - target?: string + target?: string | undefined } export type t_Azure_Core_Foundations_ErrorResponse = { @@ -15,8 +15,8 @@ export type t_Azure_Core_Foundations_ErrorResponse = { } export type t_Azure_Core_Foundations_InnerError = { - code?: string - innererror?: t_Azure_Core_Foundations_InnerError + code?: string | undefined + innererror?: t_Azure_Core_Foundations_InnerError | undefined } export type t_Azure_Core_Foundations_OperationState = @@ -39,17 +39,17 @@ export type t_Manufacturer = { } export type t_PagedManufacturer = { - nextLink?: string + nextLink?: string | undefined value: t_Manufacturer[] } export type t_PagedWidget = { - nextLink?: string + nextLink?: string | undefined value: t_Widget[] } export type t_PagedWidgetPart = { - nextLink?: string + nextLink?: string | undefined value: t_WidgetPart[] } @@ -67,8 +67,8 @@ export type t_WidgetAnalytics = { } export type t_WidgetAnalyticsCreateOrUpdate = { - repairCount?: number - useCount?: number + repairCount?: number | undefined + useCount?: number | undefined } export type t_WidgetColor = @@ -80,8 +80,8 @@ export type t_WidgetColor = | "Blue" export type t_WidgetCreateOrUpdate = { - color?: t_WidgetColor - manufacturerId?: string + color?: t_WidgetColor | undefined + manufacturerId?: string | undefined } export type t_WidgetPart = { diff --git a/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/models.ts b/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/models.ts index 2799187f..2635b2b4 100644 --- a/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/models.ts +++ b/integration-tests/typescript-axios/src/generated/azure-resource-manager.tsp/models.ts @@ -9,35 +9,41 @@ export type t_Azure_Core_uuid = string export type t_Azure_ResourceManager_CommonTypes_ActionType = "Internal" | string export type t_Azure_ResourceManager_CommonTypes_ErrorAdditionalInfo = { - readonly info?: EmptyObject - readonly type?: string + readonly info?: EmptyObject | undefined + readonly type?: string | undefined } export type t_Azure_ResourceManager_CommonTypes_ErrorDetail = { - readonly additionalInfo?: t_Azure_ResourceManager_CommonTypes_ErrorAdditionalInfo[] - readonly code?: string - readonly details?: t_Azure_ResourceManager_CommonTypes_ErrorDetail[] - readonly message?: string - readonly target?: string + readonly additionalInfo?: + | t_Azure_ResourceManager_CommonTypes_ErrorAdditionalInfo[] + | undefined + readonly code?: string | undefined + readonly details?: + | t_Azure_ResourceManager_CommonTypes_ErrorDetail[] + | undefined + readonly message?: string | undefined + readonly target?: string | undefined } export type t_Azure_ResourceManager_CommonTypes_ErrorResponse = { - error?: t_Azure_ResourceManager_CommonTypes_ErrorDetail + error?: t_Azure_ResourceManager_CommonTypes_ErrorDetail | undefined } export type t_Azure_ResourceManager_CommonTypes_Operation = { - actionType?: t_Azure_ResourceManager_CommonTypes_ActionType - readonly display?: t_Azure_ResourceManager_CommonTypes_OperationDisplay - readonly isDataAction?: boolean - readonly name?: string - readonly origin?: t_Azure_ResourceManager_CommonTypes_Origin + actionType?: t_Azure_ResourceManager_CommonTypes_ActionType | undefined + readonly display?: + | t_Azure_ResourceManager_CommonTypes_OperationDisplay + | undefined + readonly isDataAction?: boolean | undefined + readonly name?: string | undefined + readonly origin?: t_Azure_ResourceManager_CommonTypes_Origin | undefined } export type t_Azure_ResourceManager_CommonTypes_OperationDisplay = { - readonly description?: string - readonly operation?: string - readonly provider?: string - readonly resource?: string + readonly description?: string | undefined + readonly operation?: string | undefined + readonly provider?: string | undefined + readonly resource?: string | undefined } export type t_Azure_ResourceManager_CommonTypes_Origin = @@ -47,19 +53,23 @@ export type t_Azure_ResourceManager_CommonTypes_Origin = | string export type t_Azure_ResourceManager_CommonTypes_Resource = { - readonly id?: string - readonly name?: string - readonly systemData?: t_Azure_ResourceManager_CommonTypes_SystemData - readonly type?: string + readonly id?: string | undefined + readonly name?: string | undefined + readonly systemData?: + | t_Azure_ResourceManager_CommonTypes_SystemData + | undefined + readonly type?: string | undefined } export type t_Azure_ResourceManager_CommonTypes_SystemData = { - createdAt?: string - createdBy?: string - createdByType?: t_Azure_ResourceManager_CommonTypes_createdByType - lastModifiedAt?: string - lastModifiedBy?: string - lastModifiedByType?: t_Azure_ResourceManager_CommonTypes_createdByType + createdAt?: string | undefined + createdBy?: string | undefined + createdByType?: t_Azure_ResourceManager_CommonTypes_createdByType | undefined + lastModifiedAt?: string | undefined + lastModifiedBy?: string | undefined + lastModifiedByType?: + | t_Azure_ResourceManager_CommonTypes_createdByType + | undefined } export type t_Azure_ResourceManager_CommonTypes_TrackedResource = @@ -78,7 +88,7 @@ export type t_Azure_ResourceManager_CommonTypes_createdByType = export type t_Employee = t_Azure_ResourceManager_CommonTypes_TrackedResource export type t_EmployeeListResult = { - nextLink?: string + nextLink?: string | undefined value: t_Employee[] } @@ -95,6 +105,6 @@ export type t_MoveResponse = { } export type t_OperationListResult = { - nextLink?: string + nextLink?: string | undefined value: t_Azure_ResourceManager_CommonTypes_Operation[] } diff --git a/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts b/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts index 55b12817..0164f9e3 100644 --- a/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/okta.idp.yaml/client.ts @@ -276,9 +276,9 @@ export class MyAccountManagement extends AbstractAxiosClient { profile: { email: string } - role?: "PRIMARY" | "SECONDARY" - sendEmail?: boolean - state?: string + role?: ("PRIMARY" | "SECONDARY") | undefined + sendEmail?: boolean | undefined + state?: string | undefined } }, timeout?: number, @@ -599,11 +599,11 @@ export class MyAccountManagement extends AbstractAxiosClient { async createPhone( p: { requestBody: { - method?: "SMS" | "CALL" + method?: ("SMS" | "CALL") | undefined profile: { - phoneNumber?: string + phoneNumber?: string | undefined } - sendCode?: boolean + sendCode?: boolean | undefined } }, timeout?: number, @@ -669,21 +669,25 @@ export class MyAccountManagement extends AbstractAxiosClient { id: string requestBody: { method: "SMS" | "CALL" - retry?: boolean + retry?: boolean | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - _links?: { - verify?: { - hints: { - allow: "GET"[] + _links?: + | { + verify?: + | { + hints: { + allow: "GET"[] + } + href: string + } + | undefined } - href: string - } - } + | undefined }> > { const url = `/idp/myaccount/phones/${p["id"]}/challenge` @@ -749,7 +753,7 @@ export class MyAccountManagement extends AbstractAxiosClient { async replaceProfile( p: { requestBody: { - profile?: EmptyObject + profile?: EmptyObject | undefined } }, timeout?: number, diff --git a/integration-tests/typescript-axios/src/generated/okta.idp.yaml/models.ts b/integration-tests/typescript-axios/src/generated/okta.idp.yaml/models.ts index 9f7cca22..2bfd82d4 100644 --- a/integration-tests/typescript-axios/src/generated/okta.idp.yaml/models.ts +++ b/integration-tests/typescript-axios/src/generated/okta.idp.yaml/models.ts @@ -5,44 +5,64 @@ export type EmptyObject = { [key: string]: never } export type t_AppAuthenticatorEnrollment = { - readonly authenticatorId?: string - readonly createdDate?: string - readonly device?: { - clientInstanceId?: string - createdDate?: string - id?: string - lastUpdated?: string - status?: "ACTIVE" - } - readonly id?: string - readonly lastUpdated?: string - readonly links?: { - self?: { - hints?: { - allow?: ("PATCH" | "DELETE")[] + readonly authenticatorId?: string | undefined + readonly createdDate?: string | undefined + readonly device?: + | { + clientInstanceId?: string | undefined + createdDate?: string | undefined + id?: string | undefined + lastUpdated?: string | undefined + status?: "ACTIVE" | undefined } - href?: string - } - } - methods?: { - push?: { - createdDate?: string - id?: string - lastUpdated?: string - links?: { - pending?: { - hints?: { - allow?: "GET"[] - } - href?: string - } + | undefined + readonly id?: string | undefined + readonly lastUpdated?: string | undefined + readonly links?: + | { + self?: + | { + hints?: + | { + allow?: ("PATCH" | "DELETE")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined } - } - } - readonly user?: { - id?: string - username?: string - } + | undefined + methods?: + | { + push?: + | { + createdDate?: string | undefined + id?: string | undefined + lastUpdated?: string | undefined + links?: + | { + pending?: + | { + hints?: + | { + allow?: "GET"[] | undefined + } + | undefined + href?: string | undefined + } + | undefined + } + | undefined + } + | undefined + } + | undefined + readonly user?: + | { + id?: string | undefined + username?: string | undefined + } + | undefined } export type t_AppAuthenticatorEnrollmentRequest = { @@ -52,24 +72,26 @@ export type t_AppAuthenticatorEnrollmentRequest = { clientInstanceDeviceSdkVersion: string clientInstanceKey: t_KeyObject clientInstanceVersion: string - deviceAttestation?: { - [key: string]: unknown | undefined - } + deviceAttestation?: + | { + [key: string]: unknown | undefined + } + | undefined displayName: string - manufacturer?: string - model?: string + manufacturer?: string | undefined + model?: string | undefined osVersion: string platform: "ANDROID" | "IOS" - secureHardwarePresent?: boolean - udid?: string + secureHardwarePresent?: boolean | undefined + udid?: string | undefined } methods: { push: { - apsEnvironment?: "PRODUCTION" | "DEVELOPMENT" + apsEnvironment?: ("PRODUCTION" | "DEVELOPMENT") | undefined keys: { - capabilities?: t_AppAuthenticatorMethodCapabilities + capabilities?: t_AppAuthenticatorMethodCapabilities | undefined proofOfPossession: t_KeyObject - userVerification?: t_KeyObject + userVerification?: t_KeyObject | undefined } pushToken: string } @@ -77,35 +99,41 @@ export type t_AppAuthenticatorEnrollmentRequest = { } export type t_AppAuthenticatorMethodCapabilities = { - transactionTypes?: ("LOGIN" | "CIBA")[] + transactionTypes?: ("LOGIN" | "CIBA")[] | undefined } export type t_Authenticator = { - readonly _embedded?: { - enrollments?: t_AuthenticatorEnrollment[] - } - readonly _links?: { - enrollments?: t_HrefObject - self?: t_HrefObject - } - readonly enrollable?: boolean - readonly id?: string - key?: t_AuthenticatorKey - readonly name?: string + readonly _embedded?: + | { + enrollments?: t_AuthenticatorEnrollment[] | undefined + } + | undefined + readonly _links?: + | { + enrollments?: t_HrefObject | undefined + self?: t_HrefObject | undefined + } + | undefined + readonly enrollable?: boolean | undefined + readonly id?: string | undefined + key?: t_AuthenticatorKey | undefined + readonly name?: string | undefined } export type t_AuthenticatorEnrollment = { - readonly _links?: { - authenticator?: t_HrefObject - self?: t_HrefObject - } - readonly canReset?: boolean - readonly canUnenroll?: boolean - readonly created?: string - readonly id?: string - readonly lastChallenged?: string - name?: string - readonly profile?: EmptyObject + readonly _links?: + | { + authenticator?: t_HrefObject | undefined + self?: t_HrefObject | undefined + } + | undefined + readonly canReset?: boolean | undefined + readonly canUnenroll?: boolean | undefined + readonly created?: string | undefined + readonly id?: string | undefined + readonly lastChallenged?: string | undefined + name?: string | undefined + readonly profile?: EmptyObject | undefined } export type t_AuthenticatorKey = @@ -126,32 +154,50 @@ export type t_AuthenticatorKey = | "yubikey_token" export type t_Email = { - _links?: { - challenge?: { - hints?: { - allow?: ("DELETE" | "GET" | "POST" | "PUT")[] - } - href?: string - } - poll?: { - hints?: { - allow?: ("DELETE" | "GET" | "POST" | "PUT")[] - } - href?: string - } - self?: { - hints?: { - allow?: ("GET" | "DELETE" | "PUT")[] + _links?: + | { + challenge?: + | { + hints?: + | { + allow?: ("DELETE" | "GET" | "POST" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined + poll?: + | { + hints?: + | { + allow?: ("DELETE" | "GET" | "POST" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined + self?: + | { + hints?: + | { + allow?: ("GET" | "DELETE" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined + verify?: + | { + hints?: + | { + allow?: ("DELETE" | "GET" | "POST" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined } - href?: string - } - verify?: { - hints?: { - allow?: ("DELETE" | "GET" | "POST" | "PUT")[] - } - href?: string - } - } + | undefined readonly id: string profile: { email: string @@ -161,22 +207,26 @@ export type t_Email = { } export type t_Error = { - errorCauses?: { - readonly errorSummary?: string - }[] - readonly errorCode?: string - readonly errorId?: string - readonly errorLink?: string - readonly errorSummary?: string + errorCauses?: + | { + readonly errorSummary?: string | undefined + }[] + | undefined + readonly errorCode?: string | undefined + readonly errorId?: string | undefined + readonly errorLink?: string | undefined + readonly errorSummary?: string | undefined } export type t_HrefObject = { - hints?: { - allow?: t_HttpMethod[] - } + hints?: + | { + allow?: t_HttpMethod[] | undefined + } + | undefined href: string - name?: string - type?: string + name?: string | undefined + type?: string | undefined } export type t_HttpMethod = "DELETE" | "GET" | "POST" | "PUT" @@ -201,62 +251,88 @@ export type t_KeyRSA = { } export type t_OktaApplication = { - readonly displayName?: string - readonly id?: string - readonly name?: string + readonly displayName?: string | undefined + readonly id?: string | undefined + readonly name?: string | undefined } export type t_Organization = { - _links?: { - self?: { - hints?: { - allow?: "GET"[] + _links?: + | { + self?: + | { + hints?: + | { + allow?: "GET"[] | undefined + } + | undefined + href?: string | undefined + } + | undefined } - href?: string - } - } - readonly helpLink?: string - readonly name?: string - readonly supportEmail?: string - readonly url?: string + | undefined + readonly helpLink?: string | undefined + readonly name?: string | undefined + readonly supportEmail?: string | undefined + readonly url?: string | undefined } export type t_PasswordResponse = { - _links?: { - self?: { - hints?: { - allow?: ("DELETE" | "GET" | "PUT")[] + _links?: + | { + self?: + | { + hints?: + | { + allow?: ("DELETE" | "GET" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined } - href?: string - } - } - created?: string - readonly id?: string - lastUpdated?: string - status?: string + | undefined + created?: string | undefined + readonly id?: string | undefined + lastUpdated?: string | undefined + status?: string | undefined } export type t_Phone = { - _links?: { - challenge?: { - hints?: { - allow?: ("DELETE" | "GET" | "POST" | "PUT")[] - } - href?: string - } - self?: { - hints?: { - allow?: ("GET" | "DELETE" | "PUT")[] + _links?: + | { + challenge?: + | { + hints?: + | { + allow?: ("DELETE" | "GET" | "POST" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined + self?: + | { + hints?: + | { + allow?: ("GET" | "DELETE" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined + verify?: + | { + hints?: + | { + allow?: ("DELETE" | "GET" | "POST" | "PUT")[] | undefined + } + | undefined + href?: string | undefined + } + | undefined } - href?: string - } - verify?: { - hints?: { - allow?: ("DELETE" | "GET" | "POST" | "PUT")[] - } - href?: string - } - } + | undefined readonly id: string profile: { phoneNumber: string @@ -265,49 +341,67 @@ export type t_Phone = { } export type t_Profile = { - _links?: { - describedBy?: { - readonly href?: string - } - self?: { - readonly href?: string - } - } - readonly createdAt?: string - readonly modifiedAt?: string - profile?: EmptyObject + _links?: + | { + describedBy?: + | { + readonly href?: string | undefined + } + | undefined + self?: + | { + readonly href?: string | undefined + } + | undefined + } + | undefined + readonly createdAt?: string | undefined + readonly modifiedAt?: string | undefined + profile?: EmptyObject | undefined } export type t_PushNotificationChallenge = { - challenge?: string - payloadVersion?: "IDXv1" + challenge?: string | undefined + payloadVersion?: "IDXv1" | undefined } export type t_PushNotificationVerification = { - challengeResponse?: string - method?: "push" + challengeResponse?: string | undefined + method?: "push" | undefined } export type t_Schema = { - _links?: { - self?: { - readonly href?: string - } - user?: { - readonly href?: string - } - } - readonly properties?: EmptyObject + _links?: + | { + self?: + | { + readonly href?: string | undefined + } + | undefined + user?: + | { + readonly href?: string | undefined + } + | undefined + } + | undefined + readonly properties?: EmptyObject | undefined } export type t_UpdateAppAuthenticatorEnrollmentRequest = { - methods?: { - push?: { - capabilities?: t_AppAuthenticatorMethodCapabilities - keys?: { - userVerification?: t_KeyObject + methods?: + | { + push?: + | { + capabilities?: t_AppAuthenticatorMethodCapabilities | undefined + keys?: + | { + userVerification?: t_KeyObject | undefined + } + | undefined + pushToken?: string | undefined + } + | undefined } - pushToken?: string - } - } + | undefined } diff --git a/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/models.ts b/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/models.ts index d91eafb9..e1a5668e 100644 --- a/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/models.ts +++ b/integration-tests/typescript-axios/src/generated/okta.oauth.yaml/models.ts @@ -30,37 +30,37 @@ export type t_AmrValue = export type t_ApplicationType = "browser" | "native" | "service" | "web" export type t_BackchannelAuthorizeRequest = { - binding_message?: string + binding_message?: string | undefined id_token_hint: string login_hint: string - request?: string - request_expiry?: number + request?: string | undefined + request_expiry?: number | undefined scope: string [key: string]: unknown | undefined } export type t_BackchannelAuthorizeResponse = { - auth_req_id?: string - expires_in?: number - interval?: number + auth_req_id?: string | undefined + expires_in?: number | undefined + interval?: number | undefined } export type t_BindingMethod = "none" | "prompt" | "transfer" export type t_ChallengeRequest = { - challenge_types_supported?: t_ChallengeType[] - channel_hint?: t_Channel + challenge_types_supported?: t_ChallengeType[] | undefined + channel_hint?: t_Channel | undefined mfa_token: string } export type t_ChallengeResponse = { - binding_code?: string - binding_method?: t_BindingMethod - challenge_type?: string - channel?: t_Channel - expires_in?: number - interval?: number - oob_code?: string + binding_code?: string | undefined + binding_method?: t_BindingMethod | undefined + challenge_type?: string | undefined + channel?: t_Channel | undefined + expires_in?: number | undefined + interval?: number | undefined + oob_code?: string | undefined } export type t_ChallengeType = @@ -72,44 +72,46 @@ export type t_Channel = "push" | "sms" | "voice" export type t_Claim = string export type t_Client = { - application_type?: t_ApplicationType - readonly client_id?: string - readonly client_id_issued_at?: number + application_type?: t_ApplicationType | undefined + readonly client_id?: string | undefined + readonly client_id_issued_at?: number | undefined client_name: string - readonly client_secret?: string | null - readonly client_secret_expires_at?: number | null - frontchannel_logout_session_required?: boolean - frontchannel_logout_uri?: string | null - grant_types?: t_GrantType[] - initiate_login_uri?: string - jwks?: { - keys?: t_JsonWebKey[] - } - jwks_uri?: string - logo_uri?: string | null - policy_uri?: string | null - post_logout_redirect_uris?: string - redirect_uris?: string[] - request_object_signing_alg?: t_SigningAlgorithm[] - response_types?: t_ResponseType[] - token_endpoint_auth_method?: t_EndpointAuthMethod - tos_uri?: string | null + readonly client_secret?: (string | null) | undefined + readonly client_secret_expires_at?: (number | null) | undefined + frontchannel_logout_session_required?: boolean | undefined + frontchannel_logout_uri?: (string | null) | undefined + grant_types?: t_GrantType[] | undefined + initiate_login_uri?: string | undefined + jwks?: + | { + keys?: t_JsonWebKey[] | undefined + } + | undefined + jwks_uri?: string | undefined + logo_uri?: (string | null) | undefined + policy_uri?: (string | null) | undefined + post_logout_redirect_uris?: string | undefined + redirect_uris?: string[] | undefined + request_object_signing_alg?: t_SigningAlgorithm[] | undefined + response_types?: t_ResponseType[] | undefined + token_endpoint_auth_method?: t_EndpointAuthMethod | undefined + tos_uri?: (string | null) | undefined } export type t_CodeChallengeMethod = "S256" export type t_DeviceAuthorizeRequest = { - client_id?: string - scope?: string + client_id?: string | undefined + scope?: string | undefined } export type t_DeviceAuthorizeResponse = { - device_code?: string - expires_in?: number - interval?: number - user_code?: string - verification_uri?: string - verification_uri_complete?: string + device_code?: string | undefined + expires_in?: number | undefined + interval?: number | undefined + user_code?: string | undefined + verification_uri?: string | undefined + verification_uri_complete?: string | undefined } export type t_EndpointAuthMethod = @@ -120,17 +122,19 @@ export type t_EndpointAuthMethod = | "private_key_jwt" export type t_Error = { - errorCauses?: { - errorSummary?: string - }[] - errorCode?: string - errorId?: string - errorLink?: string - errorSummary?: string + errorCauses?: + | { + errorSummary?: string | undefined + }[] + | undefined + errorCode?: string | undefined + errorId?: string | undefined + errorLink?: string | undefined + errorSummary?: string | undefined } export type t_GlobalTokenRevocationRequest = { - sub_id?: t_sub_id + sub_id?: t_sub_id | undefined } export type t_GrantType = @@ -151,34 +155,34 @@ export type t_GrantType = | "http://auth0.com/oauth/grant-type/mfa-oob" export type t_IntrospectionRequest = { - token?: string - token_type_hint?: t_TokenTypeHintIntrospect + token?: string | undefined + token_type_hint?: t_TokenTypeHintIntrospect | undefined } export type t_IntrospectionResponse = { - active?: boolean - aud?: string - client_id?: string - device_id?: string - exp?: number - iat?: number - iss?: string - jti?: string - nbf?: number - scope?: string - sub?: string - token_type?: string - uid?: string - username?: string + active?: boolean | undefined + aud?: string | undefined + client_id?: string | undefined + device_id?: string | undefined + exp?: number | undefined + iat?: number | undefined + iss?: string | undefined + jti?: string | undefined + nbf?: number | undefined + scope?: string | undefined + sub?: string | undefined + token_type?: string | undefined + uid?: string | undefined + username?: string | undefined [key: string]: unknown | undefined } export type t_JsonWebKey = { - alg?: t_SigningAlgorithm - kid?: string - kty?: t_JsonWebKeyType - status?: t_JsonWebKeyStatus - use?: t_JsonWebKeyUse + alg?: t_SigningAlgorithm | undefined + kid?: string | undefined + kty?: t_JsonWebKeyType | undefined + status?: t_JsonWebKeyStatus | undefined + use?: t_JsonWebKeyUse | undefined } export type t_JsonWebKeyStatus = "ACTIVE" | "INACTIVE" @@ -189,57 +193,58 @@ export type t_JsonWebKeyUse = "enc" | "sig" export type t_LogoutWithPost = { id_token_hint: string - post_logout_redirect_uri?: string - state?: string + post_logout_redirect_uri?: string | undefined + state?: string | undefined } export type t_OAuthError = { - error?: string - error_description?: string + error?: string | undefined + error_description?: string | undefined } export type t_OAuthKeys = { - keys?: t_JsonWebKey[] + keys?: t_JsonWebKey[] | undefined } export type t_OAuthMetadata = { - authorization_endpoint?: string - backchannel_authentication_request_signing_alg_values_supported?: t_SigningAlgorithm[] - backchannel_token_delivery_modes_supported?: t_TokenDeliveryMode[] - claims_supported?: t_Claim[] - code_challenge_methods_supported?: t_CodeChallengeMethod[] - device_authorization_endpoint?: string - dpop_signing_alg_values_supported?: ( - | "ES256" - | "ES384" - | "ES512" - | "RS256" - | "RS384" - | "RS512" - )[] - end_session_endpoint?: string - grant_types_supported?: t_GrantType[] - introspection_endpoint?: string - introspection_endpoint_auth_methods_supported?: t_EndpointAuthMethod[] - issuer?: string - jwks_uri?: string - pushed_authorization_request_endpoint?: string - registration_endpoint?: string - request_object_signing_alg_values_supported?: t_SigningAlgorithm[] - request_parameter_supported?: boolean - response_modes_supported?: t_ResponseMode[] - response_types_supported?: t_ResponseTypesSupported[] - revocation_endpoint?: string - revocation_endpoint_auth_methods_supported?: t_EndpointAuthMethod[] - scopes_supported?: t_Scope[] - subject_types_supported?: t_SubjectType[] - token_endpoint?: string - token_endpoint_auth_methods_supported?: t_EndpointAuthMethod[] + authorization_endpoint?: string | undefined + backchannel_authentication_request_signing_alg_values_supported?: + | t_SigningAlgorithm[] + | undefined + backchannel_token_delivery_modes_supported?: t_TokenDeliveryMode[] | undefined + claims_supported?: t_Claim[] | undefined + code_challenge_methods_supported?: t_CodeChallengeMethod[] | undefined + device_authorization_endpoint?: string | undefined + dpop_signing_alg_values_supported?: + | ("ES256" | "ES384" | "ES512" | "RS256" | "RS384" | "RS512")[] + | undefined + end_session_endpoint?: string | undefined + grant_types_supported?: t_GrantType[] | undefined + introspection_endpoint?: string | undefined + introspection_endpoint_auth_methods_supported?: + | t_EndpointAuthMethod[] + | undefined + issuer?: string | undefined + jwks_uri?: string | undefined + pushed_authorization_request_endpoint?: string | undefined + registration_endpoint?: string | undefined + request_object_signing_alg_values_supported?: t_SigningAlgorithm[] | undefined + request_parameter_supported?: boolean | undefined + response_modes_supported?: t_ResponseMode[] | undefined + response_types_supported?: t_ResponseTypesSupported[] | undefined + revocation_endpoint?: string | undefined + revocation_endpoint_auth_methods_supported?: + | t_EndpointAuthMethod[] + | undefined + scopes_supported?: t_Scope[] | undefined + subject_types_supported?: t_SubjectType[] | undefined + token_endpoint?: string | undefined + token_endpoint_auth_methods_supported?: t_EndpointAuthMethod[] | undefined } export type t_OidcMetadata = t_OAuthMetadata & { - id_token_signing_alg_values_supported?: t_SigningAlgorithm[] - userinfo_endpoint?: string + id_token_signing_alg_values_supported?: t_SigningAlgorithm[] | undefined + userinfo_endpoint?: string | undefined } export type t_OobAuthenticateRequest = { @@ -248,37 +253,37 @@ export type t_OobAuthenticateRequest = { } export type t_OobAuthenticateResponse = { - binding_code?: string - binding_method?: t_BindingMethod - channel?: t_Channel - expires_in?: number - interval?: number - oob_code?: string + binding_code?: string | undefined + binding_method?: t_BindingMethod | undefined + channel?: t_Channel | undefined + expires_in?: number | undefined + interval?: number | undefined + oob_code?: string | undefined } export type t_ParRequest = { - client_id?: string - code_challenge?: string - code_challenge_method?: string - display?: string - idp?: string - idp_scope?: string - login_hint?: string - max_age?: number - nonce?: string - prompt?: string - redirect_uri?: string - request?: string - response_mode?: string - response_type?: string - scope?: string - sessionToken?: string - state?: string + client_id?: string | undefined + code_challenge?: string | undefined + code_challenge_method?: string | undefined + display?: string | undefined + idp?: string | undefined + idp_scope?: string | undefined + login_hint?: string | undefined + max_age?: number | undefined + nonce?: string | undefined + prompt?: string | undefined + redirect_uri?: string | undefined + request?: string | undefined + response_mode?: string | undefined + response_type?: string | undefined + scope?: string | undefined + sessionToken?: string | undefined + state?: string | undefined } export type t_ParResponse = { - expires_in?: number - request_uri?: string + expires_in?: number | undefined + request_uri?: string | undefined } export type t_Prompt = @@ -307,7 +312,7 @@ export type t_ResponseTypesSupported = export type t_RevokeRequest = { token: string - token_type_hint?: t_TokenTypeHintRevoke + token_type_hint?: t_TokenTypeHintRevoke | undefined } export type t_Scope = string @@ -328,18 +333,18 @@ export type t_SubjectType = "pairwise" | "public" export type t_TokenDeliveryMode = "poll" export type t_TokenRequest = { - grant_type?: t_GrantType + grant_type?: t_GrantType | undefined } export type t_TokenResponse = { - access_token?: string - device_secret?: string - expires_in?: number - id_token?: string - issued_token_type?: t_TokenType - refresh_token?: string - scope?: string - token_type?: t_TokenResponseTokenType + access_token?: string | undefined + device_secret?: string | undefined + expires_in?: number | undefined + id_token?: string | undefined + issued_token_type?: t_TokenType | undefined + refresh_token?: string | undefined + scope?: string | undefined + token_type?: t_TokenResponseTokenType | undefined } export type t_TokenResponseTokenType = "Bearer" | "N_A" @@ -366,11 +371,11 @@ export type t_TokenTypeHintRevoke = | "refresh_token" export type t_UserInfo = { - sub?: string + sub?: string | undefined [key: string]: unknown | undefined } export type t_sub_id = { - format?: "opaque" - id?: string + format?: "opaque" | undefined + id?: string | undefined } diff --git a/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/models.ts b/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/models.ts index 9c02f345..411239e2 100644 --- a/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/models.ts +++ b/integration-tests/typescript-axios/src/generated/petstore-expanded.yaml/models.ts @@ -9,7 +9,7 @@ export type t_Error = { export type t_NewPet = { name: string - tag?: string + tag?: string | undefined } export type t_Pet = t_NewPet & { diff --git a/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts b/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts index 99db70c4..5b52e764 100644 --- a/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/stripe.yaml/client.ts @@ -265,14 +265,16 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { account: string - collect?: "currently_due" | "eventually_due" - collection_options?: { - fields?: "currently_due" | "eventually_due" - future_requirements?: "include" | "omit" - } - expand?: string[] - refresh_url?: string - return_url?: string + collect?: ("currently_due" | "eventually_due") | undefined + collection_options?: + | { + fields?: ("currently_due" | "eventually_due") | undefined + future_requirements?: ("include" | "omit") | undefined + } + | undefined + expand?: string[] | undefined + refresh_url?: string | undefined + return_url?: string | undefined type: "account_onboarding" | "account_update" } }, @@ -301,83 +303,123 @@ export class StripeApi extends AbstractAxiosClient { requestBody: { account: string components: { - account_management?: { - enabled: boolean - features?: { - disable_stripe_user_authentication?: boolean - external_account_collection?: boolean - } - } - account_onboarding?: { - enabled: boolean - features?: { - disable_stripe_user_authentication?: boolean - external_account_collection?: boolean - } - } - balances?: { - enabled: boolean - features?: { - disable_stripe_user_authentication?: boolean - edit_payout_schedule?: boolean - external_account_collection?: boolean - instant_payouts?: boolean - standard_payouts?: boolean - } - } - documents?: { - enabled: boolean - features?: EmptyObject - } - notification_banner?: { - enabled: boolean - features?: { - disable_stripe_user_authentication?: boolean - external_account_collection?: boolean - } - } - payment_details?: { - enabled: boolean - features?: { - capture_payments?: boolean - destination_on_behalf_of_charge_management?: boolean - dispute_management?: boolean - refund_management?: boolean - } - } - payments?: { - enabled: boolean - features?: { - capture_payments?: boolean - destination_on_behalf_of_charge_management?: boolean - dispute_management?: boolean - refund_management?: boolean - } - } - payouts?: { - enabled: boolean - features?: { - disable_stripe_user_authentication?: boolean - edit_payout_schedule?: boolean - external_account_collection?: boolean - instant_payouts?: boolean - standard_payouts?: boolean - } - } - payouts_list?: { - enabled: boolean - features?: EmptyObject - } - tax_registrations?: { - enabled: boolean - features?: EmptyObject - } - tax_settings?: { - enabled: boolean - features?: EmptyObject - } + account_management?: + | { + enabled: boolean + features?: + | { + disable_stripe_user_authentication?: boolean | undefined + external_account_collection?: boolean | undefined + } + | undefined + } + | undefined + account_onboarding?: + | { + enabled: boolean + features?: + | { + disable_stripe_user_authentication?: boolean | undefined + external_account_collection?: boolean | undefined + } + | undefined + } + | undefined + balances?: + | { + enabled: boolean + features?: + | { + disable_stripe_user_authentication?: boolean | undefined + edit_payout_schedule?: boolean | undefined + external_account_collection?: boolean | undefined + instant_payouts?: boolean | undefined + standard_payouts?: boolean | undefined + } + | undefined + } + | undefined + documents?: + | { + enabled: boolean + features?: EmptyObject | undefined + } + | undefined + notification_banner?: + | { + enabled: boolean + features?: + | { + disable_stripe_user_authentication?: boolean | undefined + external_account_collection?: boolean | undefined + } + | undefined + } + | undefined + payment_details?: + | { + enabled: boolean + features?: + | { + capture_payments?: boolean | undefined + destination_on_behalf_of_charge_management?: + | boolean + | undefined + dispute_management?: boolean | undefined + refund_management?: boolean | undefined + } + | undefined + } + | undefined + payments?: + | { + enabled: boolean + features?: + | { + capture_payments?: boolean | undefined + destination_on_behalf_of_charge_management?: + | boolean + | undefined + dispute_management?: boolean | undefined + refund_management?: boolean | undefined + } + | undefined + } + | undefined + payouts?: + | { + enabled: boolean + features?: + | { + disable_stripe_user_authentication?: boolean | undefined + edit_payout_schedule?: boolean | undefined + external_account_collection?: boolean | undefined + instant_payouts?: boolean | undefined + standard_payouts?: boolean | undefined + } + | undefined + } + | undefined + payouts_list?: + | { + enabled: boolean + features?: EmptyObject | undefined + } + | undefined + tax_registrations?: + | { + enabled: boolean + features?: EmptyObject | undefined + } + | undefined + tax_settings?: + | { + enabled: boolean + features?: EmptyObject | undefined + } + | undefined } - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -404,10 +446,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -453,1180 +495,1635 @@ export class StripeApi extends AbstractAxiosClient { async postAccounts( p: { requestBody?: { - account_token?: string + account_token?: string | undefined bank_account?: - | { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - account_type?: "checking" | "futsu" | "savings" | "toza" - country: string - currency?: string - documents?: { - bank_account_ownership_verification?: { - files?: string[] + | ( + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + account_type?: + | ("checking" | "futsu" | "savings" | "toza") + | undefined + country: string + currency?: string | undefined + documents?: + | { + bank_account_ownership_verification?: + | { + files?: string[] | undefined + } + | undefined + } + | undefined + object?: "bank_account" | undefined + routing_number?: string | undefined } - } - object?: "bank_account" - routing_number?: string - } - | string - business_profile?: { - annual_revenue?: { - amount: number - currency: string - fiscal_year_end: string - } - estimated_worker_count?: number - mcc?: string - monthly_estimated_revenue?: { - amount: number - currency: string - } - name?: string - product_description?: string - support_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - support_email?: string - support_phone?: string - support_url?: string | "" - url?: string - } - business_type?: - | "company" - | "government_entity" - | "individual" - | "non_profit" - capabilities?: { - acss_debit_payments?: { - requested?: boolean - } - affirm_payments?: { - requested?: boolean - } - afterpay_clearpay_payments?: { - requested?: boolean - } - alma_payments?: { - requested?: boolean - } - amazon_pay_payments?: { - requested?: boolean - } - au_becs_debit_payments?: { - requested?: boolean - } - bacs_debit_payments?: { - requested?: boolean - } - bancontact_payments?: { - requested?: boolean - } - bank_transfer_payments?: { - requested?: boolean - } - blik_payments?: { - requested?: boolean - } - boleto_payments?: { - requested?: boolean - } - card_issuing?: { - requested?: boolean - } - card_payments?: { - requested?: boolean - } - cartes_bancaires_payments?: { - requested?: boolean - } - cashapp_payments?: { - requested?: boolean - } - eps_payments?: { - requested?: boolean - } - fpx_payments?: { - requested?: boolean - } - gb_bank_transfer_payments?: { - requested?: boolean - } - giropay_payments?: { - requested?: boolean - } - grabpay_payments?: { - requested?: boolean - } - ideal_payments?: { - requested?: boolean - } - india_international_payments?: { - requested?: boolean - } - jcb_payments?: { - requested?: boolean - } - jp_bank_transfer_payments?: { - requested?: boolean - } - kakao_pay_payments?: { - requested?: boolean - } - klarna_payments?: { - requested?: boolean - } - konbini_payments?: { - requested?: boolean - } - kr_card_payments?: { - requested?: boolean - } - legacy_payments?: { - requested?: boolean - } - link_payments?: { - requested?: boolean - } - mobilepay_payments?: { - requested?: boolean - } - multibanco_payments?: { - requested?: boolean - } - mx_bank_transfer_payments?: { - requested?: boolean - } - naver_pay_payments?: { - requested?: boolean - } - oxxo_payments?: { - requested?: boolean - } - p24_payments?: { - requested?: boolean - } - payco_payments?: { - requested?: boolean - } - paynow_payments?: { - requested?: boolean - } - promptpay_payments?: { - requested?: boolean - } - revolut_pay_payments?: { - requested?: boolean - } - samsung_pay_payments?: { - requested?: boolean - } - sepa_bank_transfer_payments?: { - requested?: boolean - } - sepa_debit_payments?: { - requested?: boolean - } - sofort_payments?: { - requested?: boolean - } - swish_payments?: { - requested?: boolean - } - tax_reporting_us_1099_k?: { - requested?: boolean - } - tax_reporting_us_1099_misc?: { - requested?: boolean - } - transfers?: { - requested?: boolean - } - treasury?: { - requested?: boolean - } - twint_payments?: { - requested?: boolean - } - us_bank_account_ach_payments?: { - requested?: boolean - } - us_bank_transfer_payments?: { - requested?: boolean - } - zip_payments?: { - requested?: boolean - } - } - company?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - directors_provided?: boolean - executives_provided?: boolean - export_license_id?: string - export_purpose_code?: string - name?: string - name_kana?: string - name_kanji?: string - owners_provided?: boolean - ownership_declaration?: { - date?: number - ip?: string - user_agent?: string - } - phone?: string - registration_number?: string - structure?: - | "" - | "free_zone_establishment" - | "free_zone_llc" - | "government_instrumentality" - | "governmental_unit" - | "incorporated_non_profit" - | "incorporated_partnership" - | "limited_liability_partnership" - | "llc" - | "multi_member_llc" - | "private_company" - | "private_corporation" - | "private_partnership" - | "public_company" - | "public_corporation" - | "public_partnership" - | "registered_charity" - | "single_member_llc" - | "sole_establishment" - | "sole_proprietorship" - | "tax_exempt_government_instrumentality" - | "unincorporated_association" - | "unincorporated_non_profit" - | "unincorporated_partnership" - tax_id?: string - tax_id_registrar?: string - vat_id?: string - verification?: { - document?: { - back?: string - front?: string - } - } - } - controller?: { - fees?: { - payer?: "account" | "application" - } - losses?: { - payments?: "application" | "stripe" - } - requirement_collection?: "application" | "stripe" - stripe_dashboard?: { - type?: "express" | "full" | "none" - } - } - country?: string - default_currency?: string - documents?: { - bank_account_ownership_verification?: { - files?: string[] - } - company_license?: { - files?: string[] - } - company_memorandum_of_association?: { - files?: string[] - } - company_ministerial_decree?: { - files?: string[] - } - company_registration_verification?: { - files?: string[] - } - company_tax_id_verification?: { - files?: string[] - } - proof_of_registration?: { - files?: string[] - } - } - email?: string - expand?: string[] - external_account?: string - groups?: { - payments_pricing?: string | "" - } - individual?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - dob?: - | { - day: number - month: number - year: number - } - | "" - email?: string - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - phone?: string - political_exposure?: "existing" | "none" - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - director?: boolean - executive?: boolean - owner?: boolean - percent_ownership?: number | "" - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } - } - metadata?: + | string + ) + | undefined + business_profile?: | { - [key: string]: string | undefined - } - | "" - settings?: { - bacs_debit_payments?: { - display_name?: string - } - branding?: { - icon?: string - logo?: string - primary_color?: string - secondary_color?: string - } - card_issuing?: { - tos_acceptance?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - card_payments?: { - decline_on?: { - avs_failure?: boolean - cvc_failure?: boolean - } - statement_descriptor_prefix?: string - statement_descriptor_prefix_kana?: string | "" - statement_descriptor_prefix_kanji?: string | "" - } - payments?: { - statement_descriptor?: string - statement_descriptor_kana?: string - statement_descriptor_kanji?: string - } - payouts?: { - debit_negative_balances?: boolean - schedule?: { - delay_days?: "minimum" | number - interval?: "daily" | "manual" | "monthly" | "weekly" - monthly_anchor?: number - weekly_anchor?: - | "friday" - | "monday" - | "saturday" - | "sunday" - | "thursday" - | "tuesday" - | "wednesday" - } - statement_descriptor?: string - } - treasury?: { - tos_acceptance?: { - date?: number - ip?: string - user_agent?: string | "" + annual_revenue?: + | { + amount: number + currency: string + fiscal_year_end: string + } + | undefined + estimated_worker_count?: number | undefined + mcc?: string | undefined + monthly_estimated_revenue?: + | { + amount: number + currency: string + } + | undefined + name?: string | undefined + product_description?: string | undefined + support_address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + support_email?: string | undefined + support_phone?: string | undefined + support_url?: (string | "") | undefined + url?: string | undefined } - } - } - tos_acceptance?: { - date?: number - ip?: string - service_agreement?: string - user_agent?: string - } - type?: "custom" | "express" | "standard" - } - } = {}, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async deleteAccountsAccount( - p: { - account: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts/${p["account"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "DELETE", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getAccountsAccount( - p: { - account: string - expand?: string[] - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts/${p["account"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postAccountsAccount( - p: { - account: string - requestBody?: { - account_token?: string - business_profile?: { - annual_revenue?: { - amount: number - currency: string - fiscal_year_end: string - } - estimated_worker_count?: number - mcc?: string - monthly_estimated_revenue?: { - amount: number - currency: string - } - name?: string - product_description?: string - support_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - support_email?: string - support_phone?: string - support_url?: string | "" - url?: string - } + | undefined business_type?: - | "company" - | "government_entity" - | "individual" - | "non_profit" - capabilities?: { - acss_debit_payments?: { - requested?: boolean - } - affirm_payments?: { - requested?: boolean - } - afterpay_clearpay_payments?: { - requested?: boolean - } - alma_payments?: { - requested?: boolean - } - amazon_pay_payments?: { - requested?: boolean - } - au_becs_debit_payments?: { - requested?: boolean - } - bacs_debit_payments?: { - requested?: boolean - } - bancontact_payments?: { - requested?: boolean - } - bank_transfer_payments?: { - requested?: boolean - } - blik_payments?: { - requested?: boolean - } - boleto_payments?: { - requested?: boolean - } - card_issuing?: { - requested?: boolean - } - card_payments?: { - requested?: boolean - } - cartes_bancaires_payments?: { - requested?: boolean - } - cashapp_payments?: { - requested?: boolean - } - eps_payments?: { - requested?: boolean - } - fpx_payments?: { - requested?: boolean - } - gb_bank_transfer_payments?: { - requested?: boolean - } - giropay_payments?: { - requested?: boolean - } - grabpay_payments?: { - requested?: boolean - } - ideal_payments?: { - requested?: boolean - } - india_international_payments?: { - requested?: boolean - } - jcb_payments?: { - requested?: boolean - } - jp_bank_transfer_payments?: { - requested?: boolean - } - kakao_pay_payments?: { - requested?: boolean - } - klarna_payments?: { - requested?: boolean - } - konbini_payments?: { - requested?: boolean - } - kr_card_payments?: { - requested?: boolean - } - legacy_payments?: { - requested?: boolean - } - link_payments?: { - requested?: boolean - } - mobilepay_payments?: { - requested?: boolean - } - multibanco_payments?: { - requested?: boolean - } - mx_bank_transfer_payments?: { - requested?: boolean - } - naver_pay_payments?: { - requested?: boolean - } - oxxo_payments?: { - requested?: boolean - } - p24_payments?: { - requested?: boolean - } - payco_payments?: { - requested?: boolean - } - paynow_payments?: { - requested?: boolean - } - promptpay_payments?: { - requested?: boolean - } - revolut_pay_payments?: { - requested?: boolean - } - samsung_pay_payments?: { - requested?: boolean - } - sepa_bank_transfer_payments?: { - requested?: boolean - } - sepa_debit_payments?: { - requested?: boolean - } - sofort_payments?: { - requested?: boolean - } - swish_payments?: { - requested?: boolean - } - tax_reporting_us_1099_k?: { - requested?: boolean - } - tax_reporting_us_1099_misc?: { - requested?: boolean - } - transfers?: { - requested?: boolean - } - treasury?: { - requested?: boolean - } - twint_payments?: { - requested?: boolean - } - us_bank_account_ach_payments?: { - requested?: boolean - } - us_bank_transfer_payments?: { - requested?: boolean - } - zip_payments?: { - requested?: boolean - } - } - company?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - directors_provided?: boolean - executives_provided?: boolean - export_license_id?: string - export_purpose_code?: string - name?: string - name_kana?: string - name_kanji?: string - owners_provided?: boolean - ownership_declaration?: { - date?: number - ip?: string - user_agent?: string - } - phone?: string - registration_number?: string - structure?: - | "" - | "free_zone_establishment" - | "free_zone_llc" - | "government_instrumentality" - | "governmental_unit" - | "incorporated_non_profit" - | "incorporated_partnership" - | "limited_liability_partnership" - | "llc" - | "multi_member_llc" - | "private_company" - | "private_corporation" - | "private_partnership" - | "public_company" - | "public_corporation" - | "public_partnership" - | "registered_charity" - | "single_member_llc" - | "sole_establishment" - | "sole_proprietorship" - | "tax_exempt_government_instrumentality" - | "unincorporated_association" - | "unincorporated_non_profit" - | "unincorporated_partnership" - tax_id?: string - tax_id_registrar?: string - vat_id?: string - verification?: { - document?: { - back?: string - front?: string - } - } - } - default_currency?: string - documents?: { - bank_account_ownership_verification?: { - files?: string[] - } - company_license?: { - files?: string[] - } - company_memorandum_of_association?: { - files?: string[] - } - company_ministerial_decree?: { - files?: string[] - } - company_registration_verification?: { - files?: string[] - } - company_tax_id_verification?: { - files?: string[] - } - proof_of_registration?: { - files?: string[] - } - } - email?: string - expand?: string[] - external_account?: string - groups?: { - payments_pricing?: string | "" - } - individual?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - dob?: - | { - day: number - month: number - year: number - } - | "" - email?: string - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - phone?: string - political_exposure?: "existing" | "none" - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - director?: boolean - executive?: boolean - owner?: boolean - percent_ownership?: number | "" - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } - } - metadata?: - | { - [key: string]: string | undefined - } - | "" - settings?: { - bacs_debit_payments?: { - display_name?: string - } - branding?: { - icon?: string - logo?: string - primary_color?: string - secondary_color?: string - } - card_issuing?: { - tos_acceptance?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - card_payments?: { - decline_on?: { - avs_failure?: boolean - cvc_failure?: boolean - } - statement_descriptor_prefix?: string - statement_descriptor_prefix_kana?: string | "" - statement_descriptor_prefix_kanji?: string | "" - } - invoices?: { - default_account_tax_ids?: string[] | "" - } - payments?: { - statement_descriptor?: string - statement_descriptor_kana?: string - statement_descriptor_kanji?: string - } - payouts?: { - debit_negative_balances?: boolean - schedule?: { - delay_days?: "minimum" | number - interval?: "daily" | "manual" | "monthly" | "weekly" - monthly_anchor?: number - weekly_anchor?: - | "friday" - | "monday" - | "saturday" - | "sunday" - | "thursday" - | "tuesday" - | "wednesday" - } - statement_descriptor?: string - } - treasury?: { - tos_acceptance?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - } - tos_acceptance?: { - date?: number - ip?: string - service_agreement?: string - user_agent?: string - } - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts/${p["account"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postAccountsAccountBankAccounts( - p: { - account: string - requestBody?: { - bank_account?: - | { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - account_type?: "checking" | "futsu" | "savings" | "toza" - country: string - currency?: string - documents?: { - bank_account_ownership_verification?: { - files?: string[] - } - } - object?: "bank_account" - routing_number?: string - } - | string - default_for_currency?: boolean - expand?: string[] - external_account?: string - metadata?: { - [key: string]: string | undefined - } - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts/${p["account"]}/bank_accounts` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async deleteAccountsAccountBankAccountsId( - p: { - account: string - id: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "DELETE", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getAccountsAccountBankAccountsId( - p: { - account: string - expand?: string[] - id: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postAccountsAccountBankAccountsId( - p: { - account: string - id: string - requestBody?: { - account_holder_name?: string - account_holder_type?: "" | "company" | "individual" - account_type?: "checking" | "futsu" | "savings" | "toza" - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - default_for_currency?: boolean - documents?: { - bank_account_ownership_verification?: { - files?: string[] - } - } - exp_month?: string - exp_year?: string - expand?: string[] - metadata?: + | ("company" | "government_entity" | "individual" | "non_profit") + | undefined + capabilities?: | { - [key: string]: string | undefined - } - | "" - name?: string - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - + acss_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + affirm_payments?: + | { + requested?: boolean | undefined + } + | undefined + afterpay_clearpay_payments?: + | { + requested?: boolean | undefined + } + | undefined + alma_payments?: + | { + requested?: boolean | undefined + } + | undefined + amazon_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + au_becs_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + bacs_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + bancontact_payments?: + | { + requested?: boolean | undefined + } + | undefined + bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + blik_payments?: + | { + requested?: boolean | undefined + } + | undefined + boleto_payments?: + | { + requested?: boolean | undefined + } + | undefined + card_issuing?: + | { + requested?: boolean | undefined + } + | undefined + card_payments?: + | { + requested?: boolean | undefined + } + | undefined + cartes_bancaires_payments?: + | { + requested?: boolean | undefined + } + | undefined + cashapp_payments?: + | { + requested?: boolean | undefined + } + | undefined + eps_payments?: + | { + requested?: boolean | undefined + } + | undefined + fpx_payments?: + | { + requested?: boolean | undefined + } + | undefined + gb_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + giropay_payments?: + | { + requested?: boolean | undefined + } + | undefined + grabpay_payments?: + | { + requested?: boolean | undefined + } + | undefined + ideal_payments?: + | { + requested?: boolean | undefined + } + | undefined + india_international_payments?: + | { + requested?: boolean | undefined + } + | undefined + jcb_payments?: + | { + requested?: boolean | undefined + } + | undefined + jp_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + kakao_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + klarna_payments?: + | { + requested?: boolean | undefined + } + | undefined + konbini_payments?: + | { + requested?: boolean | undefined + } + | undefined + kr_card_payments?: + | { + requested?: boolean | undefined + } + | undefined + legacy_payments?: + | { + requested?: boolean | undefined + } + | undefined + link_payments?: + | { + requested?: boolean | undefined + } + | undefined + mobilepay_payments?: + | { + requested?: boolean | undefined + } + | undefined + multibanco_payments?: + | { + requested?: boolean | undefined + } + | undefined + mx_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + naver_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + oxxo_payments?: + | { + requested?: boolean | undefined + } + | undefined + p24_payments?: + | { + requested?: boolean | undefined + } + | undefined + payco_payments?: + | { + requested?: boolean | undefined + } + | undefined + paynow_payments?: + | { + requested?: boolean | undefined + } + | undefined + promptpay_payments?: + | { + requested?: boolean | undefined + } + | undefined + revolut_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + samsung_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + sepa_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + sepa_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + sofort_payments?: + | { + requested?: boolean | undefined + } + | undefined + swish_payments?: + | { + requested?: boolean | undefined + } + | undefined + tax_reporting_us_1099_k?: + | { + requested?: boolean | undefined + } + | undefined + tax_reporting_us_1099_misc?: + | { + requested?: boolean | undefined + } + | undefined + transfers?: + | { + requested?: boolean | undefined + } + | undefined + treasury?: + | { + requested?: boolean | undefined + } + | undefined + twint_payments?: + | { + requested?: boolean | undefined + } + | undefined + us_bank_account_ach_payments?: + | { + requested?: boolean | undefined + } + | undefined + us_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + zip_payments?: + | { + requested?: boolean | undefined + } + | undefined + } + | undefined + company?: + | { + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + directors_provided?: boolean | undefined + executives_provided?: boolean | undefined + export_license_id?: string | undefined + export_purpose_code?: string | undefined + name?: string | undefined + name_kana?: string | undefined + name_kanji?: string | undefined + owners_provided?: boolean | undefined + ownership_declaration?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: string | undefined + } + | undefined + phone?: string | undefined + registration_number?: string | undefined + structure?: + | ( + | "" + | "free_zone_establishment" + | "free_zone_llc" + | "government_instrumentality" + | "governmental_unit" + | "incorporated_non_profit" + | "incorporated_partnership" + | "limited_liability_partnership" + | "llc" + | "multi_member_llc" + | "private_company" + | "private_corporation" + | "private_partnership" + | "public_company" + | "public_corporation" + | "public_partnership" + | "registered_charity" + | "single_member_llc" + | "sole_establishment" + | "sole_proprietorship" + | "tax_exempt_government_instrumentality" + | "unincorporated_association" + | "unincorporated_non_profit" + | "unincorporated_partnership" + ) + | undefined + tax_id?: string | undefined + tax_id_registrar?: string | undefined + vat_id?: string | undefined + verification?: + | { + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + controller?: + | { + fees?: + | { + payer?: ("account" | "application") | undefined + } + | undefined + losses?: + | { + payments?: ("application" | "stripe") | undefined + } + | undefined + requirement_collection?: ("application" | "stripe") | undefined + stripe_dashboard?: + | { + type?: ("express" | "full" | "none") | undefined + } + | undefined + } + | undefined + country?: string | undefined + default_currency?: string | undefined + documents?: + | { + bank_account_ownership_verification?: + | { + files?: string[] | undefined + } + | undefined + company_license?: + | { + files?: string[] | undefined + } + | undefined + company_memorandum_of_association?: + | { + files?: string[] | undefined + } + | undefined + company_ministerial_decree?: + | { + files?: string[] | undefined + } + | undefined + company_registration_verification?: + | { + files?: string[] | undefined + } + | undefined + company_tax_id_verification?: + | { + files?: string[] | undefined + } + | undefined + proof_of_registration?: + | { + files?: string[] | undefined + } + | undefined + } + | undefined + email?: string | undefined + expand?: string[] | undefined + external_account?: string | undefined + groups?: + | { + payments_pricing?: (string | "") | undefined + } + | undefined + individual?: + | { + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + email?: string | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + phone?: string | undefined + political_exposure?: ("existing" | "none") | undefined + registered_address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + director?: boolean | undefined + executive?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + settings?: + | { + bacs_debit_payments?: + | { + display_name?: string | undefined + } + | undefined + branding?: + | { + icon?: string | undefined + logo?: string | undefined + primary_color?: string | undefined + secondary_color?: string | undefined + } + | undefined + card_issuing?: + | { + tos_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + card_payments?: + | { + decline_on?: + | { + avs_failure?: boolean | undefined + cvc_failure?: boolean | undefined + } + | undefined + statement_descriptor_prefix?: string | undefined + statement_descriptor_prefix_kana?: (string | "") | undefined + statement_descriptor_prefix_kanji?: + | (string | "") + | undefined + } + | undefined + payments?: + | { + statement_descriptor?: string | undefined + statement_descriptor_kana?: string | undefined + statement_descriptor_kanji?: string | undefined + } + | undefined + payouts?: + | { + debit_negative_balances?: boolean | undefined + schedule?: + | { + delay_days?: ("minimum" | number) | undefined + interval?: + | ("daily" | "manual" | "monthly" | "weekly") + | undefined + monthly_anchor?: number | undefined + weekly_anchor?: + | ( + | "friday" + | "monday" + | "saturday" + | "sunday" + | "thursday" + | "tuesday" + | "wednesday" + ) + | undefined + } + | undefined + statement_descriptor?: string | undefined + } + | undefined + treasury?: + | { + tos_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + } + | undefined + tos_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + service_agreement?: string | undefined + user_agent?: string | undefined + } + | undefined + type?: ("custom" | "express" | "standard") | undefined + } + } = {}, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async deleteAccountsAccount( + p: { + account: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts/${p["account"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "DELETE", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getAccountsAccount( + p: { + account: string + expand?: string[] + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts/${p["account"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postAccountsAccount( + p: { + account: string + requestBody?: { + account_token?: string | undefined + business_profile?: + | { + annual_revenue?: + | { + amount: number + currency: string + fiscal_year_end: string + } + | undefined + estimated_worker_count?: number | undefined + mcc?: string | undefined + monthly_estimated_revenue?: + | { + amount: number + currency: string + } + | undefined + name?: string | undefined + product_description?: string | undefined + support_address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + support_email?: string | undefined + support_phone?: string | undefined + support_url?: (string | "") | undefined + url?: string | undefined + } + | undefined + business_type?: + | ("company" | "government_entity" | "individual" | "non_profit") + | undefined + capabilities?: + | { + acss_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + affirm_payments?: + | { + requested?: boolean | undefined + } + | undefined + afterpay_clearpay_payments?: + | { + requested?: boolean | undefined + } + | undefined + alma_payments?: + | { + requested?: boolean | undefined + } + | undefined + amazon_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + au_becs_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + bacs_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + bancontact_payments?: + | { + requested?: boolean | undefined + } + | undefined + bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + blik_payments?: + | { + requested?: boolean | undefined + } + | undefined + boleto_payments?: + | { + requested?: boolean | undefined + } + | undefined + card_issuing?: + | { + requested?: boolean | undefined + } + | undefined + card_payments?: + | { + requested?: boolean | undefined + } + | undefined + cartes_bancaires_payments?: + | { + requested?: boolean | undefined + } + | undefined + cashapp_payments?: + | { + requested?: boolean | undefined + } + | undefined + eps_payments?: + | { + requested?: boolean | undefined + } + | undefined + fpx_payments?: + | { + requested?: boolean | undefined + } + | undefined + gb_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + giropay_payments?: + | { + requested?: boolean | undefined + } + | undefined + grabpay_payments?: + | { + requested?: boolean | undefined + } + | undefined + ideal_payments?: + | { + requested?: boolean | undefined + } + | undefined + india_international_payments?: + | { + requested?: boolean | undefined + } + | undefined + jcb_payments?: + | { + requested?: boolean | undefined + } + | undefined + jp_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + kakao_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + klarna_payments?: + | { + requested?: boolean | undefined + } + | undefined + konbini_payments?: + | { + requested?: boolean | undefined + } + | undefined + kr_card_payments?: + | { + requested?: boolean | undefined + } + | undefined + legacy_payments?: + | { + requested?: boolean | undefined + } + | undefined + link_payments?: + | { + requested?: boolean | undefined + } + | undefined + mobilepay_payments?: + | { + requested?: boolean | undefined + } + | undefined + multibanco_payments?: + | { + requested?: boolean | undefined + } + | undefined + mx_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + naver_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + oxxo_payments?: + | { + requested?: boolean | undefined + } + | undefined + p24_payments?: + | { + requested?: boolean | undefined + } + | undefined + payco_payments?: + | { + requested?: boolean | undefined + } + | undefined + paynow_payments?: + | { + requested?: boolean | undefined + } + | undefined + promptpay_payments?: + | { + requested?: boolean | undefined + } + | undefined + revolut_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + samsung_pay_payments?: + | { + requested?: boolean | undefined + } + | undefined + sepa_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + sepa_debit_payments?: + | { + requested?: boolean | undefined + } + | undefined + sofort_payments?: + | { + requested?: boolean | undefined + } + | undefined + swish_payments?: + | { + requested?: boolean | undefined + } + | undefined + tax_reporting_us_1099_k?: + | { + requested?: boolean | undefined + } + | undefined + tax_reporting_us_1099_misc?: + | { + requested?: boolean | undefined + } + | undefined + transfers?: + | { + requested?: boolean | undefined + } + | undefined + treasury?: + | { + requested?: boolean | undefined + } + | undefined + twint_payments?: + | { + requested?: boolean | undefined + } + | undefined + us_bank_account_ach_payments?: + | { + requested?: boolean | undefined + } + | undefined + us_bank_transfer_payments?: + | { + requested?: boolean | undefined + } + | undefined + zip_payments?: + | { + requested?: boolean | undefined + } + | undefined + } + | undefined + company?: + | { + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + directors_provided?: boolean | undefined + executives_provided?: boolean | undefined + export_license_id?: string | undefined + export_purpose_code?: string | undefined + name?: string | undefined + name_kana?: string | undefined + name_kanji?: string | undefined + owners_provided?: boolean | undefined + ownership_declaration?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: string | undefined + } + | undefined + phone?: string | undefined + registration_number?: string | undefined + structure?: + | ( + | "" + | "free_zone_establishment" + | "free_zone_llc" + | "government_instrumentality" + | "governmental_unit" + | "incorporated_non_profit" + | "incorporated_partnership" + | "limited_liability_partnership" + | "llc" + | "multi_member_llc" + | "private_company" + | "private_corporation" + | "private_partnership" + | "public_company" + | "public_corporation" + | "public_partnership" + | "registered_charity" + | "single_member_llc" + | "sole_establishment" + | "sole_proprietorship" + | "tax_exempt_government_instrumentality" + | "unincorporated_association" + | "unincorporated_non_profit" + | "unincorporated_partnership" + ) + | undefined + tax_id?: string | undefined + tax_id_registrar?: string | undefined + vat_id?: string | undefined + verification?: + | { + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + default_currency?: string | undefined + documents?: + | { + bank_account_ownership_verification?: + | { + files?: string[] | undefined + } + | undefined + company_license?: + | { + files?: string[] | undefined + } + | undefined + company_memorandum_of_association?: + | { + files?: string[] | undefined + } + | undefined + company_ministerial_decree?: + | { + files?: string[] | undefined + } + | undefined + company_registration_verification?: + | { + files?: string[] | undefined + } + | undefined + company_tax_id_verification?: + | { + files?: string[] | undefined + } + | undefined + proof_of_registration?: + | { + files?: string[] | undefined + } + | undefined + } + | undefined + email?: string | undefined + expand?: string[] | undefined + external_account?: string | undefined + groups?: + | { + payments_pricing?: (string | "") | undefined + } + | undefined + individual?: + | { + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + email?: string | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + phone?: string | undefined + political_exposure?: ("existing" | "none") | undefined + registered_address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + director?: boolean | undefined + executive?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + settings?: + | { + bacs_debit_payments?: + | { + display_name?: string | undefined + } + | undefined + branding?: + | { + icon?: string | undefined + logo?: string | undefined + primary_color?: string | undefined + secondary_color?: string | undefined + } + | undefined + card_issuing?: + | { + tos_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + card_payments?: + | { + decline_on?: + | { + avs_failure?: boolean | undefined + cvc_failure?: boolean | undefined + } + | undefined + statement_descriptor_prefix?: string | undefined + statement_descriptor_prefix_kana?: (string | "") | undefined + statement_descriptor_prefix_kanji?: + | (string | "") + | undefined + } + | undefined + invoices?: + | { + default_account_tax_ids?: (string[] | "") | undefined + } + | undefined + payments?: + | { + statement_descriptor?: string | undefined + statement_descriptor_kana?: string | undefined + statement_descriptor_kanji?: string | undefined + } + | undefined + payouts?: + | { + debit_negative_balances?: boolean | undefined + schedule?: + | { + delay_days?: ("minimum" | number) | undefined + interval?: + | ("daily" | "manual" | "monthly" | "weekly") + | undefined + monthly_anchor?: number | undefined + weekly_anchor?: + | ( + | "friday" + | "monday" + | "saturday" + | "sunday" + | "thursday" + | "tuesday" + | "wednesday" + ) + | undefined + } + | undefined + statement_descriptor?: string | undefined + } + | undefined + treasury?: + | { + tos_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + } + | undefined + tos_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + service_agreement?: string | undefined + user_agent?: string | undefined + } + | undefined + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts/${p["account"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postAccountsAccountBankAccounts( + p: { + account: string + requestBody?: { + bank_account?: + | ( + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + account_type?: + | ("checking" | "futsu" | "savings" | "toza") + | undefined + country: string + currency?: string | undefined + documents?: + | { + bank_account_ownership_verification?: + | { + files?: string[] | undefined + } + | undefined + } + | undefined + object?: "bank_account" | undefined + routing_number?: string | undefined + } + | string + ) + | undefined + default_for_currency?: boolean | undefined + expand?: string[] | undefined + external_account?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts/${p["account"]}/bank_accounts` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async deleteAccountsAccountBankAccountsId( + p: { + account: string + id: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "DELETE", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getAccountsAccountBankAccountsId( + p: { + account: string + expand?: string[] + id: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postAccountsAccountBankAccountsId( + p: { + account: string + id: string + requestBody?: { + account_holder_name?: string | undefined + account_holder_type?: ("" | "company" | "individual") | undefined + account_type?: ("checking" | "futsu" | "savings" | "toza") | undefined + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + default_for_currency?: boolean | undefined + documents?: + | { + bank_account_ownership_verification?: + | { + files?: string[] | undefined + } + | undefined + } + | undefined + exp_month?: string | undefined + exp_year?: string | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/accounts/${p["account"]}/bank_accounts/${p["id"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + return this._request({ url: url, method: "POST", @@ -1704,8 +2201,8 @@ export class StripeApi extends AbstractAxiosClient { account: string capability: string requestBody?: { - expand?: string[] - requested?: boolean + expand?: string[] | undefined + requested?: boolean | undefined } }, timeout?: number, @@ -1777,28 +2274,39 @@ export class StripeApi extends AbstractAxiosClient { account: string requestBody?: { bank_account?: - | { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - account_type?: "checking" | "futsu" | "savings" | "toza" - country: string - currency?: string - documents?: { - bank_account_ownership_verification?: { - files?: string[] + | ( + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + account_type?: + | ("checking" | "futsu" | "savings" | "toza") + | undefined + country: string + currency?: string | undefined + documents?: + | { + bank_account_ownership_verification?: + | { + files?: string[] | undefined + } + | undefined + } + | undefined + object?: "bank_account" | undefined + routing_number?: string | undefined } - } - object?: "bank_account" - routing_number?: string - } - | string - default_for_currency?: boolean - expand?: string[] - external_account?: string - metadata?: { - [key: string]: string | undefined - } + | string + ) + | undefined + default_for_currency?: boolean | undefined + expand?: string[] | undefined + external_account?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined } }, timeout?: number, @@ -1880,30 +2388,37 @@ export class StripeApi extends AbstractAxiosClient { account: string id: string requestBody?: { - account_holder_name?: string - account_holder_type?: "" | "company" | "individual" - account_type?: "checking" | "futsu" | "savings" | "toza" - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - default_for_currency?: boolean - documents?: { - bank_account_ownership_verification?: { - files?: string[] - } - } - exp_month?: string - exp_year?: string - expand?: string[] - metadata?: + account_holder_name?: string | undefined + account_holder_type?: ("" | "company" | "individual") | undefined + account_type?: ("checking" | "futsu" | "savings" | "toza") | undefined + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + default_for_currency?: boolean | undefined + documents?: | { - [key: string]: string | undefined + bank_account_ownership_verification?: + | { + files?: string[] | undefined + } + | undefined } - | "" - name?: string + | undefined + exp_month?: string | undefined + exp_year?: string | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined } }, timeout?: number, @@ -1930,7 +2445,7 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -1960,12 +2475,12 @@ export class StripeApi extends AbstractAxiosClient { expand?: string[] limit?: number relationship?: { - authorizer?: boolean - director?: boolean - executive?: boolean - legal_guardian?: boolean - owner?: boolean - representative?: boolean + authorizer?: boolean | undefined + director?: boolean | undefined + executive?: boolean | undefined + legal_guardian?: boolean | undefined + owner?: boolean | undefined + representative?: boolean | undefined } startingAfter?: string requestBody?: EmptyObject @@ -2008,108 +2523,142 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody?: { - additional_tos_acceptances?: { - account?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } + additional_tos_acceptances?: + | { + account?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + documents?: | { - day: number - month: number - year: number + company_authorization?: + | { + files?: (string | "")[] | undefined + } + | undefined + passport?: + | { + files?: (string | "")[] | undefined + } + | undefined + visa?: + | { + files?: (string | "")[] | undefined + } + | undefined } - | "" - documents?: { - company_authorization?: { - files?: (string | "")[] - } - passport?: { - files?: (string | "")[] - } - visa?: { - files?: (string | "")[] - } - } - email?: string - expand?: string[] - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string + | undefined + email?: string | undefined + expand?: string[] | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + nationality?: string | undefined + person_token?: string | undefined + phone?: string | undefined + political_exposure?: string | undefined + registered_address?: | { - [key: string]: string | undefined + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + authorizer?: boolean | undefined + director?: boolean | undefined + executive?: boolean | undefined + legal_guardian?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + representative?: boolean | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined } - | "" - nationality?: string - person_token?: string - phone?: string - political_exposure?: string - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - authorizer?: boolean - director?: boolean - executive?: boolean - legal_guardian?: boolean - owner?: boolean - percent_ownership?: number | "" - representative?: boolean - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } + | undefined } }, timeout?: number, @@ -2191,108 +2740,142 @@ export class StripeApi extends AbstractAxiosClient { account: string person: string requestBody?: { - additional_tos_acceptances?: { - account?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } + additional_tos_acceptances?: + | { + account?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + documents?: | { - day: number - month: number - year: number + company_authorization?: + | { + files?: (string | "")[] | undefined + } + | undefined + passport?: + | { + files?: (string | "")[] | undefined + } + | undefined + visa?: + | { + files?: (string | "")[] | undefined + } + | undefined } - | "" - documents?: { - company_authorization?: { - files?: (string | "")[] - } - passport?: { - files?: (string | "")[] - } - visa?: { - files?: (string | "")[] - } - } - email?: string - expand?: string[] - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string + | undefined + email?: string | undefined + expand?: string[] | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + nationality?: string | undefined + person_token?: string | undefined + phone?: string | undefined + political_exposure?: string | undefined + registered_address?: | { - [key: string]: string | undefined + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + authorizer?: boolean | undefined + director?: boolean | undefined + executive?: boolean | undefined + legal_guardian?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + representative?: boolean | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined } - | "" - nationality?: string - person_token?: string - phone?: string - political_exposure?: string - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - authorizer?: boolean - director?: boolean - executive?: boolean - legal_guardian?: boolean - owner?: boolean - percent_ownership?: number | "" - representative?: boolean - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } + | undefined } }, timeout?: number, @@ -2322,12 +2905,12 @@ export class StripeApi extends AbstractAxiosClient { expand?: string[] limit?: number relationship?: { - authorizer?: boolean - director?: boolean - executive?: boolean - legal_guardian?: boolean - owner?: boolean - representative?: boolean + authorizer?: boolean | undefined + director?: boolean | undefined + executive?: boolean | undefined + legal_guardian?: boolean | undefined + owner?: boolean | undefined + representative?: boolean | undefined } startingAfter?: string requestBody?: EmptyObject @@ -2370,108 +2953,142 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody?: { - additional_tos_acceptances?: { - account?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } + additional_tos_acceptances?: + | { + account?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + documents?: | { - day: number - month: number - year: number + company_authorization?: + | { + files?: (string | "")[] | undefined + } + | undefined + passport?: + | { + files?: (string | "")[] | undefined + } + | undefined + visa?: + | { + files?: (string | "")[] | undefined + } + | undefined } - | "" - documents?: { - company_authorization?: { - files?: (string | "")[] - } - passport?: { - files?: (string | "")[] - } - visa?: { - files?: (string | "")[] - } - } - email?: string - expand?: string[] - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string + | undefined + email?: string | undefined + expand?: string[] | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + nationality?: string | undefined + person_token?: string | undefined + phone?: string | undefined + political_exposure?: string | undefined + registered_address?: | { - [key: string]: string | undefined + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + authorizer?: boolean | undefined + director?: boolean | undefined + executive?: boolean | undefined + legal_guardian?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + representative?: boolean | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined } - | "" - nationality?: string - person_token?: string - phone?: string - political_exposure?: string - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - authorizer?: boolean - director?: boolean - executive?: boolean - legal_guardian?: boolean - owner?: boolean - percent_ownership?: number | "" - representative?: boolean - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } + | undefined } }, timeout?: number, @@ -2553,108 +3170,142 @@ export class StripeApi extends AbstractAxiosClient { account: string person: string requestBody?: { - additional_tos_acceptances?: { - account?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } + additional_tos_acceptances?: + | { + account?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + documents?: | { - day: number - month: number - year: number + company_authorization?: + | { + files?: (string | "")[] | undefined + } + | undefined + passport?: + | { + files?: (string | "")[] | undefined + } + | undefined + visa?: + | { + files?: (string | "")[] | undefined + } + | undefined } - | "" - documents?: { - company_authorization?: { - files?: (string | "")[] - } - passport?: { - files?: (string | "")[] - } - visa?: { - files?: (string | "")[] - } - } - email?: string - expand?: string[] - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string + | undefined + email?: string | undefined + expand?: string[] | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + nationality?: string | undefined + person_token?: string | undefined + phone?: string | undefined + political_exposure?: string | undefined + registered_address?: | { - [key: string]: string | undefined + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + authorizer?: boolean | undefined + director?: boolean | undefined + executive?: boolean | undefined + legal_guardian?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + representative?: boolean | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined } - | "" - nationality?: string - person_token?: string - phone?: string - political_exposure?: string - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - authorizer?: boolean - director?: boolean - executive?: boolean - legal_guardian?: boolean - owner?: boolean - percent_ownership?: number | "" - representative?: boolean - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } + | undefined } }, timeout?: number, @@ -2681,7 +3332,7 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody: { - expand?: string[] + expand?: string[] | undefined reason: string } }, @@ -2752,7 +3403,7 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { domain_name: string - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -2832,10 +3483,10 @@ export class StripeApi extends AbstractAxiosClient { charge?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -2912,12 +3563,15 @@ export class StripeApi extends AbstractAxiosClient { fee: string id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -2971,9 +3625,9 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - amount?: number - directive?: string - expand?: string[] + amount?: number | undefined + directive?: string | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -3042,11 +3696,13 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - amount?: number - expand?: string[] - metadata?: { - [key: string]: string | undefined - } + amount?: number | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined } }, timeout?: number, @@ -3076,7 +3732,7 @@ export class StripeApi extends AbstractAxiosClient { limit?: number scope: { type: "account" | "user" - user?: string + user?: string | undefined } startingAfter?: string requestBody?: EmptyObject @@ -3118,13 +3774,13 @@ export class StripeApi extends AbstractAxiosClient { async postAppsSecrets( p: { requestBody: { - expand?: string[] - expires_at?: number + expand?: string[] | undefined + expires_at?: number | undefined name: string payload: string scope: { type: "account" | "user" - user?: string + user?: string | undefined } } }, @@ -3151,11 +3807,11 @@ export class StripeApi extends AbstractAxiosClient { async postAppsSecretsDelete( p: { requestBody: { - expand?: string[] + expand?: string[] | undefined name: string scope: { type: "account" | "user" - user?: string + user?: string | undefined } } }, @@ -3185,7 +3841,7 @@ export class StripeApi extends AbstractAxiosClient { name: string scope: { type: "account" | "user" - user?: string + user?: string | undefined } requestBody?: EmptyObject }, @@ -3244,10 +3900,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number currency?: string @@ -3329,10 +3985,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number currency?: string @@ -3459,17 +4115,21 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { alert_type: "usage_threshold" - expand?: string[] + expand?: string[] | undefined title: string - usage_threshold?: { - filters?: { - customer?: string - type: "customer" - }[] - gte: number - meter?: string - recurrence: "one_time" - } + usage_threshold?: + | { + filters?: + | { + customer?: string | undefined + type: "customer" + }[] + | undefined + gte: number + meter?: string | undefined + recurrence: "one_time" + } + | undefined } }, timeout?: number, @@ -3523,7 +4183,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -3550,7 +4210,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -3577,7 +4237,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -3605,10 +4265,12 @@ export class StripeApi extends AbstractAxiosClient { customer: string expand?: string[] filter: { - applicability_scope?: { - price_type: "metered" - } - credit_grant?: string + applicability_scope?: + | { + price_type: "metered" + } + | undefined + credit_grant?: string | undefined type: "applicability_scope" | "credit_grant" } requestBody?: EmptyObject @@ -3757,10 +4419,12 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { amount: { - monetary?: { - currency: string - value: number - } + monetary?: + | { + currency: string + value: number + } + | undefined type: "monetary" } applicability_config: { @@ -3770,13 +4434,15 @@ export class StripeApi extends AbstractAxiosClient { } category: "paid" | "promotional" customer: string - effective_at?: number - expand?: string[] - expires_at?: number - metadata?: { - [key: string]: string | undefined - } - name?: string + effective_at?: number | undefined + expand?: string[] | undefined + expires_at?: number | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined } }, timeout?: number, @@ -3830,11 +4496,13 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] - expires_at?: number | "" - metadata?: { - [key: string]: string | undefined - } + expand?: string[] | undefined + expires_at?: (number | "") | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined } }, timeout?: number, @@ -3861,7 +4529,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -3888,7 +4556,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -3914,11 +4582,13 @@ export class StripeApi extends AbstractAxiosClient { async postBillingMeterEventAdjustments( p: { requestBody: { - cancel?: { - identifier?: string - } + cancel?: + | { + identifier?: string | undefined + } + | undefined event_name: string - expand?: string[] + expand?: string[] | undefined type: "cancel" } }, @@ -3946,12 +4616,12 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { event_name: string - expand?: string[] - identifier?: string + expand?: string[] | undefined + identifier?: string | undefined payload: { [key: string]: string | undefined } - timestamp?: number + timestamp?: number | undefined } }, timeout?: number, @@ -4020,20 +4690,24 @@ export class StripeApi extends AbstractAxiosClient { async postBillingMeters( p: { requestBody: { - customer_mapping?: { - event_payload_key: string - type: "by_id" - } + customer_mapping?: + | { + event_payload_key: string + type: "by_id" + } + | undefined default_aggregation: { formula: "count" | "sum" } display_name: string event_name: string - event_time_window?: "day" | "hour" - expand?: string[] - value_settings?: { - event_payload_key: string - } + event_time_window?: ("day" | "hour") | undefined + expand?: string[] | undefined + value_settings?: + | { + event_payload_key: string + } + | undefined } }, timeout?: number, @@ -4087,8 +4761,8 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - display_name?: string - expand?: string[] + display_name?: string | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -4115,7 +4789,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -4192,7 +4866,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -4263,78 +4937,112 @@ export class StripeApi extends AbstractAxiosClient { async postBillingPortalConfigurations( p: { requestBody: { - business_profile?: { - headline?: string | "" - privacy_policy_url?: string - terms_of_service_url?: string - } - default_return_url?: string | "" - expand?: string[] + business_profile?: + | { + headline?: (string | "") | undefined + privacy_policy_url?: string | undefined + terms_of_service_url?: string | undefined + } + | undefined + default_return_url?: (string | "") | undefined + expand?: string[] | undefined features: { - customer_update?: { - allowed_updates?: - | ( - | "address" - | "email" - | "name" - | "phone" - | "shipping" - | "tax_id" - )[] - | "" - enabled: boolean - } - invoice_history?: { - enabled: boolean - } - payment_method_update?: { - enabled: boolean - } - subscription_cancel?: { - cancellation_reason?: { + customer_update?: + | { + allowed_updates?: + | ( + | ( + | "address" + | "email" + | "name" + | "phone" + | "shipping" + | "tax_id" + )[] + | "" + ) + | undefined + enabled: boolean + } + | undefined + invoice_history?: + | { + enabled: boolean + } + | undefined + payment_method_update?: + | { + enabled: boolean + } + | undefined + subscription_cancel?: + | { + cancellation_reason?: + | { + enabled: boolean + options: + | ( + | "customer_service" + | "low_quality" + | "missing_features" + | "other" + | "switched_service" + | "too_complex" + | "too_expensive" + | "unused" + )[] + | "" + } + | undefined + enabled: boolean + mode?: ("at_period_end" | "immediately") | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + } + | undefined + subscription_update?: + | { + default_allowed_updates?: + | (("price" | "promotion_code" | "quantity")[] | "") + | undefined + enabled: boolean + products?: + | ( + | { + prices: string[] + product: string + }[] + | "" + ) + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + schedule_at_period_end?: + | { + conditions?: + | { + type: + | "decreasing_item_amount" + | "shortening_interval" + }[] + | undefined + } + | undefined + } + | undefined + } + login_page?: + | { enabled: boolean - options: - | ( - | "customer_service" - | "low_quality" - | "missing_features" - | "other" - | "switched_service" - | "too_complex" - | "too_expensive" - | "unused" - )[] - | "" } - enabled: boolean - mode?: "at_period_end" | "immediately" - proration_behavior?: "always_invoice" | "create_prorations" | "none" - } - subscription_update?: { - default_allowed_updates?: - | ("price" | "promotion_code" | "quantity")[] - | "" - enabled: boolean - products?: - | { - prices: string[] - product: string - }[] - | "" - proration_behavior?: "always_invoice" | "create_prorations" | "none" - schedule_at_period_end?: { - conditions?: { - type: "decreasing_item_amount" | "shortening_interval" - }[] + | undefined + metadata?: + | { + [key: string]: string | undefined } - } - } - login_page?: { - enabled: boolean - } - metadata?: { - [key: string]: string | undefined - } + | undefined } }, timeout?: number, @@ -4388,83 +5096,124 @@ export class StripeApi extends AbstractAxiosClient { p: { configuration: string requestBody?: { - active?: boolean - business_profile?: { - headline?: string | "" - privacy_policy_url?: string | "" - terms_of_service_url?: string | "" - } - default_return_url?: string | "" - expand?: string[] - features?: { - customer_update?: { - allowed_updates?: - | ( - | "address" - | "email" - | "name" - | "phone" - | "shipping" - | "tax_id" - )[] - | "" - enabled?: boolean - } - invoice_history?: { - enabled: boolean - } - payment_method_update?: { - enabled: boolean - } - subscription_cancel?: { - cancellation_reason?: { - enabled: boolean - options?: - | ( - | "customer_service" - | "low_quality" - | "missing_features" - | "other" - | "switched_service" - | "too_complex" - | "too_expensive" - | "unused" - )[] - | "" - } - enabled?: boolean - mode?: "at_period_end" | "immediately" - proration_behavior?: "always_invoice" | "create_prorations" | "none" - } - subscription_update?: { - default_allowed_updates?: - | ("price" | "promotion_code" | "quantity")[] - | "" - enabled?: boolean - products?: - | { - prices: string[] - product: string - }[] - | "" - proration_behavior?: "always_invoice" | "create_prorations" | "none" - schedule_at_period_end?: { - conditions?: + active?: boolean | undefined + business_profile?: + | { + headline?: (string | "") | undefined + privacy_policy_url?: (string | "") | undefined + terms_of_service_url?: (string | "") | undefined + } + | undefined + default_return_url?: (string | "") | undefined + expand?: string[] | undefined + features?: + | { + customer_update?: | { - type: "decreasing_item_amount" | "shortening_interval" - }[] - | "" + allowed_updates?: + | ( + | ( + | "address" + | "email" + | "name" + | "phone" + | "shipping" + | "tax_id" + )[] + | "" + ) + | undefined + enabled?: boolean | undefined + } + | undefined + invoice_history?: + | { + enabled: boolean + } + | undefined + payment_method_update?: + | { + enabled: boolean + } + | undefined + subscription_cancel?: + | { + cancellation_reason?: + | { + enabled: boolean + options?: + | ( + | ( + | "customer_service" + | "low_quality" + | "missing_features" + | "other" + | "switched_service" + | "too_complex" + | "too_expensive" + | "unused" + )[] + | "" + ) + | undefined + } + | undefined + enabled?: boolean | undefined + mode?: ("at_period_end" | "immediately") | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + } + | undefined + subscription_update?: + | { + default_allowed_updates?: + | (("price" | "promotion_code" | "quantity")[] | "") + | undefined + enabled?: boolean | undefined + products?: + | ( + | { + prices: string[] + product: string + }[] + | "" + ) + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + schedule_at_period_end?: + | { + conditions?: + | ( + | { + type: + | "decreasing_item_amount" + | "shortening_interval" + }[] + | "" + ) + | undefined + } + | undefined + } + | undefined } - } - } - login_page?: { - enabled: boolean - } - metadata?: + | undefined + login_page?: | { - [key: string]: string | undefined + enabled: boolean } - | "" + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -4490,99 +5239,120 @@ export class StripeApi extends AbstractAxiosClient { async postBillingPortalSessions( p: { requestBody: { - configuration?: string + configuration?: string | undefined customer: string - expand?: string[] - flow_data?: { - after_completion?: { - hosted_confirmation?: { - custom_message?: string - } - redirect?: { - return_url: string - } - type: "hosted_confirmation" | "portal_homepage" | "redirect" - } - subscription_cancel?: { - retention?: { - coupon_offer: { - coupon: string - } - type: "coupon_offer" + expand?: string[] | undefined + flow_data?: + | { + after_completion?: + | { + hosted_confirmation?: + | { + custom_message?: string | undefined + } + | undefined + redirect?: + | { + return_url: string + } + | undefined + type: "hosted_confirmation" | "portal_homepage" | "redirect" + } + | undefined + subscription_cancel?: + | { + retention?: + | { + coupon_offer: { + coupon: string + } + type: "coupon_offer" + } + | undefined + subscription: string + } + | undefined + subscription_update?: + | { + subscription: string + } + | undefined + subscription_update_confirm?: + | { + discounts?: + | { + coupon?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + items: { + id: string + price?: string | undefined + quantity?: number | undefined + }[] + subscription: string + } + | undefined + type: + | "payment_method_update" + | "subscription_cancel" + | "subscription_update" + | "subscription_update_confirm" } - subscription: string - } - subscription_update?: { - subscription: string - } - subscription_update_confirm?: { - discounts?: { - coupon?: string - promotion_code?: string - }[] - items: { - id: string - price?: string - quantity?: number - }[] - subscription: string - } - type: - | "payment_method_update" - | "subscription_cancel" - | "subscription_update" - | "subscription_update_confirm" - } + | undefined 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" - on_behalf_of?: string - return_url?: string + | ( + | "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" + ) + | undefined + on_behalf_of?: string | undefined + return_url?: string | undefined } }, timeout?: number, @@ -4609,10 +5379,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -4664,71 +5434,88 @@ export class StripeApi extends AbstractAxiosClient { async postCharges( p: { requestBody?: { - amount?: number - application_fee?: number - application_fee_amount?: number - capture?: boolean + amount?: number | undefined + application_fee?: number | undefined + application_fee_amount?: number | undefined + capture?: boolean | undefined card?: - | { - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - cvc?: string - exp_month: number - exp_year: number - metadata?: { - [key: string]: string | undefined - } - name?: string - number: string - object?: "card" - } - | string - currency?: string - customer?: string - description?: string + | ( + | { + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + cvc?: string | undefined + exp_month: number + exp_year: number + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined + number: string + object?: "card" | undefined + } + | string + ) + | undefined + currency?: string | undefined + customer?: string | undefined + description?: string | undefined destination?: + | ( + | { + account: string + amount?: number | undefined + } + | string + ) + | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + on_behalf_of?: string | undefined + radar_options?: | { - account: string - amount?: number + session?: string | undefined } - | string - expand?: string[] - metadata?: + | undefined + receipt_email?: string | undefined + shipping?: | { - [key: string]: string | undefined + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + carrier?: string | undefined + name: string + phone?: string | undefined + tracking_number?: string | undefined } - | "" - on_behalf_of?: string - radar_options?: { - session?: string - } - receipt_email?: string - shipping?: { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name: string - phone?: string - tracking_number?: string - } - source?: string - statement_descriptor?: string - statement_descriptor_suffix?: string - transfer_data?: { - amount?: number - destination: string - } - transfer_group?: string + | undefined + source?: string | undefined + statement_descriptor?: string | undefined + statement_descriptor_suffix?: string | undefined + transfer_data?: + | { + amount?: number | undefined + destination: string + } + | undefined + transfer_group?: string | undefined } } = {}, timeout?: number, @@ -4765,9 +5552,9 @@ export class StripeApi extends AbstractAxiosClient { AxiosResponse<{ data: t_charge[] has_more: boolean - next_page?: string | null + next_page?: (string | null) | undefined object: "search_result" - total_count?: number + total_count?: number | undefined url: string }> > { @@ -4825,33 +5612,40 @@ export class StripeApi extends AbstractAxiosClient { p: { charge: string requestBody?: { - customer?: string - description?: string - expand?: string[] - fraud_details?: { - user_report: "" | "fraudulent" | "safe" - } + customer?: string | undefined + description?: string | undefined + expand?: string[] | undefined + fraud_details?: + | { + user_report: "" | "fraudulent" | "safe" + } + | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + receipt_email?: string | undefined + shipping?: | { - [key: string]: string | undefined + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + carrier?: string | undefined + name: string + phone?: string | undefined + tracking_number?: string | undefined } - | "" - receipt_email?: string - shipping?: { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name: string - phone?: string - tracking_number?: string - } - transfer_group?: string + | undefined + transfer_group?: string | undefined } }, timeout?: number, @@ -4878,17 +5672,19 @@ export class StripeApi extends AbstractAxiosClient { p: { charge: string requestBody?: { - amount?: number - application_fee?: number - application_fee_amount?: number - expand?: string[] - receipt_email?: string - statement_descriptor?: string - statement_descriptor_suffix?: string - transfer_data?: { - amount?: number - } - transfer_group?: string + amount?: number | undefined + application_fee?: number | undefined + application_fee_amount?: number | undefined + expand?: string[] | undefined + receipt_email?: string | undefined + statement_descriptor?: string | undefined + statement_descriptor_suffix?: string | undefined + transfer_data?: + | { + amount?: number | undefined + } + | undefined + transfer_group?: string | undefined } }, timeout?: number, @@ -4942,82 +5738,130 @@ export class StripeApi extends AbstractAxiosClient { p: { charge: string requestBody?: { - evidence?: { - access_activity_log?: string - billing_address?: string - cancellation_policy?: string - cancellation_policy_disclosure?: string - cancellation_rebuttal?: string - customer_communication?: string - customer_email_address?: string - customer_name?: string - customer_purchase_ip?: string - customer_signature?: string - duplicate_charge_documentation?: string - duplicate_charge_explanation?: string - duplicate_charge_id?: string - enhanced_evidence?: - | { - visa_compelling_evidence_3?: { - disputed_transaction?: { - customer_account_id?: string | "" - customer_device_fingerprint?: string | "" - customer_device_id?: string | "" - customer_email_address?: string | "" - customer_purchase_ip?: string | "" - merchandise_or_services?: "merchandise" | "services" - product_description?: string | "" - shipping_address?: { - city?: string | "" - country?: string | "" - line1?: string | "" - line2?: string | "" - postal_code?: string | "" - state?: string | "" - } - } - prior_undisputed_transactions?: { - charge: string - customer_account_id?: string | "" - customer_device_fingerprint?: string | "" - customer_device_id?: string | "" - customer_email_address?: string | "" - customer_purchase_ip?: string | "" - product_description?: string | "" - shipping_address?: { - city?: string | "" - country?: string | "" - line1?: string | "" - line2?: string | "" - postal_code?: string | "" - state?: string | "" - } - }[] + evidence?: + | { + access_activity_log?: string | undefined + billing_address?: string | undefined + cancellation_policy?: string | undefined + cancellation_policy_disclosure?: string | undefined + cancellation_rebuttal?: string | undefined + customer_communication?: string | undefined + customer_email_address?: string | undefined + customer_name?: string | undefined + customer_purchase_ip?: string | undefined + customer_signature?: string | undefined + duplicate_charge_documentation?: string | undefined + duplicate_charge_explanation?: string | undefined + duplicate_charge_id?: string | undefined + enhanced_evidence?: + | ( + | { + visa_compelling_evidence_3?: + | { + disputed_transaction?: + | { + customer_account_id?: + | (string | "") + | undefined + customer_device_fingerprint?: + | (string | "") + | undefined + customer_device_id?: + | (string | "") + | undefined + customer_email_address?: + | (string | "") + | undefined + customer_purchase_ip?: + | (string | "") + | undefined + merchandise_or_services?: + | ("merchandise" | "services") + | undefined + product_description?: + | (string | "") + | undefined + shipping_address?: + | { + city?: (string | "") | undefined + country?: (string | "") | undefined + line1?: (string | "") | undefined + line2?: (string | "") | undefined + postal_code?: + | (string | "") + | undefined + state?: (string | "") | undefined + } + | undefined + } + | undefined + prior_undisputed_transactions?: + | { + charge: string + customer_account_id?: + | (string | "") + | undefined + customer_device_fingerprint?: + | (string | "") + | undefined + customer_device_id?: + | (string | "") + | undefined + customer_email_address?: + | (string | "") + | undefined + customer_purchase_ip?: + | (string | "") + | undefined + product_description?: + | (string | "") + | undefined + shipping_address?: + | { + city?: (string | "") | undefined + country?: (string | "") | undefined + line1?: (string | "") | undefined + line2?: (string | "") | undefined + postal_code?: + | (string | "") + | undefined + state?: (string | "") | undefined + } + | undefined + }[] + | undefined + } + | undefined + } + | "" + ) + | undefined + product_description?: string | undefined + receipt?: string | undefined + refund_policy?: string | undefined + refund_policy_disclosure?: string | undefined + refund_refusal_explanation?: string | undefined + service_date?: string | undefined + service_documentation?: string | undefined + shipping_address?: string | undefined + shipping_carrier?: string | undefined + shipping_date?: string | undefined + shipping_documentation?: string | undefined + shipping_tracking_number?: string | undefined + uncategorized_file?: string | undefined + uncategorized_text?: string | undefined + } + | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined } - } - | "" - product_description?: string - receipt?: string - refund_policy?: string - refund_policy_disclosure?: string - refund_refusal_explanation?: string - service_date?: string - service_documentation?: string - shipping_address?: string - shipping_carrier?: string - shipping_date?: string - shipping_documentation?: string - shipping_tracking_number?: string - uncategorized_file?: string - uncategorized_text?: string - } - expand?: string[] - metadata?: - | { - [key: string]: string | undefined - } - | "" - submit?: boolean + | "" + ) + | undefined + submit?: boolean | undefined } }, timeout?: number, @@ -5044,7 +5888,7 @@ export class StripeApi extends AbstractAxiosClient { p: { charge: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -5071,18 +5915,23 @@ export class StripeApi extends AbstractAxiosClient { p: { charge: string requestBody?: { - amount?: number - expand?: string[] - instructions_email?: string + amount?: number | undefined + expand?: string[] | undefined + instructions_email?: string | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - payment_intent?: string - reason?: "duplicate" | "fraudulent" | "requested_by_customer" - refund_application_fee?: boolean - reverse_transfer?: boolean + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + payment_intent?: string | undefined + reason?: + | ("duplicate" | "fraudulent" | "requested_by_customer") + | undefined + refund_application_fee?: boolean | undefined + reverse_transfer?: boolean | undefined } }, timeout?: number, @@ -5151,21 +6000,26 @@ export class StripeApi extends AbstractAxiosClient { p: { charge: string requestBody?: { - amount?: number - currency?: string - customer?: string - expand?: string[] - instructions_email?: string + amount?: number | undefined + currency?: string | undefined + customer?: string | undefined + expand?: string[] | undefined + instructions_email?: string | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - origin?: "customer_balance" - payment_intent?: string - reason?: "duplicate" | "fraudulent" | "requested_by_customer" - refund_application_fee?: boolean - reverse_transfer?: boolean + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + origin?: "customer_balance" | undefined + payment_intent?: string | undefined + reason?: + | ("duplicate" | "fraudulent" | "requested_by_customer") + | undefined + refund_application_fee?: boolean | undefined + reverse_transfer?: boolean | undefined } }, timeout?: number, @@ -5221,12 +6075,15 @@ export class StripeApi extends AbstractAxiosClient { charge: string refund: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -5253,10 +6110,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -5316,812 +6173,1096 @@ export class StripeApi extends AbstractAxiosClient { async postCheckoutSessions( p: { requestBody?: { - adaptive_pricing?: { - enabled?: boolean - } - after_expiration?: { - recovery?: { - allow_promotion_codes?: boolean - enabled: boolean - } - } - allow_promotion_codes?: boolean - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_address_collection?: "auto" | "required" - cancel_url?: string - client_reference_id?: string - consent_collection?: { - payment_method_reuse_agreement?: { - position: "auto" | "hidden" - } - promotions?: "auto" | "none" - terms_of_service?: "none" | "required" - } - currency?: string - custom_fields?: { - dropdown?: { - default_value?: string - options: { - label: string - value: string - }[] - } - key: string - label: { - custom: string - type: "custom" - } - numeric?: { - default_value?: string - maximum_length?: number - minimum_length?: number - } - optional?: boolean - text?: { - default_value?: string - maximum_length?: number - minimum_length?: number - } - type: "dropdown" | "numeric" | "text" - }[] - custom_text?: { - after_submit?: - | { - message: string - } - | "" - shipping_address?: - | { - message: string - } - | "" - submit?: - | { - message: string - } - | "" - terms_of_service_acceptance?: - | { - message: string + adaptive_pricing?: + | { + enabled?: boolean | undefined + } + | undefined + after_expiration?: + | { + recovery?: + | { + allow_promotion_codes?: boolean | undefined + enabled: boolean + } + | undefined + } + | undefined + allow_promotion_codes?: boolean | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_address_collection?: ("auto" | "required") | undefined + cancel_url?: string | undefined + client_reference_id?: string | undefined + consent_collection?: + | { + payment_method_reuse_agreement?: + | { + position: "auto" | "hidden" + } + | undefined + promotions?: ("auto" | "none") | undefined + terms_of_service?: ("none" | "required") | undefined + } + | undefined + currency?: string | undefined + custom_fields?: + | { + dropdown?: + | { + default_value?: string | undefined + options: { + label: string + value: string + }[] + } + | undefined + key: string + label: { + custom: string + type: "custom" } - | "" - } - customer?: string - customer_creation?: "always" | "if_required" - customer_email?: string - customer_update?: { - address?: "auto" | "never" - name?: "auto" | "never" - shipping?: "auto" | "never" - } - discounts?: { - coupon?: string - promotion_code?: string - }[] - expand?: string[] - expires_at?: number - invoice_creation?: { - enabled: boolean - invoice_data?: { - account_tax_ids?: string[] | "" - custom_fields?: - | { - name: string - value: string - }[] - | "" - description?: string - footer?: string - issuer?: { - account?: string - type: "account" | "self" + numeric?: + | { + default_value?: string | undefined + maximum_length?: number | undefined + minimum_length?: number | undefined + } + | undefined + optional?: boolean | undefined + text?: + | { + default_value?: string | undefined + maximum_length?: number | undefined + minimum_length?: number | undefined + } + | undefined + type: "dropdown" | "numeric" | "text" + }[] + | undefined + custom_text?: + | { + after_submit?: + | ( + | { + message: string + } + | "" + ) + | undefined + shipping_address?: + | ( + | { + message: string + } + | "" + ) + | undefined + submit?: + | ( + | { + message: string + } + | "" + ) + | undefined + terms_of_service_acceptance?: + | ( + | { + message: string + } + | "" + ) + | undefined + } + | undefined + customer?: string | undefined + customer_creation?: ("always" | "if_required") | undefined + customer_email?: string | undefined + customer_update?: + | { + address?: ("auto" | "never") | undefined + name?: ("auto" | "never") | undefined + shipping?: ("auto" | "never") | undefined + } + | undefined + discounts?: + | { + coupon?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + expand?: string[] | undefined + expires_at?: number | undefined + invoice_creation?: + | { + enabled: boolean + invoice_data?: + | { + account_tax_ids?: (string[] | "") | undefined + custom_fields?: + | ( + | { + name: string + value: string + }[] + | "" + ) + | undefined + description?: string | undefined + footer?: string | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + rendering_options?: + | ( + | { + amount_tax_display?: + | ("" | "exclude_tax" | "include_inclusive_tax") + | undefined + } + | "" + ) + | undefined + } + | undefined + } + | undefined + line_items?: + | { + adjustable_quantity?: + | { + enabled: boolean + maximum?: number | undefined + minimum?: number | undefined + } + | undefined + dynamic_tax_rates?: string[] | undefined + price?: string | undefined + price_data?: + | { + currency: string + product?: string | undefined + product_data?: + | { + description?: string | undefined + images?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name: string + tax_code?: string | undefined + } + | undefined + recurring?: + | { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: string[] | undefined + }[] + | undefined + locale?: + | ( + | "auto" + | "bg" + | "cs" + | "da" + | "de" + | "el" + | "en" + | "en-GB" + | "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" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mode?: ("payment" | "setup" | "subscription") | undefined + payment_intent_data?: + | { + application_fee_amount?: number | undefined + capture_method?: + | ("automatic" | "automatic_async" | "manual") + | undefined + description?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + receipt_email?: string | undefined + setup_future_usage?: ("off_session" | "on_session") | undefined + shipping?: + | { + address: { + city?: string | undefined + country?: string | undefined + line1: string + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + carrier?: string | undefined + name: string + phone?: string | undefined + tracking_number?: string | undefined + } + | undefined + statement_descriptor?: string | undefined + statement_descriptor_suffix?: string | undefined + transfer_data?: + | { + amount?: number | undefined + destination: string + } + | undefined + transfer_group?: string | undefined + } + | undefined + payment_method_collection?: ("always" | "if_required") | undefined + payment_method_configuration?: string | undefined + payment_method_data?: + | { + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + } + | undefined + payment_method_options?: + | { + acss_debit?: + | { + currency?: ("cad" | "usd") | undefined + mandate_options?: + | { + custom_mandate_url?: (string | "") | undefined + default_for?: + | ("invoice" | "subscription")[] + | undefined + interval_description?: string | undefined + payment_schedule?: + | ("combined" | "interval" | "sporadic") + | undefined + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + setup_future_usage?: + | ("none" | "off_session" | "on_session") + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | undefined + affirm?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + afterpay_clearpay?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + alipay?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + amazon_pay?: + | { + setup_future_usage?: ("none" | "off_session") | undefined + } + | undefined + au_becs_debit?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + bacs_debit?: + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("none" | "off_session" | "on_session") + | undefined + } + | undefined + bancontact?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + boleto?: + | { + expires_after_days?: number | undefined + setup_future_usage?: + | ("none" | "off_session" | "on_session") + | undefined + } + | undefined + card?: + | { + installments?: + | { + enabled?: boolean | undefined + } + | undefined + request_extended_authorization?: + | ("if_available" | "never") + | undefined + request_incremental_authorization?: + | ("if_available" | "never") + | undefined + request_multicapture?: + | ("if_available" | "never") + | undefined + request_overcapture?: ("if_available" | "never") | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + setup_future_usage?: + | ("off_session" | "on_session") + | undefined + statement_descriptor_suffix_kana?: string | undefined + statement_descriptor_suffix_kanji?: string | undefined + } + | undefined + cashapp?: + | { + setup_future_usage?: + | ("none" | "off_session" | "on_session") + | undefined + } + | undefined + customer_balance?: + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + requested_address_types?: + | ( + | "aba" + | "iban" + | "sepa" + | "sort_code" + | "spei" + | "swift" + | "zengin" + )[] + | undefined + type: + | "eu_bank_transfer" + | "gb_bank_transfer" + | "jp_bank_transfer" + | "mx_bank_transfer" + | "us_bank_transfer" + } + | undefined + funding_type?: "bank_transfer" | undefined + setup_future_usage?: "none" | undefined + } + | undefined + eps?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + fpx?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + giropay?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + grabpay?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + ideal?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + kakao_pay?: + | { + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined + } + | undefined + klarna?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + konbini?: + | { + expires_after_days?: number | undefined + setup_future_usage?: "none" | undefined + } + | undefined + kr_card?: + | { + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined + } + | undefined + link?: + | { + setup_future_usage?: ("none" | "off_session") | undefined + } + | undefined + mobilepay?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + multibanco?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + naver_pay?: + | { + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined + } + | undefined + oxxo?: + | { + expires_after_days?: number | undefined + setup_future_usage?: "none" | undefined + } + | undefined + p24?: + | { + setup_future_usage?: "none" | undefined + tos_shown_and_accepted?: boolean | undefined + } + | undefined + payco?: + | { + capture_method?: "manual" | undefined + } + | undefined + paynow?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + paypal?: + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: + | ( + | "cs-CZ" + | "da-DK" + | "de-AT" + | "de-DE" + | "de-LU" + | "el-GR" + | "en-GB" + | "en-US" + | "es-ES" + | "fi-FI" + | "fr-BE" + | "fr-FR" + | "fr-LU" + | "hu-HU" + | "it-IT" + | "nl-BE" + | "nl-NL" + | "pl-PL" + | "pt-PT" + | "sk-SK" + | "sv-SE" + ) + | undefined + reference?: string | undefined + risk_correlation_id?: string | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | undefined + pix?: + | { + expires_after_seconds?: number | undefined + } + | undefined + revolut_pay?: + | { + setup_future_usage?: ("none" | "off_session") | undefined + } + | undefined + samsung_pay?: + | { + capture_method?: "manual" | undefined + } + | undefined + sepa_debit?: + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("none" | "off_session" | "on_session") + | undefined + } + | undefined + sofort?: + | { + setup_future_usage?: "none" | undefined + } + | undefined + swish?: + | { + reference?: string | undefined + } + | undefined + us_bank_account?: + | { + financial_connections?: + | { + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ("balances" | "ownership" | "transactions")[] + | undefined + } + | undefined + setup_future_usage?: + | ("none" | "off_session" | "on_session") + | undefined + verification_method?: ("automatic" | "instant") | undefined + } + | undefined + wechat_pay?: + | { + app_id?: string | undefined + client: "android" | "ios" | "web" + setup_future_usage?: "none" | undefined + } + | undefined } - metadata?: { - [key: string]: string | undefined + | undefined + payment_method_types?: + | ( + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + )[] + | undefined + phone_number_collection?: + | { + enabled: boolean } - rendering_options?: - | { - amount_tax_display?: - | "" - | "exclude_tax" - | "include_inclusive_tax" - } - | "" - } - } - line_items?: { - adjustable_quantity?: { - enabled: boolean - maximum?: number - minimum?: number - } - dynamic_tax_rates?: string[] - price?: string - price_data?: { - currency: string - product?: string - product_data?: { - description?: string - images?: string[] - metadata?: { - [key: string]: string | undefined - } - name: string - tax_code?: string + | undefined + redirect_on_completion?: + | ("always" | "if_required" | "never") + | undefined + return_url?: string | undefined + saved_payment_method_options?: + | { + allow_redisplay_filters?: + | ("always" | "limited" | "unspecified")[] + | undefined + payment_method_save?: ("disabled" | "enabled") | undefined } - recurring?: { - interval: "day" | "month" | "week" | "year" - interval_count?: number + | undefined + setup_intent_data?: + | { + description?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] - }[] - locale?: - | "auto" - | "bg" - | "cs" - | "da" - | "de" - | "el" - | "en" - | "en-GB" - | "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" - metadata?: { - [key: string]: string | undefined - } - mode?: "payment" | "setup" | "subscription" - payment_intent_data?: { - application_fee_amount?: number - capture_method?: "automatic" | "automatic_async" | "manual" - description?: string - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - receipt_email?: string - setup_future_usage?: "off_session" | "on_session" - shipping?: { - address: { - city?: string - country?: string - line1: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name: string - phone?: string - tracking_number?: string - } - statement_descriptor?: string - statement_descriptor_suffix?: string - transfer_data?: { - amount?: number - destination: string - } - transfer_group?: string - } - payment_method_collection?: "always" | "if_required" - payment_method_configuration?: string - payment_method_data?: { - allow_redisplay?: "always" | "limited" | "unspecified" - } - payment_method_options?: { - acss_debit?: { - currency?: "cad" | "usd" - mandate_options?: { - custom_mandate_url?: string | "" - default_for?: ("invoice" | "subscription")[] - interval_description?: string - payment_schedule?: "combined" | "interval" | "sporadic" - transaction_type?: "business" | "personal" - } - setup_future_usage?: "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" - } - affirm?: { - setup_future_usage?: "none" - } - afterpay_clearpay?: { - setup_future_usage?: "none" - } - alipay?: { - setup_future_usage?: "none" - } - amazon_pay?: { - setup_future_usage?: "none" | "off_session" - } - au_becs_debit?: { - setup_future_usage?: "none" - } - bacs_debit?: { - mandate_options?: EmptyObject - setup_future_usage?: "none" | "off_session" | "on_session" - } - bancontact?: { - setup_future_usage?: "none" - } - boleto?: { - expires_after_days?: number - setup_future_usage?: "none" | "off_session" | "on_session" - } - card?: { - installments?: { - enabled?: boolean - } - request_extended_authorization?: "if_available" | "never" - request_incremental_authorization?: "if_available" | "never" - request_multicapture?: "if_available" | "never" - request_overcapture?: "if_available" | "never" - request_three_d_secure?: "any" | "automatic" | "challenge" - setup_future_usage?: "off_session" | "on_session" - statement_descriptor_suffix_kana?: string - statement_descriptor_suffix_kanji?: string - } - cashapp?: { - setup_future_usage?: "none" | "off_session" | "on_session" - } - customer_balance?: { - bank_transfer?: { - eu_bank_transfer?: { - country: string - } - requested_address_types?: ( - | "aba" - | "iban" - | "sepa" - | "sort_code" - | "spei" - | "swift" - | "zengin" - )[] - type: - | "eu_bank_transfer" - | "gb_bank_transfer" - | "jp_bank_transfer" - | "mx_bank_transfer" - | "us_bank_transfer" - } - funding_type?: "bank_transfer" - setup_future_usage?: "none" - } - eps?: { - setup_future_usage?: "none" - } - fpx?: { - setup_future_usage?: "none" - } - giropay?: { - setup_future_usage?: "none" - } - grabpay?: { - setup_future_usage?: "none" - } - ideal?: { - setup_future_usage?: "none" - } - kakao_pay?: { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" - } - klarna?: { - setup_future_usage?: "none" - } - konbini?: { - expires_after_days?: number - setup_future_usage?: "none" - } - kr_card?: { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" - } - link?: { - setup_future_usage?: "none" | "off_session" - } - mobilepay?: { - setup_future_usage?: "none" - } - multibanco?: { - setup_future_usage?: "none" - } - naver_pay?: { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" - } - oxxo?: { - expires_after_days?: number - setup_future_usage?: "none" - } - p24?: { - setup_future_usage?: "none" - tos_shown_and_accepted?: boolean - } - payco?: { - capture_method?: "manual" - } - paynow?: { - setup_future_usage?: "none" - } - paypal?: { - capture_method?: "" | "manual" - preferred_locale?: - | "cs-CZ" - | "da-DK" - | "de-AT" - | "de-DE" - | "de-LU" - | "el-GR" - | "en-GB" - | "en-US" - | "es-ES" - | "fi-FI" - | "fr-BE" - | "fr-FR" - | "fr-LU" - | "hu-HU" - | "it-IT" - | "nl-BE" - | "nl-NL" - | "pl-PL" - | "pt-PT" - | "sk-SK" - | "sv-SE" - reference?: string - risk_correlation_id?: string - setup_future_usage?: "" | "none" | "off_session" - } - pix?: { - expires_after_seconds?: number - } - revolut_pay?: { - setup_future_usage?: "none" | "off_session" - } - samsung_pay?: { - capture_method?: "manual" - } - sepa_debit?: { - mandate_options?: EmptyObject - setup_future_usage?: "none" | "off_session" | "on_session" - } - sofort?: { - setup_future_usage?: "none" - } - swish?: { - reference?: string - } - us_bank_account?: { - financial_connections?: { - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" + | undefined + shipping_address_collection?: + | { + allowed_countries: ( + | "AC" + | "AD" + | "AE" + | "AF" + | "AG" + | "AI" + | "AL" + | "AM" + | "AO" + | "AQ" + | "AR" + | "AT" + | "AU" + | "AW" + | "AX" + | "AZ" + | "BA" + | "BB" + | "BD" + | "BE" + | "BF" + | "BG" + | "BH" + | "BI" + | "BJ" + | "BL" + | "BM" + | "BN" + | "BO" + | "BQ" + | "BR" + | "BS" + | "BT" + | "BV" + | "BW" + | "BY" + | "BZ" + | "CA" + | "CD" + | "CF" + | "CG" + | "CH" + | "CI" + | "CK" + | "CL" + | "CM" + | "CN" + | "CO" + | "CR" + | "CV" + | "CW" + | "CY" + | "CZ" + | "DE" + | "DJ" + | "DK" + | "DM" + | "DO" + | "DZ" + | "EC" + | "EE" + | "EG" + | "EH" + | "ER" + | "ES" + | "ET" + | "FI" + | "FJ" + | "FK" + | "FO" + | "FR" + | "GA" + | "GB" + | "GD" + | "GE" + | "GF" + | "GG" + | "GH" + | "GI" + | "GL" + | "GM" + | "GN" + | "GP" + | "GQ" + | "GR" + | "GS" + | "GT" + | "GU" + | "GW" + | "GY" + | "HK" + | "HN" + | "HR" + | "HT" + | "HU" + | "ID" + | "IE" + | "IL" + | "IM" + | "IN" + | "IO" + | "IQ" + | "IS" + | "IT" + | "JE" + | "JM" + | "JO" + | "JP" + | "KE" + | "KG" + | "KH" + | "KI" + | "KM" + | "KN" + | "KR" + | "KW" + | "KY" + | "KZ" + | "LA" + | "LB" + | "LC" + | "LI" + | "LK" + | "LR" + | "LS" + | "LT" + | "LU" + | "LV" + | "LY" + | "MA" + | "MC" + | "MD" + | "ME" + | "MF" + | "MG" + | "MK" + | "ML" + | "MM" + | "MN" + | "MO" + | "MQ" + | "MR" + | "MS" + | "MT" + | "MU" + | "MV" + | "MW" + | "MX" + | "MY" + | "MZ" + | "NA" + | "NC" + | "NE" + | "NG" + | "NI" + | "NL" + | "NO" + | "NP" + | "NR" + | "NU" + | "NZ" + | "OM" + | "PA" + | "PE" + | "PF" + | "PG" + | "PH" + | "PK" + | "PL" + | "PM" + | "PN" + | "PR" + | "PS" + | "PT" + | "PY" + | "QA" + | "RE" + | "RO" + | "RS" + | "RU" + | "RW" + | "SA" + | "SB" + | "SC" + | "SE" + | "SG" + | "SH" + | "SI" + | "SJ" + | "SK" + | "SL" + | "SM" + | "SN" + | "SO" + | "SR" + | "SS" + | "ST" + | "SV" + | "SX" + | "SZ" + | "TA" + | "TC" + | "TD" + | "TF" + | "TG" + | "TH" + | "TJ" + | "TK" + | "TL" + | "TM" + | "TN" + | "TO" + | "TR" + | "TT" + | "TV" + | "TW" + | "TZ" + | "UA" + | "UG" + | "US" + | "UY" + | "UZ" + | "VA" + | "VC" + | "VE" + | "VG" + | "VN" + | "VU" + | "WF" + | "WS" + | "XK" + | "YE" + | "YT" + | "ZA" + | "ZM" + | "ZW" + | "ZZ" )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - } - setup_future_usage?: "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" - } - wechat_pay?: { - app_id?: string - client: "android" | "ios" | "web" - setup_future_usage?: "none" - } - } - payment_method_types?: ( - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - )[] - phone_number_collection?: { - enabled: boolean - } - redirect_on_completion?: "always" | "if_required" | "never" - return_url?: string - saved_payment_method_options?: { - allow_redisplay_filters?: ("always" | "limited" | "unspecified")[] - payment_method_save?: "disabled" | "enabled" - } - setup_intent_data?: { - description?: string - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - } - shipping_address_collection?: { - allowed_countries: ( - | "AC" - | "AD" - | "AE" - | "AF" - | "AG" - | "AI" - | "AL" - | "AM" - | "AO" - | "AQ" - | "AR" - | "AT" - | "AU" - | "AW" - | "AX" - | "AZ" - | "BA" - | "BB" - | "BD" - | "BE" - | "BF" - | "BG" - | "BH" - | "BI" - | "BJ" - | "BL" - | "BM" - | "BN" - | "BO" - | "BQ" - | "BR" - | "BS" - | "BT" - | "BV" - | "BW" - | "BY" - | "BZ" - | "CA" - | "CD" - | "CF" - | "CG" - | "CH" - | "CI" - | "CK" - | "CL" - | "CM" - | "CN" - | "CO" - | "CR" - | "CV" - | "CW" - | "CY" - | "CZ" - | "DE" - | "DJ" - | "DK" - | "DM" - | "DO" - | "DZ" - | "EC" - | "EE" - | "EG" - | "EH" - | "ER" - | "ES" - | "ET" - | "FI" - | "FJ" - | "FK" - | "FO" - | "FR" - | "GA" - | "GB" - | "GD" - | "GE" - | "GF" - | "GG" - | "GH" - | "GI" - | "GL" - | "GM" - | "GN" - | "GP" - | "GQ" - | "GR" - | "GS" - | "GT" - | "GU" - | "GW" - | "GY" - | "HK" - | "HN" - | "HR" - | "HT" - | "HU" - | "ID" - | "IE" - | "IL" - | "IM" - | "IN" - | "IO" - | "IQ" - | "IS" - | "IT" - | "JE" - | "JM" - | "JO" - | "JP" - | "KE" - | "KG" - | "KH" - | "KI" - | "KM" - | "KN" - | "KR" - | "KW" - | "KY" - | "KZ" - | "LA" - | "LB" - | "LC" - | "LI" - | "LK" - | "LR" - | "LS" - | "LT" - | "LU" - | "LV" - | "LY" - | "MA" - | "MC" - | "MD" - | "ME" - | "MF" - | "MG" - | "MK" - | "ML" - | "MM" - | "MN" - | "MO" - | "MQ" - | "MR" - | "MS" - | "MT" - | "MU" - | "MV" - | "MW" - | "MX" - | "MY" - | "MZ" - | "NA" - | "NC" - | "NE" - | "NG" - | "NI" - | "NL" - | "NO" - | "NP" - | "NR" - | "NU" - | "NZ" - | "OM" - | "PA" - | "PE" - | "PF" - | "PG" - | "PH" - | "PK" - | "PL" - | "PM" - | "PN" - | "PR" - | "PS" - | "PT" - | "PY" - | "QA" - | "RE" - | "RO" - | "RS" - | "RU" - | "RW" - | "SA" - | "SB" - | "SC" - | "SE" - | "SG" - | "SH" - | "SI" - | "SJ" - | "SK" - | "SL" - | "SM" - | "SN" - | "SO" - | "SR" - | "SS" - | "ST" - | "SV" - | "SX" - | "SZ" - | "TA" - | "TC" - | "TD" - | "TF" - | "TG" - | "TH" - | "TJ" - | "TK" - | "TL" - | "TM" - | "TN" - | "TO" - | "TR" - | "TT" - | "TV" - | "TW" - | "TZ" - | "UA" - | "UG" - | "US" - | "UY" - | "UZ" - | "VA" - | "VC" - | "VE" - | "VG" - | "VN" - | "VU" - | "WF" - | "WS" - | "XK" - | "YE" - | "YT" - | "ZA" - | "ZM" - | "ZW" - | "ZZ" - )[] - } - shipping_options?: { - shipping_rate?: string - shipping_rate_data?: { - delivery_estimate?: { - maximum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } - minimum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } } - display_name: string - fixed_amount?: { - amount: number - currency: string - currency_options?: { - [key: string]: - | { - amount: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" + | undefined + shipping_options?: + | { + shipping_rate?: string | undefined + shipping_rate_data?: + | { + delivery_estimate?: + | { + maximum?: + | { + unit: + | "business_day" + | "day" + | "hour" + | "month" + | "week" + value: number + } + | undefined + minimum?: + | { + unit: + | "business_day" + | "day" + | "hour" + | "month" + | "week" + value: number + } + | undefined + } + | undefined + display_name: string + fixed_amount?: + | { + amount: number + currency: string + currency_options?: + | { + [key: string]: + | { + amount: number + tax_behavior?: + | ( + | "exclusive" + | "inclusive" + | "unspecified" + ) + | undefined + } + | undefined + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + tax_code?: string | undefined + type?: "fixed_amount" | undefined + } + | undefined + }[] + | undefined + submit_type?: + | ("auto" | "book" | "donate" | "pay" | "subscribe") + | undefined + subscription_data?: + | { + application_fee_percent?: number | undefined + billing_cycle_anchor?: number | undefined + default_tax_rates?: string[] | undefined + description?: string | undefined + invoice_settings?: + | { + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + proration_behavior?: ("create_prorations" | "none") | undefined + transfer_data?: + | { + amount_percent?: number | undefined + destination: string + } + | undefined + trial_end?: number | undefined + trial_period_days?: number | undefined + trial_settings?: + | { + end_behavior: { + missing_payment_method: + | "cancel" + | "create_invoice" + | "pause" } - | undefined - } - } - metadata?: { - [key: string]: string | undefined - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string - type?: "fixed_amount" - } - }[] - submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" - subscription_data?: { - application_fee_percent?: number - billing_cycle_anchor?: number - default_tax_rates?: string[] - description?: string - invoice_settings?: { - issuer?: { - account?: string - type: "account" | "self" + } + | undefined } - } - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - proration_behavior?: "create_prorations" | "none" - transfer_data?: { - amount_percent?: number - destination: string - } - trial_end?: number - trial_period_days?: number - trial_settings?: { - end_behavior: { - missing_payment_method: "cancel" | "create_invoice" | "pause" + | undefined + success_url?: string | undefined + tax_id_collection?: + | { + enabled: boolean + required?: ("if_supported" | "never") | undefined } - } - } - success_url?: string - tax_id_collection?: { - enabled: boolean - required?: "if_supported" | "never" - } - ui_mode?: "embedded" | "hosted" + | undefined + ui_mode?: ("embedded" | "hosted") | undefined } } = {}, timeout?: number, @@ -6175,12 +7316,15 @@ export class StripeApi extends AbstractAxiosClient { p: { session: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -6207,7 +7351,7 @@ export class StripeApi extends AbstractAxiosClient { p: { session: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -6316,16 +7460,20 @@ export class StripeApi extends AbstractAxiosClient { async postClimateOrders( p: { requestBody: { - amount?: number - beneficiary?: { - public_name: string - } - currency?: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - metric_tons?: string + amount?: number | undefined + beneficiary?: + | { + public_name: string + } + | undefined + currency?: string | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + metric_tons?: string | undefined product: string } }, @@ -6381,14 +7529,19 @@ export class StripeApi extends AbstractAxiosClient { order: string requestBody?: { beneficiary?: + | ( + | { + public_name: string | "" + } + | "" + ) + | undefined + expand?: string[] | undefined + metadata?: | { - public_name: string | "" + [key: string]: string | undefined } - | "" - expand?: string[] - metadata?: { - [key: string]: string | undefined - } + | undefined } }, timeout?: number, @@ -6415,7 +7568,7 @@ export class StripeApi extends AbstractAxiosClient { p: { order: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -6673,10 +7826,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -6722,31 +7875,38 @@ export class StripeApi extends AbstractAxiosClient { async postCoupons( p: { requestBody?: { - amount_off?: number - applies_to?: { - products?: string[] - } - currency?: string - currency_options?: { - [key: string]: - | { - amount_off: number - } - | undefined - } - duration?: "forever" | "once" | "repeating" - duration_in_months?: number - expand?: string[] - id?: string - max_redemptions?: number - metadata?: + amount_off?: number | undefined + applies_to?: + | { + products?: string[] | undefined + } + | undefined + currency?: string | undefined + currency_options?: | { - [key: string]: string | undefined + [key: string]: + | { + amount_off: number + } + | undefined } - | "" - name?: string - percent_off?: number - redeem_by?: number + | undefined + duration?: ("forever" | "once" | "repeating") | undefined + duration_in_months?: number | undefined + expand?: string[] | undefined + id?: string | undefined + max_redemptions?: number | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined + percent_off?: number | undefined + redeem_by?: number | undefined } } = {}, timeout?: number, @@ -6825,20 +7985,25 @@ export class StripeApi extends AbstractAxiosClient { p: { coupon: string requestBody?: { - currency_options?: { - [key: string]: - | { - amount_off: number - } - | undefined - } - expand?: string[] - metadata?: + currency_options?: | { - [key: string]: string | undefined + [key: string]: + | { + amount_off: number + } + | undefined } - | "" - name?: string + | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined } }, timeout?: number, @@ -6865,10 +8030,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -6918,44 +8083,56 @@ export class StripeApi extends AbstractAxiosClient { async postCreditNotes( p: { requestBody: { - amount?: number - credit_amount?: number - effective_at?: number - email_type?: "credit_note" | "none" - expand?: string[] + amount?: number | undefined + credit_amount?: number | undefined + effective_at?: number | undefined + email_type?: ("credit_note" | "none") | undefined + expand?: string[] | undefined invoice: string - lines?: { - amount?: number - description?: string - invoice_line_item?: string - quantity?: number - tax_amounts?: - | { - amount: number - tax_rate: string - taxable_amount: number - }[] - | "" - tax_rates?: string[] | "" - type: "custom_line_item" | "invoice_line_item" - unit_amount?: number - unit_amount_decimal?: string - }[] - memo?: string - metadata?: { - [key: string]: string | undefined - } - out_of_band_amount?: number + lines?: + | { + amount?: number | undefined + description?: string | undefined + invoice_line_item?: string | undefined + quantity?: number | undefined + tax_amounts?: + | ( + | { + amount: number + tax_rate: string + taxable_amount: number + }[] + | "" + ) + | undefined + tax_rates?: (string[] | "") | undefined + type: "custom_line_item" | "invoice_line_item" + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + }[] + | undefined + memo?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + out_of_band_amount?: number | undefined reason?: - | "duplicate" - | "fraudulent" - | "order_change" - | "product_unsatisfactory" - refund?: string - refund_amount?: number - shipping_cost?: { - shipping_rate?: string - } + | ( + | "duplicate" + | "fraudulent" + | "order_change" + | "product_unsatisfactory" + ) + | undefined + refund?: string | undefined + refund_amount?: number | undefined + shipping_cost?: + | { + shipping_rate?: string | undefined + } + | undefined } }, timeout?: number, @@ -6987,21 +8164,24 @@ export class StripeApi extends AbstractAxiosClient { expand?: string[] invoice: string lines?: { - amount?: number - description?: string - invoice_line_item?: string - quantity?: number + amount?: number | undefined + description?: string | undefined + invoice_line_item?: string | undefined + quantity?: number | undefined tax_amounts?: - | { - amount: number - tax_rate: string - taxable_amount: number - }[] - | "" - tax_rates?: string[] | "" + | ( + | { + amount: number + tax_rate: string + taxable_amount: number + }[] + | "" + ) + | undefined + tax_rates?: (string[] | "") | undefined type: "custom_line_item" | "invoice_line_item" - unit_amount?: number - unit_amount_decimal?: string + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined }[] memo?: string metadata?: { @@ -7016,7 +8196,7 @@ export class StripeApi extends AbstractAxiosClient { refund?: string refundAmount?: number shippingCost?: { - shipping_rate?: string + shipping_rate?: string | undefined } requestBody?: EmptyObject }, @@ -7067,21 +8247,24 @@ export class StripeApi extends AbstractAxiosClient { invoice: string limit?: number lines?: { - amount?: number - description?: string - invoice_line_item?: string - quantity?: number + amount?: number | undefined + description?: string | undefined + invoice_line_item?: string | undefined + quantity?: number | undefined tax_amounts?: - | { - amount: number - tax_rate: string - taxable_amount: number - }[] - | "" - tax_rates?: string[] | "" + | ( + | { + amount: number + tax_rate: string + taxable_amount: number + }[] + | "" + ) + | undefined + tax_rates?: (string[] | "") | undefined type: "custom_line_item" | "invoice_line_item" - unit_amount?: number - unit_amount_decimal?: string + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined }[] memo?: string metadata?: { @@ -7096,7 +8279,7 @@ export class StripeApi extends AbstractAxiosClient { refund?: string refundAmount?: number shippingCost?: { - shipping_rate?: string + shipping_rate?: string | undefined } startingAfter?: string requestBody?: EmptyObject @@ -7220,11 +8403,13 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] - memo?: string - metadata?: { - [key: string]: string | undefined - } + expand?: string[] | undefined + memo?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined } }, timeout?: number, @@ -7251,7 +8436,7 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -7278,30 +8463,42 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { components: { - buy_button?: { - enabled: boolean - } - payment_element?: { - enabled: boolean - features?: { - payment_method_allow_redisplay_filters?: ( - | "always" - | "limited" - | "unspecified" - )[] - payment_method_redisplay?: "disabled" | "enabled" - payment_method_redisplay_limit?: number - payment_method_remove?: "disabled" | "enabled" - payment_method_save?: "disabled" | "enabled" - payment_method_save_usage?: "off_session" | "on_session" - } - } - pricing_table?: { - enabled: boolean - } + buy_button?: + | { + enabled: boolean + } + | undefined + payment_element?: + | { + enabled: boolean + features?: + | { + payment_method_allow_redisplay_filters?: + | ("always" | "limited" | "unspecified")[] + | undefined + payment_method_redisplay?: + | ("disabled" | "enabled") + | undefined + payment_method_redisplay_limit?: number | undefined + payment_method_remove?: + | ("disabled" | "enabled") + | undefined + payment_method_save?: ("disabled" | "enabled") | undefined + payment_method_save_usage?: + | ("off_session" | "on_session") + | undefined + } + | undefined + } + | undefined + pricing_table?: + | { + enabled: boolean + } + | undefined } customer: string - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -7328,10 +8525,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number email?: string @@ -7382,162 +8579,188 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody?: { address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + balance?: number | undefined + cash_balance?: | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - balance?: number - cash_balance?: { - settings?: { - reconciliation_mode?: "automatic" | "manual" | "merchant_default" - } - } - coupon?: string - description?: string - email?: string - expand?: string[] - invoice_prefix?: string - invoice_settings?: { - custom_fields?: - | { - name: string - value: string - }[] - | "" - default_payment_method?: string - footer?: string - rendering_options?: - | { - amount_tax_display?: - | "" - | "exclude_tax" - | "include_inclusive_tax" - template?: string - } - | "" - } - metadata?: + settings?: + | { + reconciliation_mode?: + | ("automatic" | "manual" | "merchant_default") + | undefined + } + | undefined + } + | undefined + coupon?: string | undefined + description?: string | undefined + email?: string | undefined + expand?: string[] | undefined + invoice_prefix?: string | undefined + invoice_settings?: | { - [key: string]: string | undefined + custom_fields?: + | ( + | { + name: string + value: string + }[] + | "" + ) + | undefined + default_payment_method?: string | undefined + footer?: string | undefined + rendering_options?: + | ( + | { + amount_tax_display?: + | ("" | "exclude_tax" | "include_inclusive_tax") + | undefined + template?: string | undefined + } + | "" + ) + | undefined } - | "" - name?: string - next_invoice_sequence?: number - payment_method?: string - phone?: string - preferred_locales?: string[] - promotion_code?: string + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined + next_invoice_sequence?: number | undefined + payment_method?: string | undefined + phone?: string | undefined + preferred_locales?: string[] | undefined + promotion_code?: string | undefined shipping?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + name: string + phone?: string | undefined + } + | "" + ) + | undefined + source?: string | undefined + tax?: | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string + ip_address?: (string | "") | undefined + validate_location?: ("deferred" | "immediately") | undefined } - | "" - source?: string - tax?: { - ip_address?: string | "" - validate_location?: "deferred" | "immediately" - } - tax_exempt?: "" | "exempt" | "none" | "reverse" - tax_id_data?: { - type: - | "ad_nrt" - | "ae_trn" - | "ar_cuit" - | "au_abn" - | "au_arn" - | "bg_uic" - | "bh_vat" - | "bo_tin" - | "br_cnpj" - | "br_cpf" - | "by_tin" - | "ca_bn" - | "ca_gst_hst" - | "ca_pst_bc" - | "ca_pst_mb" - | "ca_pst_sk" - | "ca_qst" - | "ch_uid" - | "ch_vat" - | "cl_tin" - | "cn_tin" - | "co_nit" - | "cr_tin" - | "de_stn" - | "do_rcn" - | "ec_ruc" - | "eg_tin" - | "es_cif" - | "eu_oss_vat" - | "eu_vat" - | "gb_vat" - | "ge_vat" - | "hk_br" - | "hr_oib" - | "hu_tin" - | "id_npwp" - | "il_vat" - | "in_gst" - | "is_vat" - | "jp_cn" - | "jp_rn" - | "jp_trn" - | "ke_pin" - | "kr_brn" - | "kz_bin" - | "li_uid" - | "li_vat" - | "ma_vat" - | "md_vat" - | "mx_rfc" - | "my_frp" - | "my_itn" - | "my_sst" - | "ng_tin" - | "no_vat" - | "no_voec" - | "nz_gst" - | "om_vat" - | "pe_ruc" - | "ph_tin" - | "ro_tin" - | "rs_pib" - | "ru_inn" - | "ru_kpp" - | "sa_vat" - | "sg_gst" - | "sg_uen" - | "si_tin" - | "sv_nit" - | "th_vat" - | "tr_tin" - | "tw_vat" - | "tz_vat" - | "ua_vat" - | "us_ein" - | "uy_ruc" - | "uz_tin" - | "uz_vat" - | "ve_rif" - | "vn_tin" - | "za_vat" - value: string - }[] - test_clock?: string + | undefined + tax_exempt?: ("" | "exempt" | "none" | "reverse") | undefined + tax_id_data?: + | { + type: + | "ad_nrt" + | "ae_trn" + | "ar_cuit" + | "au_abn" + | "au_arn" + | "bg_uic" + | "bh_vat" + | "bo_tin" + | "br_cnpj" + | "br_cpf" + | "by_tin" + | "ca_bn" + | "ca_gst_hst" + | "ca_pst_bc" + | "ca_pst_mb" + | "ca_pst_sk" + | "ca_qst" + | "ch_uid" + | "ch_vat" + | "cl_tin" + | "cn_tin" + | "co_nit" + | "cr_tin" + | "de_stn" + | "do_rcn" + | "ec_ruc" + | "eg_tin" + | "es_cif" + | "eu_oss_vat" + | "eu_vat" + | "gb_vat" + | "ge_vat" + | "hk_br" + | "hr_oib" + | "hu_tin" + | "id_npwp" + | "il_vat" + | "in_gst" + | "is_vat" + | "jp_cn" + | "jp_rn" + | "jp_trn" + | "ke_pin" + | "kr_brn" + | "kz_bin" + | "li_uid" + | "li_vat" + | "ma_vat" + | "md_vat" + | "mx_rfc" + | "my_frp" + | "my_itn" + | "my_sst" + | "ng_tin" + | "no_vat" + | "no_voec" + | "nz_gst" + | "om_vat" + | "pe_ruc" + | "ph_tin" + | "ro_tin" + | "rs_pib" + | "ru_inn" + | "ru_kpp" + | "sa_vat" + | "sg_gst" + | "sg_uen" + | "si_tin" + | "sv_nit" + | "th_vat" + | "tr_tin" + | "tw_vat" + | "tz_vat" + | "ua_vat" + | "us_ein" + | "uy_ruc" + | "uz_tin" + | "uz_vat" + | "ve_rif" + | "vn_tin" + | "za_vat" + value: string + }[] + | undefined + test_clock?: string | undefined } } = {}, timeout?: number, @@ -7574,9 +8797,9 @@ export class StripeApi extends AbstractAxiosClient { AxiosResponse<{ data: t_customer[] has_more: boolean - next_page?: string | null + next_page?: (string | null) | undefined object: "search_result" - total_count?: number + total_count?: number | undefined url: string }> > { @@ -7660,109 +8883,143 @@ export class StripeApi extends AbstractAxiosClient { customer: string requestBody?: { address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - balance?: number + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + balance?: number | undefined bank_account?: - | { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - country: string - currency?: string - object?: "bank_account" - routing_number?: string - } - | string + | ( + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + country: string + currency?: string | undefined + object?: "bank_account" | undefined + routing_number?: string | undefined + } + | string + ) + | undefined card?: + | ( + | { + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + cvc?: string | undefined + exp_month: number + exp_year: number + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined + number: string + object?: "card" | undefined + } + | string + ) + | undefined + cash_balance?: | { - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - cvc?: string - exp_month: number - exp_year: number - metadata?: { - [key: string]: string | undefined - } - name?: string - number: string - object?: "card" - } - | string - cash_balance?: { - settings?: { - reconciliation_mode?: "automatic" | "manual" | "merchant_default" - } - } - coupon?: string - default_alipay_account?: string - default_bank_account?: string - default_card?: string - default_source?: string - description?: string - email?: string - expand?: string[] - invoice_prefix?: string - invoice_settings?: { - custom_fields?: - | { - name: string - value: string - }[] - | "" - default_payment_method?: string - footer?: string - rendering_options?: - | { - amount_tax_display?: - | "" - | "exclude_tax" - | "include_inclusive_tax" - template?: string - } - | "" - } - metadata?: + settings?: + | { + reconciliation_mode?: + | ("automatic" | "manual" | "merchant_default") + | undefined + } + | undefined + } + | undefined + coupon?: string | undefined + default_alipay_account?: string | undefined + default_bank_account?: string | undefined + default_card?: string | undefined + default_source?: string | undefined + description?: string | undefined + email?: string | undefined + expand?: string[] | undefined + invoice_prefix?: string | undefined + invoice_settings?: | { - [key: string]: string | undefined + custom_fields?: + | ( + | { + name: string + value: string + }[] + | "" + ) + | undefined + default_payment_method?: string | undefined + footer?: string | undefined + rendering_options?: + | ( + | { + amount_tax_display?: + | ("" | "exclude_tax" | "include_inclusive_tax") + | undefined + template?: string | undefined + } + | "" + ) + | undefined } - | "" - name?: string - next_invoice_sequence?: number - phone?: string - preferred_locales?: string[] - promotion_code?: string + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined + next_invoice_sequence?: number | undefined + phone?: string | undefined + preferred_locales?: string[] | undefined + promotion_code?: string | undefined shipping?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + name: string + phone?: string | undefined + } + | "" + ) + | undefined + source?: string | undefined + tax?: | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string + ip_address?: (string | "") | undefined + validate_location?: + | ("auto" | "deferred" | "immediately") + | undefined } - | "" - source?: string - tax?: { - ip_address?: string | "" - validate_location?: "auto" | "deferred" | "immediately" - } - tax_exempt?: "" | "exempt" | "none" | "reverse" + | undefined + tax_exempt?: ("" | "exempt" | "none" | "reverse") | undefined } }, timeout?: number, @@ -7833,13 +9090,16 @@ export class StripeApi extends AbstractAxiosClient { requestBody: { amount: number currency: string - description?: string - expand?: string[] + description?: string | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -7895,13 +9155,16 @@ export class StripeApi extends AbstractAxiosClient { customer: string transaction: string requestBody?: { - description?: string - expand?: string[] + description?: string | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -7970,42 +9233,52 @@ export class StripeApi extends AbstractAxiosClient { p: { customer: string requestBody?: { - alipay_account?: string + alipay_account?: string | undefined bank_account?: - | { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - country: string - currency?: string - object?: "bank_account" - routing_number?: string - } - | string + | ( + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + country: string + currency?: string | undefined + object?: "bank_account" | undefined + routing_number?: string | undefined + } + | string + ) + | undefined card?: + | ( + | { + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + cvc?: string | undefined + exp_month: number + exp_year: number + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined + number: string + object?: "card" | undefined + } + | string + ) + | undefined + expand?: string[] | undefined + metadata?: | { - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - cvc?: string - exp_month: number - exp_year: number - metadata?: { - [key: string]: string | undefined - } - name?: string - number: string - object?: "card" + [key: string]: string | undefined } - | string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - source?: string + | undefined + source?: string | undefined } }, timeout?: number, @@ -8033,7 +9306,7 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -8089,36 +9362,43 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - account_holder_name?: string - account_holder_type?: "company" | "individual" - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - exp_month?: string - exp_year?: string - expand?: string[] + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + exp_month?: string | undefined + exp_year?: string | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined + owner?: | { - [key: string]: string | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + email?: string | undefined + name?: string | undefined + phone?: string | undefined } - | "" - name?: string - owner?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - email?: string - name?: string - phone?: string - } + | undefined } }, timeout?: number, @@ -8146,8 +9426,8 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - amounts?: number[] - expand?: string[] + amounts?: number[] | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -8216,42 +9496,52 @@ export class StripeApi extends AbstractAxiosClient { p: { customer: string requestBody?: { - alipay_account?: string + alipay_account?: string | undefined bank_account?: - | { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - country: string - currency?: string - object?: "bank_account" - routing_number?: string - } - | string + | ( + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + country: string + currency?: string | undefined + object?: "bank_account" | undefined + routing_number?: string | undefined + } + | string + ) + | undefined card?: + | ( + | { + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + cvc?: string | undefined + exp_month: number + exp_year: number + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined + number: string + object?: "card" | undefined + } + | string + ) + | undefined + expand?: string[] | undefined + metadata?: | { - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - cvc?: string - exp_month: number - exp_year: number - metadata?: { - [key: string]: string | undefined - } - name?: string - number: string - object?: "card" + [key: string]: string | undefined } - | string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - source?: string + | undefined + source?: string | undefined } }, timeout?: number, @@ -8279,7 +9569,7 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -8335,36 +9625,43 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - account_holder_name?: string - account_holder_type?: "company" | "individual" - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - exp_month?: string - exp_year?: string - expand?: string[] + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + exp_month?: string | undefined + exp_year?: string | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined + owner?: | { - [key: string]: string | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + email?: string | undefined + name?: string | undefined + phone?: string | undefined } - | "" - name?: string - owner?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - email?: string - name?: string - phone?: string - } + | undefined } }, timeout?: number, @@ -8418,10 +9715,14 @@ export class StripeApi extends AbstractAxiosClient { p: { customer: string requestBody?: { - expand?: string[] - settings?: { - reconciliation_mode?: "automatic" | "manual" | "merchant_default" - } + expand?: string[] | undefined + settings?: + | { + reconciliation_mode?: + | ("automatic" | "manual" | "merchant_default") + | undefined + } + | undefined } }, timeout?: number, @@ -8571,10 +9872,14 @@ export class StripeApi extends AbstractAxiosClient { customer: string requestBody: { bank_transfer: { - eu_bank_transfer?: { - country: string - } - requested_address_types?: ("iban" | "sort_code" | "spei" | "zengin")[] + eu_bank_transfer?: + | { + country: string + } + | undefined + requested_address_types?: + | ("iban" | "sort_code" | "spei" | "zengin")[] + | undefined type: | "eu_bank_transfer" | "gb_bank_transfer" @@ -8583,7 +9888,7 @@ export class StripeApi extends AbstractAxiosClient { | "us_bank_transfer" } currency: string - expand?: string[] + expand?: string[] | undefined funding_type: "bank_transfer" } }, @@ -8772,42 +10077,52 @@ export class StripeApi extends AbstractAxiosClient { p: { customer: string requestBody?: { - alipay_account?: string + alipay_account?: string | undefined bank_account?: - | { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - country: string - currency?: string - object?: "bank_account" - routing_number?: string - } - | string + | ( + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + country: string + currency?: string | undefined + object?: "bank_account" | undefined + routing_number?: string | undefined + } + | string + ) + | undefined card?: + | ( + | { + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + cvc?: string | undefined + exp_month: number + exp_year: number + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined + number: string + object?: "card" | undefined + } + | string + ) + | undefined + expand?: string[] | undefined + metadata?: | { - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - cvc?: string - exp_month: number - exp_year: number - metadata?: { - [key: string]: string | undefined - } - name?: string - number: string - object?: "card" + [key: string]: string | undefined } - | string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - source?: string + | undefined + source?: string | undefined } }, timeout?: number, @@ -8835,7 +10150,7 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -8891,36 +10206,43 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - account_holder_name?: string - account_holder_type?: "company" | "individual" - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - exp_month?: string - exp_year?: string - expand?: string[] + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + exp_month?: string | undefined + exp_year?: string | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined + owner?: | { - [key: string]: string | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + email?: string | undefined + name?: string | undefined + phone?: string | undefined } - | "" - name?: string - owner?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - email?: string - name?: string - phone?: string - } + | undefined } }, timeout?: number, @@ -8948,8 +10270,8 @@ export class StripeApi extends AbstractAxiosClient { customer: string id: string requestBody?: { - amounts?: number[] - expand?: string[] + amounts?: number[] | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -9018,242 +10340,350 @@ export class StripeApi extends AbstractAxiosClient { p: { customer: string requestBody?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number | "" - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - backdate_start_date?: number - billing_cycle_anchor?: number - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - cancel_at?: number - cancel_at_period_end?: boolean - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - currency?: string - days_until_due?: number - default_payment_method?: string - default_source?: string - default_tax_rates?: string[] | "" - discounts?: + add_invoice_items?: | { - coupon?: string - discount?: string - promotion_code?: string + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - expand?: string[] - invoice_settings?: { - account_tax_ids?: string[] | "" - issuer?: { - account?: string - type: "account" | "self" - } - } - items?: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - metadata?: { - [key: string]: string | undefined - } - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - metadata?: + | undefined + application_fee_percent?: (number | "") | undefined + automatic_tax?: | { - [key: string]: string | undefined - } - | "" - off_session?: boolean - payment_behavior?: - | "allow_incomplete" - | "default_incomplete" - | "error_if_incomplete" - | "pending_if_incomplete" - payment_settings?: { - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - transaction_type?: "business" | "personal" + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } - | "" - bancontact?: + | undefined + } + | undefined + backdate_start_date?: number | undefined + billing_cycle_anchor?: number | undefined + billing_thresholds?: + | ( | { - preferred_language?: "de" | "en" | "fr" | "nl" + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined } | "" - card?: + ) + | undefined + cancel_at?: number | undefined + cancel_at_period_end?: boolean | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + currency?: string | undefined + days_until_due?: number | undefined + default_payment_method?: string | undefined + default_source?: string | undefined + default_tax_rates?: (string[] | "") | undefined + discounts?: + | ( | { - mandate_options?: { - amount?: number - amount_type?: "fixed" | "maximum" - description?: string - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_three_d_secure?: "any" | "automatic" | "challenge" - } + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string + ) + | undefined + expand?: string[] | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items?: + | { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined } - type?: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - funding_type?: string + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined } | "" - konbini?: EmptyObject | "" - sepa_debit?: EmptyObject | "" - us_bank_account?: + ) + | undefined + off_session?: boolean | undefined + payment_behavior?: + | ( + | "allow_incomplete" + | "default_incomplete" + | "error_if_incomplete" + | "pending_if_incomplete" + ) + | undefined + payment_settings?: + | { + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + mandate_options?: + | { + amount?: number | undefined + amount_type?: + | ("fixed" | "maximum") + | undefined + description?: string | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + type?: string | undefined + } + | undefined + funding_type?: string | undefined + } + | "" + ) + | undefined + konbini?: (EmptyObject | "") | undefined + sepa_debit?: (EmptyObject | "") | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ( + | "balances" + | "ownership" + | "transactions" + )[] + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + } + | undefined + payment_method_types?: + | ( + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | "" + ) + | undefined + save_default_payment_method?: + | ("off" | "on_subscription") + | undefined + } + | undefined + pending_invoice_item_interval?: + | ( | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined } | "" - } - payment_method_types?: - | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | "" - save_default_payment_method?: "off" | "on_subscription" - } - pending_invoice_item_interval?: + ) + | undefined + promotion_code?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + transfer_data?: | { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - | "" - promotion_code?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - transfer_data?: { - amount_percent?: number - destination: string - } - trial_end?: "now" | number - trial_from_plan?: boolean - trial_period_days?: number - trial_settings?: { - end_behavior: { - missing_payment_method: "cancel" | "create_invoice" | "pause" - } - } + amount_percent?: number | undefined + destination: string + } + | undefined + trial_end?: ("now" | number) | undefined + trial_from_plan?: boolean | undefined + trial_period_days?: number | undefined + trial_settings?: + | { + end_behavior: { + missing_payment_method: "cancel" | "create_invoice" | "pause" + } + } + | undefined } }, timeout?: number, @@ -9281,9 +10711,9 @@ export class StripeApi extends AbstractAxiosClient { customer: string subscriptionExposedId: string requestBody?: { - expand?: string[] - invoice_now?: boolean - prorate?: boolean + expand?: string[] | undefined + invoice_now?: boolean | undefined + prorate?: boolean | undefined } }, timeout?: number, @@ -9339,266 +10769,384 @@ export class StripeApi extends AbstractAxiosClient { customer: string subscriptionExposedId: string requestBody?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number | "" - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "now" | "unchanged" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - cancel_at?: number | "" - cancel_at_period_end?: boolean - cancellation_details?: { - comment?: string | "" - feedback?: - | "" - | "customer_service" - | "low_quality" - | "missing_features" - | "other" - | "switched_service" - | "too_complex" - | "too_expensive" - | "unused" - } - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - days_until_due?: number - default_payment_method?: string - default_source?: string | "" - default_tax_rates?: string[] | "" - discounts?: + add_invoice_items?: | { - coupon?: string - discount?: string - promotion_code?: string + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - expand?: string[] - invoice_settings?: { - account_tax_ids?: string[] | "" - issuer?: { - account?: string - type: "account" | "self" - } - } - items?: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - clear_usage?: boolean - deleted?: boolean - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - id?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - metadata?: + | undefined + application_fee_percent?: (number | "") | undefined + automatic_tax?: | { - [key: string]: string | undefined + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } - | "" - off_session?: boolean - pause_collection?: + | undefined + billing_cycle_anchor?: ("now" | "unchanged") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + cancel_at?: (number | "") | undefined + cancel_at_period_end?: boolean | undefined + cancellation_details?: | { - behavior: "keep_as_draft" | "mark_uncollectible" | "void" - resumes_at?: number + comment?: (string | "") | undefined + feedback?: + | ( + | "" + | "customer_service" + | "low_quality" + | "missing_features" + | "other" + | "switched_service" + | "too_complex" + | "too_expensive" + | "unused" + ) + | undefined } - | "" - payment_behavior?: - | "allow_incomplete" - | "default_incomplete" - | "error_if_incomplete" - | "pending_if_incomplete" - payment_settings?: { - payment_method_options?: { - acss_debit?: + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + days_until_due?: number | undefined + default_payment_method?: string | undefined + default_source?: (string | "") | undefined + default_tax_rates?: (string[] | "") | undefined + discounts?: + | ( | { - mandate_options?: { - transaction_type?: "business" | "personal" + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items?: + | { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + clear_usage?: boolean | undefined + deleted?: boolean | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } - | "" - bancontact?: + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + metadata?: + | ( | { - preferred_language?: "de" | "en" | "fr" | "nl" + [key: string]: string | undefined } | "" - card?: + ) + | undefined + off_session?: boolean | undefined + pause_collection?: + | ( | { - mandate_options?: { - amount?: number - amount_type?: "fixed" | "maximum" - description?: string - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_three_d_secure?: "any" | "automatic" | "challenge" + behavior: "keep_as_draft" | "mark_uncollectible" | "void" + resumes_at?: number | undefined } | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string - } - type?: string + ) + | undefined + payment_behavior?: + | ( + | "allow_incomplete" + | "default_incomplete" + | "error_if_incomplete" + | "pending_if_incomplete" + ) + | undefined + payment_settings?: + | { + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + mandate_options?: + | { + amount?: number | undefined + amount_type?: + | ("fixed" | "maximum") + | undefined + description?: string | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + type?: string | undefined + } + | undefined + funding_type?: string | undefined + } + | "" + ) + | undefined + konbini?: (EmptyObject | "") | undefined + sepa_debit?: (EmptyObject | "") | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ( + | "balances" + | "ownership" + | "transactions" + )[] + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined } - funding_type?: string + | undefined + payment_method_types?: + | ( + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | "" + ) + | undefined + save_default_payment_method?: + | ("off" | "on_subscription") + | undefined + } + | undefined + pending_invoice_item_interval?: + | ( + | { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined } | "" - konbini?: EmptyObject | "" - sepa_debit?: EmptyObject | "" - us_bank_account?: + ) + | undefined + promotion_code?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined + transfer_data?: + | ( | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" + amount_percent?: number | undefined + destination: string } | "" - } - payment_method_types?: - | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | "" - save_default_payment_method?: "off" | "on_subscription" - } - pending_invoice_item_interval?: - | { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - | "" - promotion_code?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number - transfer_data?: + ) + | undefined + trial_end?: ("now" | number) | undefined + trial_from_plan?: boolean | undefined + trial_settings?: | { - amount_percent?: number - destination: string + end_behavior: { + missing_payment_method: "cancel" | "create_invoice" | "pause" + } } - | "" - trial_end?: "now" | number - trial_from_plan?: boolean - trial_settings?: { - end_behavior: { - missing_payment_method: "cancel" | "create_invoice" | "pause" - } - } + | undefined } }, timeout?: number, @@ -9721,7 +11269,7 @@ export class StripeApi extends AbstractAxiosClient { p: { customer: string requestBody: { - expand?: string[] + expand?: string[] | undefined type: | "ad_nrt" | "ae_trn" @@ -9886,10 +11434,10 @@ export class StripeApi extends AbstractAxiosClient { charge?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -9966,82 +11514,130 @@ export class StripeApi extends AbstractAxiosClient { p: { dispute: string requestBody?: { - evidence?: { - access_activity_log?: string - billing_address?: string - cancellation_policy?: string - cancellation_policy_disclosure?: string - cancellation_rebuttal?: string - customer_communication?: string - customer_email_address?: string - customer_name?: string - customer_purchase_ip?: string - customer_signature?: string - duplicate_charge_documentation?: string - duplicate_charge_explanation?: string - duplicate_charge_id?: string - enhanced_evidence?: - | { - visa_compelling_evidence_3?: { - disputed_transaction?: { - customer_account_id?: string | "" - customer_device_fingerprint?: string | "" - customer_device_id?: string | "" - customer_email_address?: string | "" - customer_purchase_ip?: string | "" - merchandise_or_services?: "merchandise" | "services" - product_description?: string | "" - shipping_address?: { - city?: string | "" - country?: string | "" - line1?: string | "" - line2?: string | "" - postal_code?: string | "" - state?: string | "" - } - } - prior_undisputed_transactions?: { - charge: string - customer_account_id?: string | "" - customer_device_fingerprint?: string | "" - customer_device_id?: string | "" - customer_email_address?: string | "" - customer_purchase_ip?: string | "" - product_description?: string | "" - shipping_address?: { - city?: string | "" - country?: string | "" - line1?: string | "" - line2?: string | "" - postal_code?: string | "" - state?: string | "" - } - }[] - } - } - | "" - product_description?: string - receipt?: string - refund_policy?: string - refund_policy_disclosure?: string - refund_refusal_explanation?: string - service_date?: string - service_documentation?: string - shipping_address?: string - shipping_carrier?: string - shipping_date?: string - shipping_documentation?: string - shipping_tracking_number?: string - uncategorized_file?: string - uncategorized_text?: string - } - expand?: string[] - metadata?: + evidence?: | { - [key: string]: string | undefined - } - | "" - submit?: boolean + access_activity_log?: string | undefined + billing_address?: string | undefined + cancellation_policy?: string | undefined + cancellation_policy_disclosure?: string | undefined + cancellation_rebuttal?: string | undefined + customer_communication?: string | undefined + customer_email_address?: string | undefined + customer_name?: string | undefined + customer_purchase_ip?: string | undefined + customer_signature?: string | undefined + duplicate_charge_documentation?: string | undefined + duplicate_charge_explanation?: string | undefined + duplicate_charge_id?: string | undefined + enhanced_evidence?: + | ( + | { + visa_compelling_evidence_3?: + | { + disputed_transaction?: + | { + customer_account_id?: + | (string | "") + | undefined + customer_device_fingerprint?: + | (string | "") + | undefined + customer_device_id?: + | (string | "") + | undefined + customer_email_address?: + | (string | "") + | undefined + customer_purchase_ip?: + | (string | "") + | undefined + merchandise_or_services?: + | ("merchandise" | "services") + | undefined + product_description?: + | (string | "") + | undefined + shipping_address?: + | { + city?: (string | "") | undefined + country?: (string | "") | undefined + line1?: (string | "") | undefined + line2?: (string | "") | undefined + postal_code?: + | (string | "") + | undefined + state?: (string | "") | undefined + } + | undefined + } + | undefined + prior_undisputed_transactions?: + | { + charge: string + customer_account_id?: + | (string | "") + | undefined + customer_device_fingerprint?: + | (string | "") + | undefined + customer_device_id?: + | (string | "") + | undefined + customer_email_address?: + | (string | "") + | undefined + customer_purchase_ip?: + | (string | "") + | undefined + product_description?: + | (string | "") + | undefined + shipping_address?: + | { + city?: (string | "") | undefined + country?: (string | "") | undefined + line1?: (string | "") | undefined + line2?: (string | "") | undefined + postal_code?: + | (string | "") + | undefined + state?: (string | "") | undefined + } + | undefined + }[] + | undefined + } + | undefined + } + | "" + ) + | undefined + product_description?: string | undefined + receipt?: string | undefined + refund_policy?: string | undefined + refund_policy_disclosure?: string | undefined + refund_refusal_explanation?: string | undefined + service_date?: string | undefined + service_documentation?: string | undefined + shipping_address?: string | undefined + shipping_carrier?: string | undefined + shipping_date?: string | undefined + shipping_documentation?: string | undefined + shipping_tracking_number?: string | undefined + uncategorized_file?: string | undefined + uncategorized_text?: string | undefined + } + | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + submit?: boolean | undefined } }, timeout?: number, @@ -10068,7 +11664,7 @@ export class StripeApi extends AbstractAxiosClient { p: { dispute: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -10209,11 +11805,13 @@ export class StripeApi extends AbstractAxiosClient { async postEntitlementsFeatures( p: { requestBody: { - expand?: string[] + expand?: string[] | undefined lookup_key: string - metadata?: { - [key: string]: string | undefined - } + metadata?: + | { + [key: string]: string | undefined + } + | undefined name: string } }, @@ -10268,14 +11866,17 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - active?: boolean - expand?: string[] + active?: boolean | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - name?: string + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined } }, timeout?: number, @@ -10301,11 +11902,11 @@ export class StripeApi extends AbstractAxiosClient { async postEphemeralKeys( p: { requestBody?: { - customer?: string - expand?: string[] - issuing_card?: string - nonce?: string - verification_session?: string + customer?: string | undefined + expand?: string[] | undefined + issuing_card?: string | undefined + nonce?: string | undefined + verification_session?: string | undefined } } = {}, timeout?: number, @@ -10332,7 +11933,7 @@ export class StripeApi extends AbstractAxiosClient { p: { key: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -10359,10 +11960,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number deliverySuccess?: boolean @@ -10510,10 +12111,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -10563,14 +12164,17 @@ export class StripeApi extends AbstractAxiosClient { async postFileLinks( p: { requestBody: { - expand?: string[] - expires_at?: number + expand?: string[] | undefined + expires_at?: number | undefined file: string metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -10624,13 +12228,16 @@ export class StripeApi extends AbstractAxiosClient { p: { link: string requestBody?: { - expand?: string[] - expires_at?: "now" | number | "" + expand?: string[] | undefined + expires_at?: ("now" | number | "") | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -10657,10 +12264,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -10725,17 +12332,22 @@ export class StripeApi extends AbstractAxiosClient { async postFiles( p: { requestBody: { - expand?: string[] + expand?: string[] | undefined file: string - file_link_data?: { - create: boolean - expires_at?: number - metadata?: - | { - [key: string]: string | undefined - } - | "" - } + file_link_data?: + | { + create: boolean + expires_at?: number | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + } + | undefined purpose: | "account_requirement" | "additional_verification" @@ -10804,8 +12416,8 @@ export class StripeApi extends AbstractAxiosClient { async getFinancialConnectionsAccounts( p: { accountHolder?: { - account?: string - customer?: string + account?: string | undefined + customer?: string | undefined } endingBefore?: string expand?: string[] @@ -10880,7 +12492,7 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -10951,7 +12563,7 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody: { - expand?: string[] + expand?: string[] | undefined features: ("balance" | "ownership" | "transactions")[] } }, @@ -10979,7 +12591,7 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody: { - expand?: string[] + expand?: string[] | undefined features: "transactions"[] } }, @@ -11007,7 +12619,7 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody: { - expand?: string[] + expand?: string[] | undefined features: "transactions"[] } }, @@ -11035,29 +12647,33 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { account_holder: { - account?: string - customer?: string + account?: string | undefined + customer?: string | undefined type: "account" | "customer" } - expand?: string[] - filters?: { - account_subcategories?: ( - | "checking" - | "credit_card" - | "line_of_credit" - | "mortgage" - | "savings" - )[] - countries?: string[] - } + expand?: string[] | undefined + filters?: + | { + account_subcategories?: + | ( + | "checking" + | "credit_card" + | "line_of_credit" + | "mortgage" + | "savings" + )[] + | undefined + countries?: string[] | undefined + } + | undefined permissions: ( | "balances" | "ownership" | "payment_method" | "transactions" )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string + prefetch?: ("balances" | "ownership" | "transactions")[] | undefined + return_url?: string | undefined } }, timeout?: number, @@ -11116,10 +12732,10 @@ export class StripeApi extends AbstractAxiosClient { startingAfter?: string transactedAt?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number transactionRefresh?: { @@ -11193,10 +12809,10 @@ export class StripeApi extends AbstractAxiosClient { async getForwardingRequests( p: { created?: { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } endingBefore?: string expand?: string[] @@ -11241,10 +12857,12 @@ export class StripeApi extends AbstractAxiosClient { async postForwardingRequests( p: { requestBody: { - expand?: string[] - metadata?: { - [key: string]: string | undefined - } + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined payment_method: string replacements: ( | "card_cvc" @@ -11252,13 +12870,17 @@ export class StripeApi extends AbstractAxiosClient { | "card_number" | "cardholder_name" )[] - request?: { - body?: string - headers?: { - name: string - value: string - }[] - } + request?: + | { + body?: string | undefined + headers?: + | { + name: string + value: string + }[] + | undefined + } + | undefined url: string } }, @@ -11314,10 +12936,10 @@ export class StripeApi extends AbstractAxiosClient { clientReferenceId?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -11397,10 +13019,10 @@ export class StripeApi extends AbstractAxiosClient { clientReferenceId?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -11451,29 +13073,40 @@ export class StripeApi extends AbstractAxiosClient { async postIdentityVerificationSessions( p: { requestBody?: { - client_reference_id?: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - options?: { - document?: - | { - allowed_types?: ("driving_license" | "id_card" | "passport")[] - require_id_number?: boolean - require_live_capture?: boolean - require_matching_selfie?: boolean - } - | "" - } - provided_details?: { - email?: string - phone?: string - } - related_customer?: string - return_url?: string - type?: "document" | "id_number" - verification_flow?: string + client_reference_id?: string | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + options?: + | { + document?: + | ( + | { + allowed_types?: + | ("driving_license" | "id_card" | "passport")[] + | undefined + require_id_number?: boolean | undefined + require_live_capture?: boolean | undefined + require_matching_selfie?: boolean | undefined + } + | "" + ) + | undefined + } + | undefined + provided_details?: + | { + email?: string | undefined + phone?: string | undefined + } + | undefined + related_customer?: string | undefined + return_url?: string | undefined + type?: ("document" | "id_number") | undefined + verification_flow?: string | undefined } } = {}, timeout?: number, @@ -11527,25 +13160,36 @@ export class StripeApi extends AbstractAxiosClient { p: { session: string requestBody?: { - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - options?: { - document?: - | { - allowed_types?: ("driving_license" | "id_card" | "passport")[] - require_id_number?: boolean - require_live_capture?: boolean - require_matching_selfie?: boolean - } - | "" - } - provided_details?: { - email?: string - phone?: string - } - type?: "document" | "id_number" + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + options?: + | { + document?: + | ( + | { + allowed_types?: + | ("driving_license" | "id_card" | "passport")[] + | undefined + require_id_number?: boolean | undefined + require_live_capture?: boolean | undefined + require_matching_selfie?: boolean | undefined + } + | "" + ) + | undefined + } + | undefined + provided_details?: + | { + email?: string | undefined + phone?: string | undefined + } + | undefined + type?: ("document" | "id_number") | undefined } }, timeout?: number, @@ -11572,7 +13216,7 @@ export class StripeApi extends AbstractAxiosClient { p: { session: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -11599,7 +13243,7 @@ export class StripeApi extends AbstractAxiosClient { p: { session: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -11697,7 +13341,7 @@ export class StripeApi extends AbstractAxiosClient { p: { template: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -11724,7 +13368,7 @@ export class StripeApi extends AbstractAxiosClient { p: { template: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -11751,10 +13395,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -11806,44 +13450,56 @@ export class StripeApi extends AbstractAxiosClient { async postInvoiceitems( p: { requestBody: { - amount?: number - currency?: string + amount?: number | undefined + currency?: string | undefined customer: string - description?: string - discountable?: boolean + description?: string | undefined + discountable?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - expand?: string[] - invoice?: string + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined + invoice?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: | { - [key: string]: string | undefined + end: number + start: number } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - subscription?: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string | "" - tax_rates?: string[] - unit_amount?: number - unit_amount_decimal?: string + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + subscription?: string | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined + tax_code?: (string | "") | undefined + tax_rates?: string[] | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } }, timeout?: number, @@ -11922,40 +13578,52 @@ export class StripeApi extends AbstractAxiosClient { p: { invoiceitem: string requestBody?: { - amount?: number - description?: string - discountable?: boolean + amount?: number | undefined + description?: string | undefined + discountable?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - expand?: string[] + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: | { - [key: string]: string | undefined + end: number + start: number } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string | "" - tax_rates?: string[] | "" - unit_amount?: number - unit_amount_decimal?: string + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined + tax_code?: (string | "") | undefined + tax_rates?: (string[] | "") | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } }, timeout?: number, @@ -11983,19 +13651,19 @@ export class StripeApi extends AbstractAxiosClient { collectionMethod?: "charge_automatically" | "send_invoice" created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string dueDate?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -12048,226 +13716,340 @@ export class StripeApi extends AbstractAxiosClient { async postInvoices( p: { requestBody?: { - account_tax_ids?: string[] | "" - application_fee_amount?: number - auto_advance?: boolean - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - automatically_finalizes_at?: number - collection_method?: "charge_automatically" | "send_invoice" - currency?: string - custom_fields?: + account_tax_ids?: (string[] | "") | undefined + application_fee_amount?: number | undefined + auto_advance?: boolean | undefined + automatic_tax?: | { - name: string - value: string - }[] - | "" - customer?: string - days_until_due?: number - default_payment_method?: string - default_source?: string - default_tax_rates?: string[] - description?: string + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + automatically_finalizes_at?: number | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + currency?: string | undefined + custom_fields?: + | ( + | { + name: string + value: string + }[] + | "" + ) + | undefined + customer?: string | undefined + days_until_due?: number | undefined + default_payment_method?: string | undefined + default_source?: string | undefined + default_tax_rates?: string[] | undefined + description?: string | undefined discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + due_date?: number | undefined + effective_at?: number | undefined + expand?: string[] | undefined + footer?: string | undefined + from_invoice?: | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - due_date?: number - effective_at?: number - expand?: string[] - footer?: string - from_invoice?: { - action: "revision" - invoice: string - } - issuer?: { - account?: string - type: "account" | "self" - } - metadata?: + action: "revision" + invoice: string + } + | undefined + issuer?: | { - [key: string]: string | undefined + account?: string | undefined + type: "account" | "self" } - | "" - number?: string - on_behalf_of?: string - payment_settings?: { - default_mandate?: string | "" - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - transaction_type?: "business" | "personal" - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } - | "" - bancontact?: + | undefined + metadata?: + | ( | { - preferred_language?: "de" | "en" | "fr" | "nl" + [key: string]: string | undefined } | "" - card?: - | { - installments?: { - enabled?: boolean - plan?: + ) + | undefined + number?: string | undefined + on_behalf_of?: string | undefined + payment_settings?: + | { + default_mandate?: (string | "") | undefined + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + installments?: + | { + enabled?: boolean | undefined + plan?: + | ( + | { + count?: number | undefined + interval?: "month" | undefined + type: "fixed_count" + } + | "" + ) + | undefined + } + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + type?: string | undefined + } + | undefined + funding_type?: string | undefined + } + | "" + ) + | undefined + konbini?: (EmptyObject | "") | undefined + sepa_debit?: (EmptyObject | "") | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ( + | "balances" + | "ownership" + | "transactions" + )[] + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + } + | undefined + payment_method_types?: + | ( + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | "" + ) + | undefined + } + | undefined + pending_invoice_items_behavior?: ("exclude" | "include") | undefined + rendering?: + | { + amount_tax_display?: + | ("" | "exclude_tax" | "include_inclusive_tax") + | undefined + pdf?: + | { + page_size?: ("a4" | "auto" | "letter") | undefined + } + | undefined + template?: string | undefined + template_version?: (number | "") | undefined + } + | undefined + shipping_cost?: + | { + shipping_rate?: string | undefined + shipping_rate_data?: + | { + delivery_estimate?: | { - count?: number - interval?: "month" - type: "fixed_count" + maximum?: + | { + unit: + | "business_day" + | "day" + | "hour" + | "month" + | "week" + value: number + } + | undefined + minimum?: + | { + unit: + | "business_day" + | "day" + | "hour" + | "month" + | "week" + value: number + } + | undefined } - | "" - } - request_three_d_secure?: "any" | "automatic" | "challenge" - } - | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string - } - type?: string + | undefined + display_name: string + fixed_amount?: + | { + amount: number + currency: string + currency_options?: + | { + [key: string]: + | { + amount: number + tax_behavior?: + | ( + | "exclusive" + | "inclusive" + | "unspecified" + ) + | undefined + } + | undefined + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + tax_code?: string | undefined + type?: "fixed_amount" | undefined } - funding_type?: string - } - | "" - konbini?: EmptyObject | "" - sepa_debit?: EmptyObject | "" - us_bank_account?: - | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } - | "" - } - payment_method_types?: - | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | "" - } - pending_invoice_items_behavior?: "exclude" | "include" - rendering?: { - amount_tax_display?: "" | "exclude_tax" | "include_inclusive_tax" - pdf?: { - page_size?: "a4" | "auto" | "letter" - } - template?: string - template_version?: number | "" - } - shipping_cost?: { - shipping_rate?: string - shipping_rate_data?: { - delivery_estimate?: { - maximum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } - minimum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } + | undefined } - display_name: string - fixed_amount?: { - amount: number - currency: string - currency_options?: { - [key: string]: - | { - amount: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - } - | undefined + | undefined + shipping_details?: + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined } + name: string + phone?: (string | "") | undefined } - metadata?: { - [key: string]: string | undefined + | undefined + statement_descriptor?: string | undefined + subscription?: string | undefined + transfer_data?: + | { + amount?: number | undefined + destination: string } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string - type?: "fixed_amount" - } - } - shipping_details?: { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string | "" - } - statement_descriptor?: string - subscription?: string - transfer_data?: { - amount?: number - destination: string - } + | undefined } } = {}, timeout?: number, @@ -12293,335 +14075,441 @@ export class StripeApi extends AbstractAxiosClient { async postInvoicesCreatePreview( p: { requestBody?: { - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - coupon?: string - currency?: string - customer?: string - customer_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - shipping?: - | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string - } - | "" - tax?: { - ip_address?: string | "" - } - tax_exempt?: "" | "exempt" | "none" | "reverse" - tax_ids?: { - type: - | "ad_nrt" - | "ae_trn" - | "ar_cuit" - | "au_abn" - | "au_arn" - | "bg_uic" - | "bh_vat" - | "bo_tin" - | "br_cnpj" - | "br_cpf" - | "by_tin" - | "ca_bn" - | "ca_gst_hst" - | "ca_pst_bc" - | "ca_pst_mb" - | "ca_pst_sk" - | "ca_qst" - | "ch_uid" - | "ch_vat" - | "cl_tin" - | "cn_tin" - | "co_nit" - | "cr_tin" - | "de_stn" - | "do_rcn" - | "ec_ruc" - | "eg_tin" - | "es_cif" - | "eu_oss_vat" - | "eu_vat" - | "gb_vat" - | "ge_vat" - | "hk_br" - | "hr_oib" - | "hu_tin" - | "id_npwp" - | "il_vat" - | "in_gst" - | "is_vat" - | "jp_cn" - | "jp_rn" - | "jp_trn" - | "ke_pin" - | "kr_brn" - | "kz_bin" - | "li_uid" - | "li_vat" - | "ma_vat" - | "md_vat" - | "mx_rfc" - | "my_frp" - | "my_itn" - | "my_sst" - | "ng_tin" - | "no_vat" - | "no_voec" - | "nz_gst" - | "om_vat" - | "pe_ruc" - | "ph_tin" - | "ro_tin" - | "rs_pib" - | "ru_inn" - | "ru_kpp" - | "sa_vat" - | "sg_gst" - | "sg_uen" - | "si_tin" - | "sv_nit" - | "th_vat" - | "tr_tin" - | "tw_vat" - | "tz_vat" - | "ua_vat" - | "us_ein" - | "uy_ruc" - | "uz_tin" - | "uz_vat" - | "ve_rif" - | "vn_tin" - | "za_vat" - value: string - }[] - } - discounts?: + automatic_tax?: | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - expand?: string[] - invoice_items?: { - amount?: number - currency?: string - description?: string - discountable?: boolean - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - invoiceitem?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string | "" - tax_rates?: string[] | "" - unit_amount?: number - unit_amount_decimal?: string - }[] - issuer?: { - account?: string - type: "account" | "self" - } - on_behalf_of?: string | "" - preview_mode?: "next" | "recurring" - schedule?: string - schedule_details?: { - end_behavior?: "cancel" | "release" - phases?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number - automatic_tax?: { enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "automatic" | "phase_start" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - default_payment_method?: string - default_tax_rates?: string[] | "" - description?: string | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - end_date?: number | "now" - invoice_settings?: { - account_tax_ids?: string[] | "" - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" - } + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } - items: { - billing_thresholds?: + | undefined + coupon?: string | undefined + currency?: string | undefined + customer?: string | undefined + customer_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + shipping?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + name: string + phone?: string | undefined + } + | "" + ) + | undefined + tax?: | { - usage_gte: number + ip_address?: (string | "") | undefined } - | "" - discounts?: + | undefined + tax_exempt?: ("" | "exempt" | "none" | "reverse") | undefined + tax_ids?: | { - coupon?: string - discount?: string - promotion_code?: string + type: + | "ad_nrt" + | "ae_trn" + | "ar_cuit" + | "au_abn" + | "au_arn" + | "bg_uic" + | "bh_vat" + | "bo_tin" + | "br_cnpj" + | "br_cpf" + | "by_tin" + | "ca_bn" + | "ca_gst_hst" + | "ca_pst_bc" + | "ca_pst_mb" + | "ca_pst_sk" + | "ca_qst" + | "ch_uid" + | "ch_vat" + | "cl_tin" + | "cn_tin" + | "co_nit" + | "cr_tin" + | "de_stn" + | "do_rcn" + | "ec_ruc" + | "eg_tin" + | "es_cif" + | "eu_oss_vat" + | "eu_vat" + | "gb_vat" + | "ge_vat" + | "hk_br" + | "hr_oib" + | "hu_tin" + | "id_npwp" + | "il_vat" + | "in_gst" + | "is_vat" + | "jp_cn" + | "jp_rn" + | "jp_trn" + | "ke_pin" + | "kr_brn" + | "kz_bin" + | "li_uid" + | "li_vat" + | "ma_vat" + | "md_vat" + | "mx_rfc" + | "my_frp" + | "my_itn" + | "my_sst" + | "ng_tin" + | "no_vat" + | "no_voec" + | "nz_gst" + | "om_vat" + | "pe_ruc" + | "ph_tin" + | "ro_tin" + | "rs_pib" + | "ru_inn" + | "ru_kpp" + | "sa_vat" + | "sg_gst" + | "sg_uen" + | "si_tin" + | "sv_nit" + | "th_vat" + | "tr_tin" + | "tw_vat" + | "tz_vat" + | "ua_vat" + | "us_ein" + | "uy_ruc" + | "uz_tin" + | "uz_vat" + | "ve_rif" + | "vn_tin" + | "za_vat" + value: string }[] - | "" - metadata?: { - [key: string]: string | undefined - } - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - iterations?: number - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - start_date?: number | "now" - transfer_data?: { - amount_percent?: number - destination: string + | undefined } - trial?: boolean - trial_end?: number | "now" - }[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" - } - subscription?: string - subscription_details?: { - billing_cycle_anchor?: "now" | "unchanged" | number - cancel_at?: number | "" - cancel_at_period_end?: boolean - cancel_now?: boolean - default_tax_rates?: string[] | "" - items?: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - clear_usage?: boolean - deleted?: boolean - discounts?: + | undefined + discounts?: + | ( | { - coupon?: string - discount?: string - promotion_code?: string + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined }[] | "" - id?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string + ) + | undefined + expand?: string[] | undefined + invoice_items?: + | { + amount?: number | undefined + currency?: string | undefined + description?: string | undefined + discountable?: boolean | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + invoiceitem?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: + | { + end: number + start: number + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + tax_code?: (string | "") | undefined + tax_rates?: (string[] | "") | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + }[] + | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + on_behalf_of?: (string | "") | undefined + preview_mode?: ("next" | "recurring") | undefined + schedule?: string | undefined + schedule_details?: + | { + end_behavior?: ("cancel" | "release") | undefined + phases?: + | { + add_invoice_items?: + | { + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_cycle_anchor?: + | ("automatic" | "phase_start") + | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + default_payment_method?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + end_date?: (number | "now") | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items: { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + iterations?: number | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + start_date?: (number | "now") | undefined + transfer_data?: + | { + amount_percent?: number | undefined + destination: string + } + | undefined + trial?: boolean | undefined + trial_end?: (number | "now") | undefined + }[] + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined } - quantity?: number - tax_rates?: string[] | "" - }[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number - resume_at?: "now" - start_date?: number - trial_end?: "now" | number - } + | undefined + subscription?: string | undefined + subscription_details?: + | { + billing_cycle_anchor?: ("now" | "unchanged" | number) | undefined + cancel_at?: (number | "") | undefined + cancel_at_period_end?: boolean | undefined + cancel_now?: boolean | undefined + default_tax_rates?: (string[] | "") | undefined + items?: + | { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + clear_usage?: boolean | undefined + deleted?: boolean | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined + resume_at?: "now" | undefined + start_date?: number | undefined + trial_end?: ("now" | number) | undefined + } + | undefined } } = {}, timeout?: number, @@ -12658,9 +14546,9 @@ export class StripeApi extends AbstractAxiosClient { AxiosResponse<{ data: t_invoice[] has_more: boolean - next_page?: string | null + next_page?: (string | null) | undefined object: "search_result" - total_count?: number + total_count?: number | undefined url: string }> > { @@ -12691,283 +14579,353 @@ export class StripeApi extends AbstractAxiosClient { p: { automaticTax?: { enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } coupon?: string currency?: string customer?: string customerDetails?: { address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined shipping?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + name: string + phone?: string | undefined + } + | "" + ) + | undefined + tax?: | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string + ip_address?: (string | "") | undefined } - | "" - tax?: { - ip_address?: string | "" - } - tax_exempt?: "" | "exempt" | "none" | "reverse" - tax_ids?: { - type: - | "ad_nrt" - | "ae_trn" - | "ar_cuit" - | "au_abn" - | "au_arn" - | "bg_uic" - | "bh_vat" - | "bo_tin" - | "br_cnpj" - | "br_cpf" - | "by_tin" - | "ca_bn" - | "ca_gst_hst" - | "ca_pst_bc" - | "ca_pst_mb" - | "ca_pst_sk" - | "ca_qst" - | "ch_uid" - | "ch_vat" - | "cl_tin" - | "cn_tin" - | "co_nit" - | "cr_tin" - | "de_stn" - | "do_rcn" - | "ec_ruc" - | "eg_tin" - | "es_cif" - | "eu_oss_vat" - | "eu_vat" - | "gb_vat" - | "ge_vat" - | "hk_br" - | "hr_oib" - | "hu_tin" - | "id_npwp" - | "il_vat" - | "in_gst" - | "is_vat" - | "jp_cn" - | "jp_rn" - | "jp_trn" - | "ke_pin" - | "kr_brn" - | "kz_bin" - | "li_uid" - | "li_vat" - | "ma_vat" - | "md_vat" - | "mx_rfc" - | "my_frp" - | "my_itn" - | "my_sst" - | "ng_tin" - | "no_vat" - | "no_voec" - | "nz_gst" - | "om_vat" - | "pe_ruc" - | "ph_tin" - | "ro_tin" - | "rs_pib" - | "ru_inn" - | "ru_kpp" - | "sa_vat" - | "sg_gst" - | "sg_uen" - | "si_tin" - | "sv_nit" - | "th_vat" - | "tr_tin" - | "tw_vat" - | "tz_vat" - | "ua_vat" - | "us_ein" - | "uy_ruc" - | "uz_tin" - | "uz_vat" - | "ve_rif" - | "vn_tin" - | "za_vat" - value: string - }[] + | undefined + tax_exempt?: ("" | "exempt" | "none" | "reverse") | undefined + tax_ids?: + | { + type: + | "ad_nrt" + | "ae_trn" + | "ar_cuit" + | "au_abn" + | "au_arn" + | "bg_uic" + | "bh_vat" + | "bo_tin" + | "br_cnpj" + | "br_cpf" + | "by_tin" + | "ca_bn" + | "ca_gst_hst" + | "ca_pst_bc" + | "ca_pst_mb" + | "ca_pst_sk" + | "ca_qst" + | "ch_uid" + | "ch_vat" + | "cl_tin" + | "cn_tin" + | "co_nit" + | "cr_tin" + | "de_stn" + | "do_rcn" + | "ec_ruc" + | "eg_tin" + | "es_cif" + | "eu_oss_vat" + | "eu_vat" + | "gb_vat" + | "ge_vat" + | "hk_br" + | "hr_oib" + | "hu_tin" + | "id_npwp" + | "il_vat" + | "in_gst" + | "is_vat" + | "jp_cn" + | "jp_rn" + | "jp_trn" + | "ke_pin" + | "kr_brn" + | "kz_bin" + | "li_uid" + | "li_vat" + | "ma_vat" + | "md_vat" + | "mx_rfc" + | "my_frp" + | "my_itn" + | "my_sst" + | "ng_tin" + | "no_vat" + | "no_voec" + | "nz_gst" + | "om_vat" + | "pe_ruc" + | "ph_tin" + | "ro_tin" + | "rs_pib" + | "ru_inn" + | "ru_kpp" + | "sa_vat" + | "sg_gst" + | "sg_uen" + | "si_tin" + | "sv_nit" + | "th_vat" + | "tr_tin" + | "tw_vat" + | "tz_vat" + | "ua_vat" + | "us_ein" + | "uy_ruc" + | "uz_tin" + | "uz_vat" + | "ve_rif" + | "vn_tin" + | "za_vat" + value: string + }[] + | undefined } discounts?: | { - coupon?: string - discount?: string - promotion_code?: string + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined }[] | "" expand?: string[] invoiceItems?: { - amount?: number - currency?: string - description?: string - discountable?: boolean + amount?: number | undefined + currency?: string | undefined + description?: string | undefined + discountable?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - invoiceitem?: string + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + invoiceitem?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: | { - [key: string]: string | undefined + end: number + start: number } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string | "" - tax_rates?: string[] | "" - unit_amount?: number - unit_amount_decimal?: string + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined + tax_code?: (string | "") | undefined + tax_rates?: (string[] | "") | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined }[] issuer?: { - account?: string + account?: string | undefined type: "account" | "self" } onBehalfOf?: string | "" previewMode?: "next" | "recurring" schedule?: string scheduleDetails?: { - end_behavior?: "cancel" | "release" - phases?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "automatic" | "phase_start" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - default_payment_method?: string - default_tax_rates?: string[] | "" - description?: string | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string + end_behavior?: ("cancel" | "release") | undefined + phases?: + | { + add_invoice_items?: + | { + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_cycle_anchor?: ("automatic" | "phase_start") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + default_payment_method?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + end_date?: (number | "now") | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items: { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - end_date?: number | "now" - invoice_settings?: { - account_tax_ids?: string[] | "" - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" - } - } - items: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - metadata?: { - [key: string]: string | undefined - } - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - iterations?: number - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - start_date?: number | "now" - transfer_data?: { - amount_percent?: number - destination: string - } - trial?: boolean - trial_end?: number | "now" - }[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" + iterations?: number | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + start_date?: (number | "now") | undefined + transfer_data?: + | { + amount_percent?: number | undefined + destination: string + } + | undefined + trial?: boolean | undefined + trial_end?: (number | "now") | undefined + }[] + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined } subscription?: string subscriptionBillingCycleAnchor?: "now" | "unchanged" | number @@ -12976,88 +14934,118 @@ export class StripeApi extends AbstractAxiosClient { subscriptionCancelNow?: boolean subscriptionDefaultTaxRates?: string[] | "" subscriptionDetails?: { - billing_cycle_anchor?: "now" | "unchanged" | number - cancel_at?: number | "" - cancel_at_period_end?: boolean - cancel_now?: boolean - default_tax_rates?: string[] | "" - items?: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - clear_usage?: boolean - deleted?: boolean - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - id?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number - resume_at?: "now" - start_date?: number - trial_end?: "now" | number + billing_cycle_anchor?: ("now" | "unchanged" | number) | undefined + cancel_at?: (number | "") | undefined + cancel_at_period_end?: boolean | undefined + cancel_now?: boolean | undefined + default_tax_rates?: (string[] | "") | undefined + items?: + | { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + clear_usage?: boolean | undefined + deleted?: boolean | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined + resume_at?: "now" | undefined + start_date?: number | undefined + trial_end?: ("now" | number) | undefined } subscriptionItems?: { billing_thresholds?: - | { - usage_gte: number - } - | "" - clear_usage?: boolean - deleted?: boolean + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + clear_usage?: boolean | undefined + deleted?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - id?: string + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + price?: string | undefined + price_data?: | { - [key: string]: string | undefined + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - | "" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] subscriptionProrationBehavior?: | "always_invoice" @@ -13121,177 +15109,201 @@ export class StripeApi extends AbstractAxiosClient { p: { automaticTax?: { enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } coupon?: string currency?: string customer?: string customerDetails?: { address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined shipping?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + name: string + phone?: string | undefined + } + | "" + ) + | undefined + tax?: | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string + ip_address?: (string | "") | undefined } - | "" - tax?: { - ip_address?: string | "" - } - tax_exempt?: "" | "exempt" | "none" | "reverse" - tax_ids?: { - type: - | "ad_nrt" - | "ae_trn" - | "ar_cuit" - | "au_abn" - | "au_arn" - | "bg_uic" - | "bh_vat" - | "bo_tin" - | "br_cnpj" - | "br_cpf" - | "by_tin" - | "ca_bn" - | "ca_gst_hst" - | "ca_pst_bc" - | "ca_pst_mb" - | "ca_pst_sk" - | "ca_qst" - | "ch_uid" - | "ch_vat" - | "cl_tin" - | "cn_tin" - | "co_nit" - | "cr_tin" - | "de_stn" - | "do_rcn" - | "ec_ruc" - | "eg_tin" - | "es_cif" - | "eu_oss_vat" - | "eu_vat" - | "gb_vat" - | "ge_vat" - | "hk_br" - | "hr_oib" - | "hu_tin" - | "id_npwp" - | "il_vat" - | "in_gst" - | "is_vat" - | "jp_cn" - | "jp_rn" - | "jp_trn" - | "ke_pin" - | "kr_brn" - | "kz_bin" - | "li_uid" - | "li_vat" - | "ma_vat" - | "md_vat" - | "mx_rfc" - | "my_frp" - | "my_itn" - | "my_sst" - | "ng_tin" - | "no_vat" - | "no_voec" - | "nz_gst" - | "om_vat" - | "pe_ruc" - | "ph_tin" - | "ro_tin" - | "rs_pib" - | "ru_inn" - | "ru_kpp" - | "sa_vat" - | "sg_gst" - | "sg_uen" - | "si_tin" - | "sv_nit" - | "th_vat" - | "tr_tin" - | "tw_vat" - | "tz_vat" - | "ua_vat" - | "us_ein" - | "uy_ruc" - | "uz_tin" - | "uz_vat" - | "ve_rif" - | "vn_tin" - | "za_vat" - value: string - }[] + | undefined + tax_exempt?: ("" | "exempt" | "none" | "reverse") | undefined + tax_ids?: + | { + type: + | "ad_nrt" + | "ae_trn" + | "ar_cuit" + | "au_abn" + | "au_arn" + | "bg_uic" + | "bh_vat" + | "bo_tin" + | "br_cnpj" + | "br_cpf" + | "by_tin" + | "ca_bn" + | "ca_gst_hst" + | "ca_pst_bc" + | "ca_pst_mb" + | "ca_pst_sk" + | "ca_qst" + | "ch_uid" + | "ch_vat" + | "cl_tin" + | "cn_tin" + | "co_nit" + | "cr_tin" + | "de_stn" + | "do_rcn" + | "ec_ruc" + | "eg_tin" + | "es_cif" + | "eu_oss_vat" + | "eu_vat" + | "gb_vat" + | "ge_vat" + | "hk_br" + | "hr_oib" + | "hu_tin" + | "id_npwp" + | "il_vat" + | "in_gst" + | "is_vat" + | "jp_cn" + | "jp_rn" + | "jp_trn" + | "ke_pin" + | "kr_brn" + | "kz_bin" + | "li_uid" + | "li_vat" + | "ma_vat" + | "md_vat" + | "mx_rfc" + | "my_frp" + | "my_itn" + | "my_sst" + | "ng_tin" + | "no_vat" + | "no_voec" + | "nz_gst" + | "om_vat" + | "pe_ruc" + | "ph_tin" + | "ro_tin" + | "rs_pib" + | "ru_inn" + | "ru_kpp" + | "sa_vat" + | "sg_gst" + | "sg_uen" + | "si_tin" + | "sv_nit" + | "th_vat" + | "tr_tin" + | "tw_vat" + | "tz_vat" + | "ua_vat" + | "us_ein" + | "uy_ruc" + | "uz_tin" + | "uz_vat" + | "ve_rif" + | "vn_tin" + | "za_vat" + value: string + }[] + | undefined } discounts?: | { - coupon?: string - discount?: string - promotion_code?: string + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined }[] | "" endingBefore?: string expand?: string[] invoiceItems?: { - amount?: number - currency?: string - description?: string - discountable?: boolean + amount?: number | undefined + currency?: string | undefined + description?: string | undefined + discountable?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - invoiceitem?: string + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + invoiceitem?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: | { - [key: string]: string | undefined + end: number + start: number } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string | "" - tax_rates?: string[] | "" - unit_amount?: number - unit_amount_decimal?: string + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined + tax_code?: (string | "") | undefined + tax_rates?: (string[] | "") | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined }[] issuer?: { - account?: string + account?: string | undefined type: "account" | "self" } limit?: number @@ -13299,107 +15311,153 @@ export class StripeApi extends AbstractAxiosClient { previewMode?: "next" | "recurring" schedule?: string scheduleDetails?: { - end_behavior?: "cancel" | "release" - phases?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "automatic" | "phase_start" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - default_payment_method?: string - default_tax_rates?: string[] | "" - description?: string | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string + end_behavior?: ("cancel" | "release") | undefined + phases?: + | { + add_invoice_items?: + | { + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_cycle_anchor?: ("automatic" | "phase_start") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + default_payment_method?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + end_date?: (number | "now") | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items: { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - end_date?: number | "now" - invoice_settings?: { - account_tax_ids?: string[] | "" - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" - } - } - items: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - metadata?: { - [key: string]: string | undefined - } - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - iterations?: number - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - start_date?: number | "now" - transfer_data?: { - amount_percent?: number - destination: string - } - trial?: boolean - trial_end?: number | "now" - }[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" + iterations?: number | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + start_date?: (number | "now") | undefined + transfer_data?: + | { + amount_percent?: number | undefined + destination: string + } + | undefined + trial?: boolean | undefined + trial_end?: (number | "now") | undefined + }[] + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined } startingAfter?: string subscription?: string @@ -13409,88 +15467,118 @@ export class StripeApi extends AbstractAxiosClient { subscriptionCancelNow?: boolean subscriptionDefaultTaxRates?: string[] | "" subscriptionDetails?: { - billing_cycle_anchor?: "now" | "unchanged" | number - cancel_at?: number | "" - cancel_at_period_end?: boolean - cancel_now?: boolean - default_tax_rates?: string[] | "" - items?: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - clear_usage?: boolean - deleted?: boolean - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - id?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number - resume_at?: "now" - start_date?: number - trial_end?: "now" | number + billing_cycle_anchor?: ("now" | "unchanged" | number) | undefined + cancel_at?: (number | "") | undefined + cancel_at_period_end?: boolean | undefined + cancel_now?: boolean | undefined + default_tax_rates?: (string[] | "") | undefined + items?: + | { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + clear_usage?: boolean | undefined + deleted?: boolean | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined + resume_at?: "now" | undefined + start_date?: number | undefined + trial_end?: ("now" | number) | undefined } subscriptionItems?: { billing_thresholds?: - | { - usage_gte: number - } - | "" - clear_usage?: boolean - deleted?: boolean + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + clear_usage?: boolean | undefined + deleted?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - id?: string + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + price?: string | undefined + price_data?: | { - [key: string]: string | undefined + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - | "" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] subscriptionProrationBehavior?: | "always_invoice" @@ -13616,227 +15704,339 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody?: { - account_tax_ids?: string[] | "" - application_fee_amount?: number - auto_advance?: boolean - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - automatically_finalizes_at?: number - collection_method?: "charge_automatically" | "send_invoice" - custom_fields?: - | { - name: string - value: string - }[] - | "" - days_until_due?: number - default_payment_method?: string - default_source?: string | "" - default_tax_rates?: string[] | "" - description?: string - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - due_date?: number - effective_at?: number | "" - expand?: string[] - footer?: string - issuer?: { - account?: string - type: "account" | "self" - } - metadata?: + account_tax_ids?: (string[] | "") | undefined + application_fee_amount?: number | undefined + auto_advance?: boolean | undefined + automatic_tax?: | { - [key: string]: string | undefined - } - | "" - number?: string | "" - on_behalf_of?: string | "" - payment_settings?: { - default_mandate?: string | "" - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - transaction_type?: "business" | "personal" - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } - | "" - bancontact?: - | { - preferred_language?: "de" | "en" | "fr" | "nl" - } - | "" - card?: - | { - installments?: { - enabled?: boolean - plan?: - | { - count?: number - interval?: "month" - type: "fixed_count" - } - | "" + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" } - request_three_d_secure?: "any" | "automatic" | "challenge" - } - | "" - customer_balance?: + | undefined + } + | undefined + automatically_finalizes_at?: number | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + custom_fields?: + | ( | { - bank_transfer?: { - eu_bank_transfer?: { - country: string - } - type?: string - } - funding_type?: string - } + name: string + value: string + }[] | "" - konbini?: EmptyObject | "" - sepa_debit?: EmptyObject | "" - us_bank_account?: + ) + | undefined + days_until_due?: number | undefined + default_payment_method?: string | undefined + default_source?: (string | "") | undefined + default_tax_rates?: (string[] | "") | undefined + description?: string | undefined + discounts?: + | ( | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] | "" - } - payment_method_types?: - | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | "" - } - rendering?: { - amount_tax_display?: "" | "exclude_tax" | "include_inclusive_tax" - pdf?: { - page_size?: "a4" | "auto" | "letter" - } - template?: string - template_version?: number | "" - } - shipping_cost?: + ) + | undefined + due_date?: number | undefined + effective_at?: (number | "") | undefined + expand?: string[] | undefined + footer?: string | undefined + issuer?: | { - shipping_rate?: string - shipping_rate_data?: { - delivery_estimate?: { - maximum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } - minimum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } + account?: string | undefined + type: "account" | "self" + } + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined } - display_name: string - fixed_amount?: { - amount: number - currency: string - currency_options?: { - [key: string]: - | { - amount: number - tax_behavior?: - | "exclusive" - | "inclusive" - | "unspecified" - } + | "" + ) + | undefined + number?: (string | "") | undefined + on_behalf_of?: (string | "") | undefined + payment_settings?: + | { + default_mandate?: (string | "") | undefined + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + installments?: + | { + enabled?: boolean | undefined + plan?: + | ( + | { + count?: number | undefined + interval?: "month" | undefined + type: "fixed_count" + } + | "" + ) + | undefined + } + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + type?: string | undefined + } + | undefined + funding_type?: string | undefined + } + | "" + ) + | undefined + konbini?: (EmptyObject | "") | undefined + sepa_debit?: (EmptyObject | "") | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ( + | "balances" + | "ownership" + | "transactions" + )[] + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) | undefined } - } - metadata?: { - [key: string]: string | undefined - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string - type?: "fixed_amount" - } + | undefined + payment_method_types?: + | ( + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | "" + ) + | undefined } - | "" - shipping_details?: + | undefined + rendering?: | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string | "" + amount_tax_display?: + | ("" | "exclude_tax" | "include_inclusive_tax") + | undefined + pdf?: + | { + page_size?: ("a4" | "auto" | "letter") | undefined + } + | undefined + template?: string | undefined + template_version?: (number | "") | undefined } - | "" - statement_descriptor?: string + | undefined + shipping_cost?: + | ( + | { + shipping_rate?: string | undefined + shipping_rate_data?: + | { + delivery_estimate?: + | { + maximum?: + | { + unit: + | "business_day" + | "day" + | "hour" + | "month" + | "week" + value: number + } + | undefined + minimum?: + | { + unit: + | "business_day" + | "day" + | "hour" + | "month" + | "week" + value: number + } + | undefined + } + | undefined + display_name: string + fixed_amount?: + | { + amount: number + currency: string + currency_options?: + | { + [key: string]: + | { + amount: number + tax_behavior?: + | ( + | "exclusive" + | "inclusive" + | "unspecified" + ) + | undefined + } + | undefined + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + tax_code?: string | undefined + type?: "fixed_amount" | undefined + } + | undefined + } + | "" + ) + | undefined + shipping_details?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + name: string + phone?: (string | "") | undefined + } + | "" + ) + | undefined + statement_descriptor?: string | undefined transfer_data?: - | { - amount?: number - destination: string - } - | "" + | ( + | { + amount?: number | undefined + destination: string + } + | "" + ) + | undefined } }, timeout?: number, @@ -13863,82 +16063,107 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody: { - expand?: string[] + expand?: string[] | undefined invoice_metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined lines: { - amount?: number - description?: string - discountable?: boolean + amount?: number | undefined + description?: string | undefined + discountable?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - invoice_item?: string + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + invoice_item?: string | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: | { - [key: string]: string | undefined + end: number + start: number } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product?: string - product_data?: { - description?: string - images?: string[] - metadata?: { - [key: string]: string | undefined + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product?: string | undefined + product_data?: + | { + description?: string | undefined + images?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name: string + tax_code?: string | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - name: string - tax_code?: string - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number + | undefined + quantity?: number | undefined tax_amounts?: - | { - amount: number - tax_rate_data: { - country?: string - description?: string - display_name: string - inclusive: boolean - jurisdiction?: string - percentage: number - state?: string - tax_type?: - | "amusement_tax" - | "communications_tax" - | "gst" - | "hst" - | "igst" - | "jct" - | "lease_tax" - | "pst" - | "qst" - | "retail_delivery_fee" - | "rst" - | "sales_tax" - | "service_tax" - | "vat" - } - taxable_amount: number - }[] - | "" - tax_rates?: string[] | "" + | ( + | { + amount: number + tax_rate_data: { + country?: string | undefined + description?: string | undefined + display_name: string + inclusive: boolean + jurisdiction?: string | undefined + percentage: number + state?: string | undefined + tax_type?: + | ( + | "amusement_tax" + | "communications_tax" + | "gst" + | "hst" + | "igst" + | "jct" + | "lease_tax" + | "pst" + | "qst" + | "retail_delivery_fee" + | "rst" + | "sales_tax" + | "service_tax" + | "vat" + ) + | undefined + } + taxable_amount: number + }[] + | "" + ) + | undefined + tax_rates?: (string[] | "") | undefined }[] } }, @@ -13966,8 +16191,8 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody?: { - auto_advance?: boolean - expand?: string[] + auto_advance?: boolean | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -14037,75 +16262,97 @@ export class StripeApi extends AbstractAxiosClient { invoice: string lineItemId: string requestBody?: { - amount?: number - description?: string - discountable?: boolean + amount?: number | undefined + description?: string | undefined + discountable?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - expand?: string[] + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: | { - [key: string]: string | undefined + end: number + start: number } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product?: string - product_data?: { - description?: string - images?: string[] - metadata?: { - [key: string]: string | undefined + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product?: string | undefined + product_data?: + | { + description?: string | undefined + images?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name: string + tax_code?: string | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - name: string - tax_code?: string - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number + | undefined + quantity?: number | undefined tax_amounts?: - | { - amount: number - tax_rate_data: { - country?: string - description?: string - display_name: string - inclusive: boolean - jurisdiction?: string - percentage: number - state?: string - tax_type?: - | "amusement_tax" - | "communications_tax" - | "gst" - | "hst" - | "igst" - | "jct" - | "lease_tax" - | "pst" - | "qst" - | "retail_delivery_fee" - | "rst" - | "sales_tax" - | "service_tax" - | "vat" - } - taxable_amount: number - }[] - | "" - tax_rates?: string[] | "" + | ( + | { + amount: number + tax_rate_data: { + country?: string | undefined + description?: string | undefined + display_name: string + inclusive: boolean + jurisdiction?: string | undefined + percentage: number + state?: string | undefined + tax_type?: + | ( + | "amusement_tax" + | "communications_tax" + | "gst" + | "hst" + | "igst" + | "jct" + | "lease_tax" + | "pst" + | "qst" + | "retail_delivery_fee" + | "rst" + | "sales_tax" + | "service_tax" + | "vat" + ) + | undefined + } + taxable_amount: number + }[] + | "" + ) + | undefined + tax_rates?: (string[] | "") | undefined } }, timeout?: number, @@ -14132,7 +16379,7 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -14159,13 +16406,13 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody?: { - expand?: string[] - forgive?: boolean - mandate?: string | "" - off_session?: boolean - paid_out_of_band?: boolean - payment_method?: string - source?: string + expand?: string[] | undefined + forgive?: boolean | undefined + mandate?: (string | "") | undefined + off_session?: boolean | undefined + paid_out_of_band?: boolean | undefined + payment_method?: string | undefined + source?: string | undefined } }, timeout?: number, @@ -14192,12 +16439,15 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody: { - expand?: string[] + expand?: string[] | undefined invoice_metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined lines: { behavior: "delete" | "unassign" id: string @@ -14228,7 +16478,7 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -14255,82 +16505,107 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody: { - expand?: string[] + expand?: string[] | undefined invoice_metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined lines: { - amount?: number - description?: string - discountable?: boolean + amount?: number | undefined + description?: string | undefined + discountable?: boolean | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined id: string metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + period?: | { - [key: string]: string | undefined + end: number + start: number } - | "" - period?: { - end: number - start: number - } - price?: string - price_data?: { - currency: string - product?: string - product_data?: { - description?: string - images?: string[] - metadata?: { - [key: string]: string | undefined + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product?: string | undefined + product_data?: + | { + description?: string | undefined + images?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name: string + tax_code?: string | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - name: string - tax_code?: string - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number + | undefined + quantity?: number | undefined tax_amounts?: - | { - amount: number - tax_rate_data: { - country?: string - description?: string - display_name: string - inclusive: boolean - jurisdiction?: string - percentage: number - state?: string - tax_type?: - | "amusement_tax" - | "communications_tax" - | "gst" - | "hst" - | "igst" - | "jct" - | "lease_tax" - | "pst" - | "qst" - | "retail_delivery_fee" - | "rst" - | "sales_tax" - | "service_tax" - | "vat" - } - taxable_amount: number - }[] - | "" - tax_rates?: string[] | "" + | ( + | { + amount: number + tax_rate_data: { + country?: string | undefined + description?: string | undefined + display_name: string + inclusive: boolean + jurisdiction?: string | undefined + percentage: number + state?: string | undefined + tax_type?: + | ( + | "amusement_tax" + | "communications_tax" + | "gst" + | "hst" + | "igst" + | "jct" + | "lease_tax" + | "pst" + | "qst" + | "retail_delivery_fee" + | "rst" + | "sales_tax" + | "service_tax" + | "vat" + ) + | undefined + } + taxable_amount: number + }[] + | "" + ) + | undefined + tax_rates?: (string[] | "") | undefined }[] } }, @@ -14358,7 +16633,7 @@ export class StripeApi extends AbstractAxiosClient { p: { invoice: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -14387,10 +16662,10 @@ export class StripeApi extends AbstractAxiosClient { cardholder?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -14468,12 +16743,15 @@ export class StripeApi extends AbstractAxiosClient { p: { authorization: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -14500,13 +16778,16 @@ export class StripeApi extends AbstractAxiosClient { p: { authorization: string requestBody?: { - amount?: number - expand?: string[] + amount?: number | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -14533,12 +16814,15 @@ export class StripeApi extends AbstractAxiosClient { p: { authorization: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -14565,10 +16849,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number email?: string @@ -14627,952 +16911,978 @@ export class StripeApi extends AbstractAxiosClient { city: string country: string line1: string - line2?: string + line2?: string | undefined postal_code: string - state?: string + state?: string | undefined } } - company?: { - tax_id?: string - } - email?: string - expand?: string[] - individual?: { - card_issuing?: { - user_terms_acceptance?: { - date?: number - ip?: string - user_agent?: string | "" + company?: + | { + tax_id?: string | undefined } - } - dob?: { - day: number - month: number - year: number - } - first_name?: string - last_name?: string - verification?: { - document?: { - back?: string - front?: string + | undefined + email?: string | undefined + expand?: string[] | undefined + individual?: + | { + card_issuing?: + | { + user_terms_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + dob?: + | { + day: number + month: number + year: number + } + | undefined + first_name?: string | undefined + last_name?: string | undefined + verification?: + | { + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined } - } - } - metadata?: { - [key: string]: string | undefined - } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined name: string - phone_number?: string - preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[] - spending_controls?: { - allowed_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - allowed_merchant_countries?: string[] - blocked_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - blocked_merchant_countries?: string[] - spending_limits?: { - amount: number - categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - interval: - | "all_time" - | "daily" - | "monthly" - | "per_authorization" - | "weekly" - | "yearly" - }[] - spending_limits_currency?: string - } - status?: "active" | "inactive" - type?: "company" | "individual" + phone_number?: string | undefined + preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[] | undefined + spending_controls?: + | { + allowed_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + allowed_merchant_countries?: string[] | undefined + blocked_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + blocked_merchant_countries?: string[] | undefined + spending_limits?: + | { + amount: number + categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + interval: + | "all_time" + | "daily" + | "monthly" + | "per_authorization" + | "weekly" + | "yearly" + }[] + | undefined + spending_limits_currency?: string | undefined + } + | undefined + status?: ("active" | "inactive") | undefined + type?: ("company" | "individual") | undefined } }, timeout?: number, @@ -15624,957 +17934,985 @@ export class StripeApi extends AbstractAxiosClient { async postIssuingCardholdersCardholder( p: { - cardholder: string - requestBody?: { - billing?: { - address: { - city: string - country: string - line1: string - line2?: string - postal_code: string - state?: string - } - } - company?: { - tax_id?: string - } - email?: string - expand?: string[] - individual?: { - card_issuing?: { - user_terms_acceptance?: { - date?: number - ip?: string - user_agent?: string | "" + cardholder: string + requestBody?: { + billing?: + | { + address: { + city: string + country: string + line1: string + line2?: string | undefined + postal_code: string + state?: string | undefined + } } - } - dob?: { - day: number - month: number - year: number - } - first_name?: string - last_name?: string - verification?: { - document?: { - back?: string - front?: string + | undefined + company?: + | { + tax_id?: string | undefined } - } - } - metadata?: { - [key: string]: string | undefined - } - phone_number?: string - preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[] - spending_controls?: { - allowed_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - allowed_merchant_countries?: string[] - blocked_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - blocked_merchant_countries?: string[] - spending_limits?: { - amount: number - categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - interval: - | "all_time" - | "daily" - | "monthly" - | "per_authorization" - | "weekly" - | "yearly" - }[] - spending_limits_currency?: string - } - status?: "active" | "inactive" + | undefined + email?: string | undefined + expand?: string[] | undefined + individual?: + | { + card_issuing?: + | { + user_terms_acceptance?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + dob?: + | { + day: number + month: number + year: number + } + | undefined + first_name?: string | undefined + last_name?: string | undefined + verification?: + | { + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + phone_number?: string | undefined + preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[] | undefined + spending_controls?: + | { + allowed_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + allowed_merchant_countries?: string[] | undefined + blocked_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + blocked_merchant_countries?: string[] | undefined + spending_limits?: + | { + amount: number + categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + interval: + | "all_time" + | "daily" + | "monthly" + | "per_authorization" + | "weekly" + | "yearly" + }[] + | undefined + spending_limits_currency?: string | undefined + } + | undefined + status?: ("active" | "inactive") | undefined } }, timeout?: number, @@ -16602,10 +18940,10 @@ export class StripeApi extends AbstractAxiosClient { cardholder?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -16664,950 +19002,972 @@ export class StripeApi extends AbstractAxiosClient { async postIssuingCards( p: { requestBody: { - cardholder?: string + cardholder?: string | undefined currency: string - expand?: string[] - financial_account?: string - metadata?: { - [key: string]: string | undefined - } - personalization_design?: string - pin?: { - encrypted_number?: string - } - replacement_for?: string - replacement_reason?: "damaged" | "expired" | "lost" | "stolen" - second_line?: string | "" - shipping?: { - address: { - city: string - country: string - line1: string - line2?: string - postal_code: string - state?: string - } - address_validation?: { - mode: - | "disabled" - | "normalization_only" - | "validation_and_normalization" - } - customs?: { - eori_number?: string - } - name: string - phone_number?: string - require_signature?: boolean - service?: "express" | "priority" | "standard" - type?: "bulk" | "individual" - } - spending_controls?: { - allowed_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - allowed_merchant_countries?: string[] - blocked_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - blocked_merchant_countries?: string[] - spending_limits?: { - amount: number - categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - interval: - | "all_time" - | "daily" - | "monthly" - | "per_authorization" - | "weekly" - | "yearly" - }[] - } - status?: "active" | "inactive" + expand?: string[] | undefined + financial_account?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + personalization_design?: string | undefined + pin?: + | { + encrypted_number?: string | undefined + } + | undefined + replacement_for?: string | undefined + replacement_reason?: + | ("damaged" | "expired" | "lost" | "stolen") + | undefined + second_line?: (string | "") | undefined + shipping?: + | { + address: { + city: string + country: string + line1: string + line2?: string | undefined + postal_code: string + state?: string | undefined + } + address_validation?: + | { + mode: + | "disabled" + | "normalization_only" + | "validation_and_normalization" + } + | undefined + customs?: + | { + eori_number?: string | undefined + } + | undefined + name: string + phone_number?: string | undefined + require_signature?: boolean | undefined + service?: ("express" | "priority" | "standard") | undefined + type?: ("bulk" | "individual") | undefined + } + | undefined + spending_controls?: + | { + allowed_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + allowed_merchant_countries?: string[] | undefined + blocked_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + blocked_merchant_countries?: string[] | undefined + spending_limits?: + | { + amount: number + categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + interval: + | "all_time" + | "daily" + | "monthly" + | "per_authorization" + | "weekly" + | "yearly" + }[] + | undefined + } + | undefined + status?: ("active" | "inactive") | undefined type: "physical" | "virtual" } }, @@ -17662,947 +20022,968 @@ export class StripeApi extends AbstractAxiosClient { p: { card: string requestBody?: { - cancellation_reason?: "lost" | "stolen" - expand?: string[] + cancellation_reason?: ("lost" | "stolen") | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + personalization_design?: string | undefined + pin?: | { - [key: string]: string | undefined + encrypted_number?: string | undefined } - | "" - personalization_design?: string - pin?: { - encrypted_number?: string - } - shipping?: { - address: { - city: string - country: string - line1: string - line2?: string - postal_code: string - state?: string - } - address_validation?: { - mode: - | "disabled" - | "normalization_only" - | "validation_and_normalization" - } - customs?: { - eori_number?: string - } - name: string - phone_number?: string - require_signature?: boolean - service?: "express" | "priority" | "standard" - type?: "bulk" | "individual" - } - spending_controls?: { - allowed_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - allowed_merchant_countries?: string[] - blocked_categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - blocked_merchant_countries?: string[] - spending_limits?: { - amount: number - categories?: ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - interval: - | "all_time" - | "daily" - | "monthly" - | "per_authorization" - | "weekly" - | "yearly" - }[] - } - status?: "active" | "canceled" | "inactive" + | undefined + shipping?: + | { + address: { + city: string + country: string + line1: string + line2?: string | undefined + postal_code: string + state?: string | undefined + } + address_validation?: + | { + mode: + | "disabled" + | "normalization_only" + | "validation_and_normalization" + } + | undefined + customs?: + | { + eori_number?: string | undefined + } + | undefined + name: string + phone_number?: string | undefined + require_signature?: boolean | undefined + service?: ("express" | "priority" | "standard") | undefined + type?: ("bulk" | "individual") | undefined + } + | undefined + spending_controls?: + | { + allowed_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + allowed_merchant_countries?: string[] | undefined + blocked_categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + blocked_merchant_countries?: string[] | undefined + spending_limits?: + | { + amount: number + categories?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | undefined + interval: + | "all_time" + | "daily" + | "monthly" + | "per_authorization" + | "weekly" + | "yearly" + }[] + | undefined + } + | undefined + status?: ("active" | "canceled" | "inactive") | undefined } }, timeout?: number, @@ -18629,10 +21010,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -18682,98 +21063,143 @@ export class StripeApi extends AbstractAxiosClient { async postIssuingDisputes( p: { requestBody?: { - amount?: number - evidence?: { - canceled?: - | { - additional_documentation?: string | "" - canceled_at?: number | "" - cancellation_policy_provided?: boolean | "" - cancellation_reason?: string | "" - expected_at?: number | "" - explanation?: string | "" - product_description?: string | "" - product_type?: "" | "merchandise" | "service" - return_status?: "" | "merchant_rejected" | "successful" - returned_at?: number | "" - } - | "" - duplicate?: - | { - additional_documentation?: string | "" - card_statement?: string | "" - cash_receipt?: string | "" - check_image?: string | "" - explanation?: string | "" - original_transaction?: string - } - | "" - fraudulent?: - | { - additional_documentation?: string | "" - explanation?: string | "" - } - | "" - merchandise_not_as_described?: - | { - additional_documentation?: string | "" - explanation?: string | "" - received_at?: number | "" - return_description?: string | "" - return_status?: "" | "merchant_rejected" | "successful" - returned_at?: number | "" - } - | "" - no_valid_authorization?: - | { - additional_documentation?: string | "" - explanation?: string | "" - } - | "" - not_received?: - | { - additional_documentation?: string | "" - expected_at?: number | "" - explanation?: string | "" - product_description?: string | "" - product_type?: "" | "merchandise" | "service" - } - | "" - other?: - | { - additional_documentation?: string | "" - explanation?: string | "" - product_description?: string | "" - product_type?: "" | "merchandise" | "service" - } - | "" - reason?: - | "canceled" - | "duplicate" - | "fraudulent" - | "merchandise_not_as_described" - | "no_valid_authorization" - | "not_received" - | "other" - | "service_not_as_described" - service_not_as_described?: - | { - additional_documentation?: string | "" - canceled_at?: number | "" - cancellation_reason?: string | "" - explanation?: string | "" - received_at?: number | "" - } - | "" - } - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - transaction?: string - treasury?: { - received_debit: string - } + amount?: number | undefined + evidence?: + | { + canceled?: + | ( + | { + additional_documentation?: (string | "") | undefined + canceled_at?: (number | "") | undefined + cancellation_policy_provided?: + | (boolean | "") + | undefined + cancellation_reason?: (string | "") | undefined + expected_at?: (number | "") | undefined + explanation?: (string | "") | undefined + product_description?: (string | "") | undefined + product_type?: + | ("" | "merchandise" | "service") + | undefined + return_status?: + | ("" | "merchant_rejected" | "successful") + | undefined + returned_at?: (number | "") | undefined + } + | "" + ) + | undefined + duplicate?: + | ( + | { + additional_documentation?: (string | "") | undefined + card_statement?: (string | "") | undefined + cash_receipt?: (string | "") | undefined + check_image?: (string | "") | undefined + explanation?: (string | "") | undefined + original_transaction?: string | undefined + } + | "" + ) + | undefined + fraudulent?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + } + | "" + ) + | undefined + merchandise_not_as_described?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + received_at?: (number | "") | undefined + return_description?: (string | "") | undefined + return_status?: + | ("" | "merchant_rejected" | "successful") + | undefined + returned_at?: (number | "") | undefined + } + | "" + ) + | undefined + no_valid_authorization?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + } + | "" + ) + | undefined + not_received?: + | ( + | { + additional_documentation?: (string | "") | undefined + expected_at?: (number | "") | undefined + explanation?: (string | "") | undefined + product_description?: (string | "") | undefined + product_type?: + | ("" | "merchandise" | "service") + | undefined + } + | "" + ) + | undefined + other?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + product_description?: (string | "") | undefined + product_type?: + | ("" | "merchandise" | "service") + | undefined + } + | "" + ) + | undefined + reason?: + | ( + | "canceled" + | "duplicate" + | "fraudulent" + | "merchandise_not_as_described" + | "no_valid_authorization" + | "not_received" + | "other" + | "service_not_as_described" + ) + | undefined + service_not_as_described?: + | ( + | { + additional_documentation?: (string | "") | undefined + canceled_at?: (number | "") | undefined + cancellation_reason?: (string | "") | undefined + explanation?: (string | "") | undefined + received_at?: (number | "") | undefined + } + | "" + ) + | undefined + } + | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + transaction?: string | undefined + treasury?: + | { + received_debit: string + } + | undefined } } = {}, timeout?: number, @@ -18827,96 +21253,140 @@ export class StripeApi extends AbstractAxiosClient { p: { dispute: string requestBody?: { - amount?: number - evidence?: { - canceled?: - | { - additional_documentation?: string | "" - canceled_at?: number | "" - cancellation_policy_provided?: boolean | "" - cancellation_reason?: string | "" - expected_at?: number | "" - explanation?: string | "" - product_description?: string | "" - product_type?: "" | "merchandise" | "service" - return_status?: "" | "merchant_rejected" | "successful" - returned_at?: number | "" - } - | "" - duplicate?: - | { - additional_documentation?: string | "" - card_statement?: string | "" - cash_receipt?: string | "" - check_image?: string | "" - explanation?: string | "" - original_transaction?: string - } - | "" - fraudulent?: - | { - additional_documentation?: string | "" - explanation?: string | "" - } - | "" - merchandise_not_as_described?: - | { - additional_documentation?: string | "" - explanation?: string | "" - received_at?: number | "" - return_description?: string | "" - return_status?: "" | "merchant_rejected" | "successful" - returned_at?: number | "" - } - | "" - no_valid_authorization?: - | { - additional_documentation?: string | "" - explanation?: string | "" - } - | "" - not_received?: - | { - additional_documentation?: string | "" - expected_at?: number | "" - explanation?: string | "" - product_description?: string | "" - product_type?: "" | "merchandise" | "service" - } - | "" - other?: - | { - additional_documentation?: string | "" - explanation?: string | "" - product_description?: string | "" - product_type?: "" | "merchandise" | "service" - } - | "" - reason?: - | "canceled" - | "duplicate" - | "fraudulent" - | "merchandise_not_as_described" - | "no_valid_authorization" - | "not_received" - | "other" - | "service_not_as_described" - service_not_as_described?: - | { - additional_documentation?: string | "" - canceled_at?: number | "" - cancellation_reason?: string | "" - explanation?: string | "" - received_at?: number | "" - } - | "" - } - expand?: string[] - metadata?: + amount?: number | undefined + evidence?: | { - [key: string]: string | undefined + canceled?: + | ( + | { + additional_documentation?: (string | "") | undefined + canceled_at?: (number | "") | undefined + cancellation_policy_provided?: + | (boolean | "") + | undefined + cancellation_reason?: (string | "") | undefined + expected_at?: (number | "") | undefined + explanation?: (string | "") | undefined + product_description?: (string | "") | undefined + product_type?: + | ("" | "merchandise" | "service") + | undefined + return_status?: + | ("" | "merchant_rejected" | "successful") + | undefined + returned_at?: (number | "") | undefined + } + | "" + ) + | undefined + duplicate?: + | ( + | { + additional_documentation?: (string | "") | undefined + card_statement?: (string | "") | undefined + cash_receipt?: (string | "") | undefined + check_image?: (string | "") | undefined + explanation?: (string | "") | undefined + original_transaction?: string | undefined + } + | "" + ) + | undefined + fraudulent?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + } + | "" + ) + | undefined + merchandise_not_as_described?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + received_at?: (number | "") | undefined + return_description?: (string | "") | undefined + return_status?: + | ("" | "merchant_rejected" | "successful") + | undefined + returned_at?: (number | "") | undefined + } + | "" + ) + | undefined + no_valid_authorization?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + } + | "" + ) + | undefined + not_received?: + | ( + | { + additional_documentation?: (string | "") | undefined + expected_at?: (number | "") | undefined + explanation?: (string | "") | undefined + product_description?: (string | "") | undefined + product_type?: + | ("" | "merchandise" | "service") + | undefined + } + | "" + ) + | undefined + other?: + | ( + | { + additional_documentation?: (string | "") | undefined + explanation?: (string | "") | undefined + product_description?: (string | "") | undefined + product_type?: + | ("" | "merchandise" | "service") + | undefined + } + | "" + ) + | undefined + reason?: + | ( + | "canceled" + | "duplicate" + | "fraudulent" + | "merchandise_not_as_described" + | "no_valid_authorization" + | "not_received" + | "other" + | "service_not_as_described" + ) + | undefined + service_not_as_described?: + | ( + | { + additional_documentation?: (string | "") | undefined + canceled_at?: (number | "") | undefined + cancellation_reason?: (string | "") | undefined + explanation?: (string | "") | undefined + received_at?: (number | "") | undefined + } + | "" + ) + | undefined } - | "" + | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -18943,12 +21413,15 @@ export class StripeApi extends AbstractAxiosClient { p: { dispute: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -18978,8 +21451,8 @@ export class StripeApi extends AbstractAxiosClient { limit?: number lookupKeys?: string[] preferences?: { - is_default?: boolean - is_platform_default?: boolean + is_default?: boolean | undefined + is_platform_default?: boolean | undefined } startingAfter?: string status?: "active" | "inactive" | "rejected" | "review" @@ -19024,24 +21497,30 @@ export class StripeApi extends AbstractAxiosClient { async postIssuingPersonalizationDesigns( p: { requestBody: { - card_logo?: string - carrier_text?: { - footer_body?: string | "" - footer_title?: string | "" - header_body?: string | "" - header_title?: string | "" - } - expand?: string[] - lookup_key?: string - metadata?: { - [key: string]: string | undefined - } - name?: string + card_logo?: string | undefined + carrier_text?: + | { + footer_body?: (string | "") | undefined + footer_title?: (string | "") | undefined + header_body?: (string | "") | undefined + header_title?: (string | "") | undefined + } + | undefined + expand?: string[] | undefined + lookup_key?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined physical_bundle: string - preferences?: { - is_default: boolean - } - transfer_lookup_key?: boolean + preferences?: + | { + is_default: boolean + } + | undefined + transfer_lookup_key?: boolean | undefined } }, timeout?: number, @@ -19095,26 +21574,33 @@ export class StripeApi extends AbstractAxiosClient { p: { personalizationDesign: string requestBody?: { - card_logo?: string | "" + card_logo?: (string | "") | undefined carrier_text?: + | ( + | { + footer_body?: (string | "") | undefined + footer_title?: (string | "") | undefined + header_body?: (string | "") | undefined + header_title?: (string | "") | undefined + } + | "" + ) + | undefined + expand?: string[] | undefined + lookup_key?: (string | "") | undefined + metadata?: | { - footer_body?: string | "" - footer_title?: string | "" - header_body?: string | "" - header_title?: string | "" + [key: string]: string | undefined } - | "" - expand?: string[] - lookup_key?: string | "" - metadata?: { - [key: string]: string | undefined - } - name?: string | "" - physical_bundle?: string - preferences?: { - is_default: boolean - } - transfer_lookup_key?: boolean + | undefined + name?: (string | "") | undefined + physical_bundle?: string | undefined + preferences?: + | { + is_default: boolean + } + | undefined + transfer_lookup_key?: boolean | undefined } }, timeout?: number, @@ -19240,10 +21726,12 @@ export class StripeApi extends AbstractAxiosClient { p: { settlement: string requestBody?: { - expand?: string[] - metadata?: { - [key: string]: string | undefined - } + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined } }, timeout?: number, @@ -19271,10 +21759,10 @@ export class StripeApi extends AbstractAxiosClient { card: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -19351,7 +21839,7 @@ export class StripeApi extends AbstractAxiosClient { p: { token: string requestBody: { - expand?: string[] + expand?: string[] | undefined status: "active" | "deleted" | "suspended" } }, @@ -19381,10 +21869,10 @@ export class StripeApi extends AbstractAxiosClient { cardholder?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -19462,12 +21950,15 @@ export class StripeApi extends AbstractAxiosClient { p: { transaction: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -19494,29 +21985,33 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { account_holder: { - account?: string - customer?: string + account?: string | undefined + customer?: string | undefined type: "account" | "customer" } - expand?: string[] - filters?: { - account_subcategories?: ( - | "checking" - | "credit_card" - | "line_of_credit" - | "mortgage" - | "savings" - )[] - countries?: string[] - } + expand?: string[] | undefined + filters?: + | { + account_subcategories?: + | ( + | "checking" + | "credit_card" + | "line_of_credit" + | "mortgage" + | "savings" + )[] + | undefined + countries?: string[] | undefined + } + | undefined permissions: ( | "balances" | "ownership" | "payment_method" | "transactions" )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string + prefetch?: ("balances" | "ownership" | "transactions")[] | undefined + return_url?: string | undefined } }, timeout?: number, @@ -19569,8 +22064,8 @@ export class StripeApi extends AbstractAxiosClient { async getLinkedAccounts( p: { accountHolder?: { - account?: string - customer?: string + account?: string | undefined + customer?: string | undefined } endingBefore?: string expand?: string[] @@ -19645,13 +22140,1275 @@ export class StripeApi extends AbstractAxiosClient { p: { account: string requestBody?: { - expand?: string[] + expand?: string[] | undefined + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/linked_accounts/${p["account"]}/disconnect` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getLinkedAccountsAccountOwners( + p: { + account: string + endingBefore?: string + expand?: string[] + limit?: number + ownership: string + startingAfter?: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_financial_connections_account_owner[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/linked_accounts/${p["account"]}/owners` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + ownership: p["ownership"], + starting_after: p["startingAfter"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postLinkedAccountsAccountRefresh( + p: { + account: string + requestBody: { + expand?: string[] | undefined + features: ("balance" | "ownership" | "transactions")[] + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/linked_accounts/${p["account"]}/refresh` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getMandatesMandate( + p: { + expand?: string[] + mandate: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/mandates/${p["mandate"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getPaymentIntents( + p: { + created?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + customer?: string + endingBefore?: string + expand?: string[] + limit?: number + startingAfter?: string + requestBody?: EmptyObject + } = {}, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_payment_intent[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/payment_intents` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + created: p["created"], + customer: p["customer"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postPaymentIntents( + p: { + requestBody: { + amount: number + application_fee_amount?: number | undefined + automatic_payment_methods?: + | { + allow_redirects?: ("always" | "never") | undefined + enabled: boolean + } + | undefined + capture_method?: + | ("automatic" | "automatic_async" | "manual") + | undefined + confirm?: boolean | undefined + confirmation_method?: ("automatic" | "manual") | undefined + confirmation_token?: string | undefined + currency: string + customer?: string | undefined + description?: string | undefined + error_on_requires_action?: boolean | undefined + expand?: string[] | undefined + mandate?: string | undefined + mandate_data?: + | ( + | { + customer_acceptance: { + accepted_at?: number | undefined + offline?: EmptyObject | undefined + online?: + | { + ip_address: string + user_agent: string + } + | undefined + type: "offline" | "online" + } + } + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + off_session?: (boolean | "one_off" | "recurring") | undefined + on_behalf_of?: string | undefined + payment_method?: string | undefined + payment_method_configuration?: string | undefined + payment_method_data?: + | { + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined + cashapp?: EmptyObject | undefined + customer_balance?: EmptyObject | undefined + eps?: + | { + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined + type: + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined + } + | undefined + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + custom_mandate_url?: (string | "") | undefined + interval_description?: string | undefined + payment_schedule?: + | ("combined" | "interval" | "sporadic") + | undefined + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + affirm?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: string | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + afterpay_clearpay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + reference?: string | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + alipay?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + alma?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + amazon_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + au_becs_debit?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + bacs_debit?: + | ( + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + blik?: + | ( + | { + code?: string | undefined + setup_future_usage?: ("" | "none") | undefined + } + | "" + ) + | undefined + boleto?: + | ( + | { + expires_after_days?: number | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + capture_method?: ("" | "manual") | undefined + cvc_token?: string | undefined + installments?: + | { + enabled?: boolean | undefined + plan?: + | ( + | { + count?: number | undefined + interval?: "month" | undefined + type: "fixed_count" + } + | "" + ) + | undefined + } + | undefined + mandate_options?: + | { + amount: number + amount_type: "fixed" | "maximum" + description?: string | undefined + end_date?: number | undefined + interval: + | "day" + | "month" + | "sporadic" + | "week" + | "year" + interval_count?: number | undefined + reference: string + start_date: number + supported_types?: "india"[] | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_extended_authorization?: + | ("if_available" | "never") + | undefined + request_incremental_authorization?: + | ("if_available" | "never") + | undefined + request_multicapture?: + | ("if_available" | "never") + | undefined + request_overcapture?: + | ("if_available" | "never") + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + require_cvc_recollection?: boolean | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + statement_descriptor_suffix_kana?: + | (string | "") + | undefined + statement_descriptor_suffix_kanji?: + | (string | "") + | undefined + three_d_secure?: + | { + ares_trans_status?: + | ("A" | "C" | "I" | "N" | "R" | "U" | "Y") + | undefined + cryptogram: string + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07") + | undefined + exemption_indicator?: + | ("low_risk" | "none") + | undefined + network_options?: + | { + cartes_bancaires?: + | { + cb_avalgo: + | "0" + | "1" + | "2" + | "3" + | "4" + | "A" + cb_exemption?: string | undefined + cb_score?: number | undefined + } + | undefined + } + | undefined + requestor_challenge_indicator?: string | undefined + transaction_id: string + version: "1.0.2" | "2.1.0" | "2.2.0" + } + | undefined + } + | "" + ) + | undefined + card_present?: + | ( + | { + request_extended_authorization?: boolean | undefined + request_incremental_authorization_support?: + | boolean + | undefined + routing?: + | { + requested_priority?: + | ("domestic" | "international") + | undefined + } + | undefined + } + | "" + ) + | undefined + cashapp?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + requested_address_types?: + | ( + | "aba" + | "iban" + | "sepa" + | "sort_code" + | "spei" + | "swift" + | "zengin" + )[] + | undefined + type: + | "eu_bank_transfer" + | "gb_bank_transfer" + | "jp_bank_transfer" + | "mx_bank_transfer" + | "us_bank_transfer" + } + | undefined + funding_type?: "bank_transfer" | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + eps?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + fpx?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + giropay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + grabpay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + ideal?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + interac_present?: (EmptyObject | "") | undefined + kakao_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + klarna?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: + | ( + | "cs-CZ" + | "da-DK" + | "de-AT" + | "de-CH" + | "de-DE" + | "el-GR" + | "en-AT" + | "en-AU" + | "en-BE" + | "en-CA" + | "en-CH" + | "en-CZ" + | "en-DE" + | "en-DK" + | "en-ES" + | "en-FI" + | "en-FR" + | "en-GB" + | "en-GR" + | "en-IE" + | "en-IT" + | "en-NL" + | "en-NO" + | "en-NZ" + | "en-PL" + | "en-PT" + | "en-RO" + | "en-SE" + | "en-US" + | "es-ES" + | "es-US" + | "fi-FI" + | "fr-BE" + | "fr-CA" + | "fr-CH" + | "fr-FR" + | "it-CH" + | "it-IT" + | "nb-NO" + | "nl-BE" + | "nl-NL" + | "pl-PL" + | "pt-PT" + | "ro-RO" + | "sv-FI" + | "sv-SE" + ) + | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + konbini?: + | ( + | { + confirmation_number?: (string | "") | undefined + expires_after_days?: (number | "") | undefined + expires_at?: (number | "") | undefined + product_description?: (string | "") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + kr_card?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + link?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + mobilepay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + multibanco?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + naver_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + oxxo?: + | ( + | { + expires_after_days?: number | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + p24?: + | ( + | { + setup_future_usage?: "none" | undefined + tos_shown_and_accepted?: boolean | undefined + } + | "" + ) + | undefined + payco?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + paynow?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + paypal?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: + | ( + | "cs-CZ" + | "da-DK" + | "de-AT" + | "de-DE" + | "de-LU" + | "el-GR" + | "en-GB" + | "en-US" + | "es-ES" + | "fi-FI" + | "fr-BE" + | "fr-FR" + | "fr-LU" + | "hu-HU" + | "it-IT" + | "nl-BE" + | "nl-NL" + | "pl-PL" + | "pt-PT" + | "sk-SK" + | "sv-SE" + ) + | undefined + reference?: string | undefined + risk_correlation_id?: string | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + pix?: + | ( + | { + expires_after_seconds?: number | undefined + expires_at?: number | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + promptpay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + revolut_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + samsung_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + sepa_debit?: + | ( + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + sofort?: + | ( + | { + preferred_language?: + | ( + | "" + | "de" + | "en" + | "es" + | "fr" + | "it" + | "nl" + | "pl" + ) + | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + swish?: + | ( + | { + reference?: (string | "") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + twint?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ("balances" | "ownership" | "transactions")[] + | undefined + return_url?: string | undefined + } + | undefined + mandate_options?: + | { + collection_method?: ("" | "paper") | undefined + } + | undefined + networks?: + | { + requested?: + | ("ach" | "us_domestic_wire")[] + | undefined + } + | undefined + preferred_settlement_speed?: + | ("" | "fastest" | "standard") + | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + wechat_pay?: + | ( + | { + app_id?: string | undefined + client: "android" | "ios" | "web" + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + zip?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + } + | undefined + payment_method_types?: string[] | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + receipt_email?: string | undefined + return_url?: string | undefined + setup_future_usage?: ("off_session" | "on_session") | undefined + shipping?: + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + carrier?: string | undefined + name: string + phone?: string | undefined + tracking_number?: string | undefined + } + | undefined + statement_descriptor?: string | undefined + statement_descriptor_suffix?: string | undefined + transfer_data?: + | { + amount?: number | undefined + destination: string + } + | undefined + transfer_group?: string | undefined + use_stripe_sdk?: boolean | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/linked_accounts/${p["account"]}/disconnect` + ): Promise> { + const url = `/v1/payment_intents` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -19668,37 +23425,36 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getLinkedAccountsAccountOwners( + async getPaymentIntentsSearch( p: { - account: string - endingBefore?: string expand?: string[] limit?: number - ownership: string - startingAfter?: string + page?: string + query: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_financial_connections_account_owner[] + data: t_payment_intent[] has_more: boolean - object: "list" + next_page?: (string | null) | undefined + object: "search_result" + total_count?: number | undefined url: string }> > { - const url = `/v1/linked_accounts/${p["account"]}/owners` + const url = `/v1/payment_intents/search` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) const query = this._query({ - ending_before: p["endingBefore"], expand: p["expand"], limit: p["limit"], - ownership: p["ownership"], - starting_after: p["startingAfter"], + page: p["page"], + query: p["query"], }) const body = JSON.stringify(p.requestBody) @@ -19712,100 +23468,24 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postLinkedAccountsAccountRefresh( - p: { - account: string - requestBody: { - expand?: string[] - features: ("balance" | "ownership" | "transactions")[] - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/linked_accounts/${p["account"]}/refresh` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getMandatesMandate( + async getPaymentIntentsIntent( p: { + clientSecret?: string expand?: string[] - mandate: string + intent: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/mandates/${p["mandate"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getPaymentIntents( - p: { - created?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - customer?: string - endingBefore?: string - expand?: string[] - limit?: number - startingAfter?: string - requestBody?: EmptyObject - } = {}, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_payment_intent[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/payment_intents` + ): Promise> { + const url = `/v1/payment_intents/${p["intent"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) const query = this._query({ - created: p["created"], - customer: p["customer"], - ending_before: p["endingBefore"], + client_secret: p["clientSecret"], expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], }) const body = JSON.stringify(p.requestBody) @@ -19819,1595 +23499,1063 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postPaymentIntents( + async postPaymentIntentsIntent( p: { - requestBody: { - amount: number - application_fee_amount?: number - automatic_payment_methods?: { - allow_redirects?: "always" | "never" - enabled: boolean - } - capture_method?: "automatic" | "automatic_async" | "manual" - confirm?: boolean - confirmation_method?: "automatic" | "manual" - confirmation_token?: string - currency: string - customer?: string - description?: string - error_on_requires_action?: boolean - expand?: string[] - mandate?: string - mandate_data?: - | { - customer_acceptance: { - accepted_at?: number - offline?: EmptyObject - online?: { - ip_address: string - user_agent: string - } - type: "offline" | "online" - } - } - | "" - metadata?: { - [key: string]: string | undefined - } - off_session?: boolean | "one_off" | "recurring" - on_behalf_of?: string - payment_method?: string - payment_method_configuration?: string - payment_method_data?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: + intent: string + requestBody?: { + amount?: number | undefined + application_fee_amount?: (number | "") | undefined + capture_method?: + | ("automatic" | "automatic_async" | "manual") + | undefined + currency?: string | undefined + customer?: string | undefined + description?: string | undefined + expand?: string[] | undefined + metadata?: + | ( | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string + [key: string]: string | undefined } | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } - cashapp?: EmptyObject - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number + ) + | undefined + payment_method?: string | undefined + payment_method_configuration?: string | undefined + payment_method_data?: + | { + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined + cashapp?: EmptyObject | undefined + customer_balance?: EmptyObject | undefined + eps?: + | { + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined + type: + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject - type: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject - } - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - custom_mandate_url?: string | "" - interval_description?: string - payment_schedule?: "combined" | "interval" | "sporadic" - transaction_type?: "business" | "personal" - } - setup_future_usage?: "" | "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" - } - | "" - affirm?: - | { - capture_method?: "" | "manual" - preferred_locale?: string - setup_future_usage?: "none" - } - | "" - afterpay_clearpay?: - | { - capture_method?: "" | "manual" - reference?: string - setup_future_usage?: "none" - } - | "" - alipay?: - | { - setup_future_usage?: "" | "none" | "off_session" - } - | "" - alma?: - | { - capture_method?: "" | "manual" - } - | "" - amazon_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - au_becs_debit?: - | { - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - bacs_debit?: - | { - mandate_options?: EmptyObject - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - bancontact?: - | { - preferred_language?: "de" | "en" | "fr" | "nl" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - blik?: - | { - code?: string - setup_future_usage?: "" | "none" - } - | "" - boleto?: - | { - expires_after_days?: number - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - card?: - | { - capture_method?: "" | "manual" - cvc_token?: string - installments?: { - enabled?: boolean - plan?: - | { - count?: number - interval?: "month" - type: "fixed_count" + | undefined + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + custom_mandate_url?: (string | "") | undefined + interval_description?: string | undefined + payment_schedule?: + | ("combined" | "interval" | "sporadic") + | undefined + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + affirm?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: string | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + afterpay_clearpay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + reference?: string | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + alipay?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + alma?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + amazon_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + au_becs_debit?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + bacs_debit?: + | ( + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + blik?: + | ( + | { + code?: string | undefined + setup_future_usage?: ("" | "none") | undefined + } + | "" + ) + | undefined + boleto?: + | ( + | { + expires_after_days?: number | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + capture_method?: ("" | "manual") | undefined + cvc_token?: string | undefined + installments?: + | { + enabled?: boolean | undefined + plan?: + | ( + | { + count?: number | undefined + interval?: "month" | undefined + type: "fixed_count" + } + | "" + ) + | undefined + } + | undefined + mandate_options?: + | { + amount: number + amount_type: "fixed" | "maximum" + description?: string | undefined + end_date?: number | undefined + interval: + | "day" + | "month" + | "sporadic" + | "week" + | "year" + interval_count?: number | undefined + reference: string + start_date: number + supported_types?: "india"[] | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_extended_authorization?: + | ("if_available" | "never") + | undefined + request_incremental_authorization?: + | ("if_available" | "never") + | undefined + request_multicapture?: + | ("if_available" | "never") + | undefined + request_overcapture?: + | ("if_available" | "never") + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + require_cvc_recollection?: boolean | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + statement_descriptor_suffix_kana?: + | (string | "") + | undefined + statement_descriptor_suffix_kanji?: + | (string | "") + | undefined + three_d_secure?: + | { + ares_trans_status?: + | ("A" | "C" | "I" | "N" | "R" | "U" | "Y") + | undefined + cryptogram: string + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07") + | undefined + exemption_indicator?: + | ("low_risk" | "none") + | undefined + network_options?: + | { + cartes_bancaires?: + | { + cb_avalgo: + | "0" + | "1" + | "2" + | "3" + | "4" + | "A" + cb_exemption?: string | undefined + cb_score?: number | undefined + } + | undefined + } + | undefined + requestor_challenge_indicator?: string | undefined + transaction_id: string + version: "1.0.2" | "2.1.0" | "2.2.0" + } + | undefined + } + | "" + ) + | undefined + card_present?: + | ( + | { + request_extended_authorization?: boolean | undefined + request_incremental_authorization_support?: + | boolean + | undefined + routing?: + | { + requested_priority?: + | ("domestic" | "international") + | undefined + } + | undefined + } + | "" + ) + | undefined + cashapp?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + requested_address_types?: + | ( + | "aba" + | "iban" + | "sepa" + | "sort_code" + | "spei" + | "swift" + | "zengin" + )[] + | undefined + type: + | "eu_bank_transfer" + | "gb_bank_transfer" + | "jp_bank_transfer" + | "mx_bank_transfer" + | "us_bank_transfer" + } + | undefined + funding_type?: "bank_transfer" | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + eps?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + fpx?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + giropay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + grabpay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + ideal?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + interac_present?: (EmptyObject | "") | undefined + kakao_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + klarna?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: + | ( + | "cs-CZ" + | "da-DK" + | "de-AT" + | "de-CH" + | "de-DE" + | "el-GR" + | "en-AT" + | "en-AU" + | "en-BE" + | "en-CA" + | "en-CH" + | "en-CZ" + | "en-DE" + | "en-DK" + | "en-ES" + | "en-FI" + | "en-FR" + | "en-GB" + | "en-GR" + | "en-IE" + | "en-IT" + | "en-NL" + | "en-NO" + | "en-NZ" + | "en-PL" + | "en-PT" + | "en-RO" + | "en-SE" + | "en-US" + | "es-ES" + | "es-US" + | "fi-FI" + | "fr-BE" + | "fr-CA" + | "fr-CH" + | "fr-FR" + | "it-CH" + | "it-IT" + | "nb-NO" + | "nl-BE" + | "nl-NL" + | "pl-PL" + | "pt-PT" + | "ro-RO" + | "sv-FI" + | "sv-SE" + ) + | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + konbini?: + | ( + | { + confirmation_number?: (string | "") | undefined + expires_after_days?: (number | "") | undefined + expires_at?: (number | "") | undefined + product_description?: (string | "") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + kr_card?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + link?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + mobilepay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + multibanco?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + naver_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + oxxo?: + | ( + | { + expires_after_days?: number | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + p24?: + | ( + | { + setup_future_usage?: "none" | undefined + tos_shown_and_accepted?: boolean | undefined + } + | "" + ) + | undefined + payco?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + paynow?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + paypal?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: + | ( + | "cs-CZ" + | "da-DK" + | "de-AT" + | "de-DE" + | "de-LU" + | "el-GR" + | "en-GB" + | "en-US" + | "es-ES" + | "fi-FI" + | "fr-BE" + | "fr-FR" + | "fr-LU" + | "hu-HU" + | "it-IT" + | "nl-BE" + | "nl-NL" + | "pl-PL" + | "pt-PT" + | "sk-SK" + | "sv-SE" + ) + | undefined + reference?: string | undefined + risk_correlation_id?: string | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + pix?: + | ( + | { + expires_after_seconds?: number | undefined + expires_at?: number | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + promptpay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + revolut_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + samsung_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + sepa_debit?: + | ( + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined } | "" - } - mandate_options?: { - amount: number - amount_type: "fixed" | "maximum" - description?: string - end_date?: number - interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number - reference: string - start_date: number - supported_types?: "india"[] - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_extended_authorization?: "if_available" | "never" - request_incremental_authorization?: "if_available" | "never" - request_multicapture?: "if_available" | "never" - request_overcapture?: "if_available" | "never" - request_three_d_secure?: "any" | "automatic" | "challenge" - require_cvc_recollection?: boolean - setup_future_usage?: "" | "none" | "off_session" | "on_session" - statement_descriptor_suffix_kana?: string | "" - statement_descriptor_suffix_kanji?: string | "" - three_d_secure?: { - ares_trans_status?: "A" | "C" | "I" | "N" | "R" | "U" | "Y" - cryptogram: string - electronic_commerce_indicator?: - | "01" - | "02" - | "05" - | "06" - | "07" - exemption_indicator?: "low_risk" | "none" - network_options?: { - cartes_bancaires?: { - cb_avalgo: "0" | "1" | "2" | "3" | "4" | "A" - cb_exemption?: string - cb_score?: number - } - } - requestor_challenge_indicator?: string - transaction_id: string - version: "1.0.2" | "2.1.0" | "2.2.0" - } - } - | "" - card_present?: - | { - request_extended_authorization?: boolean - request_incremental_authorization_support?: boolean - routing?: { - requested_priority?: "domestic" | "international" - } - } - | "" - cashapp?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string - } - requested_address_types?: ( - | "aba" - | "iban" - | "sepa" - | "sort_code" - | "spei" - | "swift" - | "zengin" - )[] - type: - | "eu_bank_transfer" - | "gb_bank_transfer" - | "jp_bank_transfer" - | "mx_bank_transfer" - | "us_bank_transfer" - } - funding_type?: "bank_transfer" - setup_future_usage?: "none" - } - | "" - eps?: - | { - setup_future_usage?: "none" - } - | "" - fpx?: - | { - setup_future_usage?: "none" - } - | "" - giropay?: - | { - setup_future_usage?: "none" - } - | "" - grabpay?: - | { - setup_future_usage?: "none" - } - | "" - ideal?: - | { - setup_future_usage?: "" | "none" | "off_session" - } - | "" - interac_present?: EmptyObject | "" - kakao_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - klarna?: - | { - capture_method?: "" | "manual" - preferred_locale?: - | "cs-CZ" - | "da-DK" - | "de-AT" - | "de-CH" - | "de-DE" - | "el-GR" - | "en-AT" - | "en-AU" - | "en-BE" - | "en-CA" - | "en-CH" - | "en-CZ" - | "en-DE" - | "en-DK" - | "en-ES" - | "en-FI" - | "en-FR" - | "en-GB" - | "en-GR" - | "en-IE" - | "en-IT" - | "en-NL" - | "en-NO" - | "en-NZ" - | "en-PL" - | "en-PT" - | "en-RO" - | "en-SE" - | "en-US" - | "es-ES" - | "es-US" - | "fi-FI" - | "fr-BE" - | "fr-CA" - | "fr-CH" - | "fr-FR" - | "it-CH" - | "it-IT" - | "nb-NO" - | "nl-BE" - | "nl-NL" - | "pl-PL" - | "pt-PT" - | "ro-RO" - | "sv-FI" - | "sv-SE" - setup_future_usage?: "none" - } - | "" - konbini?: - | { - confirmation_number?: string | "" - expires_after_days?: number | "" - expires_at?: number | "" - product_description?: string | "" - setup_future_usage?: "none" - } - | "" - kr_card?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - link?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - mobilepay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "none" - } - | "" - multibanco?: - | { - setup_future_usage?: "none" - } - | "" - naver_pay?: - | { - capture_method?: "" | "manual" - } - | "" - oxxo?: - | { - expires_after_days?: number - setup_future_usage?: "none" - } - | "" - p24?: - | { - setup_future_usage?: "none" - tos_shown_and_accepted?: boolean - } - | "" - payco?: - | { - capture_method?: "" | "manual" - } - | "" - paynow?: - | { - setup_future_usage?: "none" - } - | "" - paypal?: - | { - capture_method?: "" | "manual" - preferred_locale?: - | "cs-CZ" - | "da-DK" - | "de-AT" - | "de-DE" - | "de-LU" - | "el-GR" - | "en-GB" - | "en-US" - | "es-ES" - | "fi-FI" - | "fr-BE" - | "fr-FR" - | "fr-LU" - | "hu-HU" - | "it-IT" - | "nl-BE" - | "nl-NL" - | "pl-PL" - | "pt-PT" - | "sk-SK" - | "sv-SE" - reference?: string - risk_correlation_id?: string - setup_future_usage?: "" | "none" | "off_session" - } - | "" - pix?: - | { - expires_after_seconds?: number - expires_at?: number - setup_future_usage?: "none" - } - | "" - promptpay?: - | { - setup_future_usage?: "none" - } - | "" - revolut_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - samsung_pay?: - | { - capture_method?: "" | "manual" - } - | "" - sepa_debit?: - | { - mandate_options?: EmptyObject - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - sofort?: - | { - preferred_language?: - | "" - | "de" - | "en" - | "es" - | "fr" - | "it" - | "nl" - | "pl" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - swish?: - | { - reference?: string | "" - setup_future_usage?: "none" - } - | "" - twint?: - | { - setup_future_usage?: "none" - } - | "" - us_bank_account?: - | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string - } - mandate_options?: { - collection_method?: "" | "paper" - } - networks?: { - requested?: ("ach" | "us_domestic_wire")[] - } - preferred_settlement_speed?: "" | "fastest" | "standard" - setup_future_usage?: "" | "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" - } - | "" - wechat_pay?: - | { - app_id?: string - client: "android" | "ios" | "web" - setup_future_usage?: "none" - } - | "" - zip?: - | { - setup_future_usage?: "none" - } - | "" - } - payment_method_types?: string[] - radar_options?: { - session?: string - } - receipt_email?: string - return_url?: string - setup_future_usage?: "off_session" | "on_session" - shipping?: { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name: string - phone?: string - tracking_number?: string - } - statement_descriptor?: string - statement_descriptor_suffix?: string - transfer_data?: { - amount?: number - destination: string - } - transfer_group?: string - use_stripe_sdk?: boolean - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/payment_intents` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getPaymentIntentsSearch( - p: { - expand?: string[] - limit?: number - page?: string - query: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_payment_intent[] - has_more: boolean - next_page?: string | null - object: "search_result" - total_count?: number - url: string - }> - > { - const url = `/v1/payment_intents/search` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ - expand: p["expand"], - limit: p["limit"], - page: p["page"], - query: p["query"], - }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getPaymentIntentsIntent( - p: { - clientSecret?: string - expand?: string[] - intent: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/payment_intents/${p["intent"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ - client_secret: p["clientSecret"], - expand: p["expand"], - }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postPaymentIntentsIntent( - p: { - intent: string - requestBody?: { - amount?: number - application_fee_amount?: number | "" - capture_method?: "automatic" | "automatic_async" | "manual" - currency?: string - customer?: string - description?: string - expand?: string[] - metadata?: - | { - [key: string]: string | undefined - } - | "" - payment_method?: string - payment_method_configuration?: string - payment_method_data?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } - cashapp?: EmptyObject - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number - } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject - type: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject - } - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - custom_mandate_url?: string | "" - interval_description?: string - payment_schedule?: "combined" | "interval" | "sporadic" - transaction_type?: "business" | "personal" - } - setup_future_usage?: "" | "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" - } - | "" - affirm?: - | { - capture_method?: "" | "manual" - preferred_locale?: string - setup_future_usage?: "none" - } - | "" - afterpay_clearpay?: - | { - capture_method?: "" | "manual" - reference?: string - setup_future_usage?: "none" - } - | "" - alipay?: - | { - setup_future_usage?: "" | "none" | "off_session" - } - | "" - alma?: - | { - capture_method?: "" | "manual" - } - | "" - amazon_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - au_becs_debit?: - | { - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - bacs_debit?: - | { - mandate_options?: EmptyObject - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - bancontact?: - | { - preferred_language?: "de" | "en" | "fr" | "nl" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - blik?: - | { - code?: string - setup_future_usage?: "" | "none" - } - | "" - boleto?: - | { - expires_after_days?: number - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - card?: - | { - capture_method?: "" | "manual" - cvc_token?: string - installments?: { - enabled?: boolean - plan?: - | { - count?: number - interval?: "month" - type: "fixed_count" + ) + | undefined + sofort?: + | ( + | { + preferred_language?: + | ( + | "" + | "de" + | "en" + | "es" + | "fr" + | "it" + | "nl" + | "pl" + ) + | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + swish?: + | ( + | { + reference?: (string | "") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + twint?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ("balances" | "ownership" | "transactions")[] + | undefined + return_url?: string | undefined + } + | undefined + mandate_options?: + | { + collection_method?: ("" | "paper") | undefined + } + | undefined + networks?: + | { + requested?: + | ("ach" | "us_domestic_wire")[] + | undefined + } + | undefined + preferred_settlement_speed?: + | ("" | "fastest" | "standard") + | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined } | "" - } - mandate_options?: { - amount: number - amount_type: "fixed" | "maximum" - description?: string - end_date?: number - interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number - reference: string - start_date: number - supported_types?: "india"[] - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_extended_authorization?: "if_available" | "never" - request_incremental_authorization?: "if_available" | "never" - request_multicapture?: "if_available" | "never" - request_overcapture?: "if_available" | "never" - request_three_d_secure?: "any" | "automatic" | "challenge" - require_cvc_recollection?: boolean - setup_future_usage?: "" | "none" | "off_session" | "on_session" - statement_descriptor_suffix_kana?: string | "" - statement_descriptor_suffix_kanji?: string | "" - three_d_secure?: { - ares_trans_status?: "A" | "C" | "I" | "N" | "R" | "U" | "Y" - cryptogram: string - electronic_commerce_indicator?: - | "01" - | "02" - | "05" - | "06" - | "07" - exemption_indicator?: "low_risk" | "none" - network_options?: { - cartes_bancaires?: { - cb_avalgo: "0" | "1" | "2" | "3" | "4" | "A" - cb_exemption?: string - cb_score?: number - } - } - requestor_challenge_indicator?: string - transaction_id: string - version: "1.0.2" | "2.1.0" | "2.2.0" - } - } - | "" - card_present?: - | { - request_extended_authorization?: boolean - request_incremental_authorization_support?: boolean - routing?: { - requested_priority?: "domestic" | "international" - } - } - | "" - cashapp?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string + ) + | undefined + wechat_pay?: + | ( + | { + app_id?: string | undefined + client: "android" | "ios" | "web" + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + zip?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + } + | undefined + payment_method_types?: string[] | undefined + receipt_email?: (string | "") | undefined + setup_future_usage?: ("" | "off_session" | "on_session") | undefined + shipping?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined } - requested_address_types?: ( - | "aba" - | "iban" - | "sepa" - | "sort_code" - | "spei" - | "swift" - | "zengin" - )[] - type: - | "eu_bank_transfer" - | "gb_bank_transfer" - | "jp_bank_transfer" - | "mx_bank_transfer" - | "us_bank_transfer" - } - funding_type?: "bank_transfer" - setup_future_usage?: "none" - } - | "" - eps?: - | { - setup_future_usage?: "none" - } - | "" - fpx?: - | { - setup_future_usage?: "none" - } - | "" - giropay?: - | { - setup_future_usage?: "none" - } - | "" - grabpay?: - | { - setup_future_usage?: "none" - } - | "" - ideal?: - | { - setup_future_usage?: "" | "none" | "off_session" - } - | "" - interac_present?: EmptyObject | "" - kakao_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - klarna?: - | { - capture_method?: "" | "manual" - preferred_locale?: - | "cs-CZ" - | "da-DK" - | "de-AT" - | "de-CH" - | "de-DE" - | "el-GR" - | "en-AT" - | "en-AU" - | "en-BE" - | "en-CA" - | "en-CH" - | "en-CZ" - | "en-DE" - | "en-DK" - | "en-ES" - | "en-FI" - | "en-FR" - | "en-GB" - | "en-GR" - | "en-IE" - | "en-IT" - | "en-NL" - | "en-NO" - | "en-NZ" - | "en-PL" - | "en-PT" - | "en-RO" - | "en-SE" - | "en-US" - | "es-ES" - | "es-US" - | "fi-FI" - | "fr-BE" - | "fr-CA" - | "fr-CH" - | "fr-FR" - | "it-CH" - | "it-IT" - | "nb-NO" - | "nl-BE" - | "nl-NL" - | "pl-PL" - | "pt-PT" - | "ro-RO" - | "sv-FI" - | "sv-SE" - setup_future_usage?: "none" - } - | "" - konbini?: - | { - confirmation_number?: string | "" - expires_after_days?: number | "" - expires_at?: number | "" - product_description?: string | "" - setup_future_usage?: "none" - } - | "" - kr_card?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - link?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - mobilepay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "none" - } - | "" - multibanco?: - | { - setup_future_usage?: "none" - } - | "" - naver_pay?: - | { - capture_method?: "" | "manual" - } - | "" - oxxo?: - | { - expires_after_days?: number - setup_future_usage?: "none" - } - | "" - p24?: - | { - setup_future_usage?: "none" - tos_shown_and_accepted?: boolean - } - | "" - payco?: - | { - capture_method?: "" | "manual" - } - | "" - paynow?: - | { - setup_future_usage?: "none" - } - | "" - paypal?: - | { - capture_method?: "" | "manual" - preferred_locale?: - | "cs-CZ" - | "da-DK" - | "de-AT" - | "de-DE" - | "de-LU" - | "el-GR" - | "en-GB" - | "en-US" - | "es-ES" - | "fi-FI" - | "fr-BE" - | "fr-FR" - | "fr-LU" - | "hu-HU" - | "it-IT" - | "nl-BE" - | "nl-NL" - | "pl-PL" - | "pt-PT" - | "sk-SK" - | "sv-SE" - reference?: string - risk_correlation_id?: string - setup_future_usage?: "" | "none" | "off_session" - } - | "" - pix?: - | { - expires_after_seconds?: number - expires_at?: number - setup_future_usage?: "none" - } - | "" - promptpay?: - | { - setup_future_usage?: "none" - } - | "" - revolut_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - samsung_pay?: - | { - capture_method?: "" | "manual" - } - | "" - sepa_debit?: - | { - mandate_options?: EmptyObject - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - sofort?: - | { - preferred_language?: - | "" - | "de" - | "en" - | "es" - | "fr" - | "it" - | "nl" - | "pl" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - swish?: - | { - reference?: string | "" - setup_future_usage?: "none" - } - | "" - twint?: - | { - setup_future_usage?: "none" - } - | "" - us_bank_account?: - | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string - } - mandate_options?: { - collection_method?: "" | "paper" - } - networks?: { - requested?: ("ach" | "us_domestic_wire")[] + carrier?: string | undefined + name: string + phone?: string | undefined + tracking_number?: string | undefined } - preferred_settlement_speed?: "" | "fastest" | "standard" - setup_future_usage?: "" | "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" - } - | "" - wechat_pay?: - | { - app_id?: string - client: "android" | "ios" | "web" - setup_future_usage?: "none" - } - | "" - zip?: - | { - setup_future_usage?: "none" - } - | "" - } - payment_method_types?: string[] - receipt_email?: string | "" - setup_future_usage?: "" | "off_session" | "on_session" - shipping?: + | "" + ) + | undefined + statement_descriptor?: string | undefined + statement_descriptor_suffix?: string | undefined + transfer_data?: | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name: string - phone?: string - tracking_number?: string - } - | "" - statement_descriptor?: string - statement_descriptor_suffix?: string - transfer_data?: { - amount?: number - } - transfer_group?: string + amount?: number | undefined + } + | undefined + transfer_group?: string | undefined } }, timeout?: number, @@ -21434,9 +24582,9 @@ export class StripeApi extends AbstractAxiosClient { p: { intent: string requestBody?: { - amount?: number - currency?: string - expand?: string[] + amount?: number | undefined + currency?: string | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -21464,11 +24612,9 @@ export class StripeApi extends AbstractAxiosClient { intent: string requestBody?: { cancellation_reason?: - | "abandoned" - | "duplicate" - | "fraudulent" - | "requested_by_customer" - expand?: string[] + | ("abandoned" | "duplicate" | "fraudulent" | "requested_by_customer") + | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -21495,20 +24641,25 @@ export class StripeApi extends AbstractAxiosClient { p: { intent: string requestBody?: { - amount_to_capture?: number - application_fee_amount?: number - expand?: string[] - final_capture?: boolean + amount_to_capture?: number | undefined + application_fee_amount?: number | undefined + expand?: string[] | undefined + final_capture?: boolean | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + statement_descriptor?: string | undefined + statement_descriptor_suffix?: string | undefined + transfer_data?: | { - [key: string]: string | undefined + amount?: number | undefined } - | "" - statement_descriptor?: string - statement_descriptor_suffix?: string - transfer_data?: { - amount?: number - } + | undefined } }, timeout?: number, @@ -21535,751 +24686,1076 @@ export class StripeApi extends AbstractAxiosClient { p: { intent: string requestBody?: { - capture_method?: "automatic" | "automatic_async" | "manual" - client_secret?: string - confirmation_token?: string - error_on_requires_action?: boolean - expand?: string[] - mandate?: string + capture_method?: + | ("automatic" | "automatic_async" | "manual") + | undefined + client_secret?: string | undefined + confirmation_token?: string | undefined + error_on_requires_action?: boolean | undefined + expand?: string[] | undefined + mandate?: string | undefined mandate_data?: - | { - customer_acceptance: { - accepted_at?: number - offline?: EmptyObject - online?: { - ip_address: string - user_agent: string - } - type: "offline" | "online" - } - } - | "" - | { - customer_acceptance: { - online: { - ip_address?: string - user_agent?: string - } - type: "online" - } - } - off_session?: boolean | "one_off" | "recurring" - payment_method?: string - payment_method_data?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: + | ( | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string + customer_acceptance: { + accepted_at?: number | undefined + offline?: EmptyObject | undefined + online?: + | { + ip_address: string + user_agent: string + } + | undefined + type: "offline" | "online" + } } | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } - cashapp?: EmptyObject - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number - } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject - type: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject - } - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - custom_mandate_url?: string | "" - interval_description?: string - payment_schedule?: "combined" | "interval" | "sporadic" - transaction_type?: "business" | "personal" + | { + customer_acceptance: { + online: { + ip_address?: string | undefined + user_agent?: string | undefined + } + type: "online" + } } - setup_future_usage?: "" | "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" - } - | "" - affirm?: - | { - capture_method?: "" | "manual" - preferred_locale?: string - setup_future_usage?: "none" - } - | "" - afterpay_clearpay?: - | { - capture_method?: "" | "manual" - reference?: string - setup_future_usage?: "none" - } - | "" - alipay?: - | { - setup_future_usage?: "" | "none" | "off_session" - } - | "" - alma?: - | { - capture_method?: "" | "manual" - } - | "" - amazon_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - au_becs_debit?: - | { - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - bacs_debit?: - | { - mandate_options?: EmptyObject - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - bancontact?: - | { - preferred_language?: "de" | "en" | "fr" | "nl" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - blik?: - | { - code?: string - setup_future_usage?: "" | "none" - } - | "" - boleto?: - | { - expires_after_days?: number - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - card?: - | { - capture_method?: "" | "manual" - cvc_token?: string - installments?: { - enabled?: boolean - plan?: - | { - count?: number - interval?: "month" - type: "fixed_count" + ) + | undefined + off_session?: (boolean | "one_off" | "recurring") | undefined + payment_method?: string | undefined + payment_method_data?: + | { + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined + cashapp?: EmptyObject | undefined + customer_balance?: EmptyObject | undefined + eps?: + | { + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined + type: + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined + } + | undefined + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + custom_mandate_url?: (string | "") | undefined + interval_description?: string | undefined + payment_schedule?: + | ("combined" | "interval" | "sporadic") + | undefined + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined } | "" - } - mandate_options?: { - amount: number - amount_type: "fixed" | "maximum" - description?: string - end_date?: number - interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number - reference: string - start_date: number - supported_types?: "india"[] - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_extended_authorization?: "if_available" | "never" - request_incremental_authorization?: "if_available" | "never" - request_multicapture?: "if_available" | "never" - request_overcapture?: "if_available" | "never" - request_three_d_secure?: "any" | "automatic" | "challenge" - require_cvc_recollection?: boolean - setup_future_usage?: "" | "none" | "off_session" | "on_session" - statement_descriptor_suffix_kana?: string | "" - statement_descriptor_suffix_kanji?: string | "" - three_d_secure?: { - ares_trans_status?: "A" | "C" | "I" | "N" | "R" | "U" | "Y" - cryptogram: string - electronic_commerce_indicator?: - | "01" - | "02" - | "05" - | "06" - | "07" - exemption_indicator?: "low_risk" | "none" - network_options?: { - cartes_bancaires?: { - cb_avalgo: "0" | "1" | "2" | "3" | "4" | "A" - cb_exemption?: string - cb_score?: number - } - } - requestor_challenge_indicator?: string - transaction_id: string - version: "1.0.2" | "2.1.0" | "2.2.0" - } - } - | "" - card_present?: - | { - request_extended_authorization?: boolean - request_incremental_authorization_support?: boolean - routing?: { - requested_priority?: "domestic" | "international" - } - } - | "" - cashapp?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string - } - requested_address_types?: ( - | "aba" - | "iban" - | "sepa" - | "sort_code" - | "spei" - | "swift" - | "zengin" - )[] - type: - | "eu_bank_transfer" - | "gb_bank_transfer" - | "jp_bank_transfer" - | "mx_bank_transfer" - | "us_bank_transfer" - } - funding_type?: "bank_transfer" - setup_future_usage?: "none" - } - | "" - eps?: - | { - setup_future_usage?: "none" - } - | "" - fpx?: - | { - setup_future_usage?: "none" - } - | "" - giropay?: - | { - setup_future_usage?: "none" - } - | "" - grabpay?: - | { - setup_future_usage?: "none" - } - | "" - ideal?: - | { - setup_future_usage?: "" | "none" | "off_session" - } - | "" - interac_present?: EmptyObject | "" - kakao_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - klarna?: - | { - capture_method?: "" | "manual" - preferred_locale?: - | "cs-CZ" - | "da-DK" - | "de-AT" - | "de-CH" - | "de-DE" - | "el-GR" - | "en-AT" - | "en-AU" - | "en-BE" - | "en-CA" - | "en-CH" - | "en-CZ" - | "en-DE" - | "en-DK" - | "en-ES" - | "en-FI" - | "en-FR" - | "en-GB" - | "en-GR" - | "en-IE" - | "en-IT" - | "en-NL" - | "en-NO" - | "en-NZ" - | "en-PL" - | "en-PT" - | "en-RO" - | "en-SE" - | "en-US" - | "es-ES" - | "es-US" - | "fi-FI" - | "fr-BE" - | "fr-CA" - | "fr-CH" - | "fr-FR" - | "it-CH" - | "it-IT" - | "nb-NO" - | "nl-BE" - | "nl-NL" - | "pl-PL" - | "pt-PT" - | "ro-RO" - | "sv-FI" - | "sv-SE" - setup_future_usage?: "none" - } - | "" - konbini?: - | { - confirmation_number?: string | "" - expires_after_days?: number | "" - expires_at?: number | "" - product_description?: string | "" - setup_future_usage?: "none" - } - | "" - kr_card?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - link?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - mobilepay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "none" - } - | "" - multibanco?: - | { - setup_future_usage?: "none" - } - | "" - naver_pay?: - | { - capture_method?: "" | "manual" - } - | "" - oxxo?: - | { - expires_after_days?: number - setup_future_usage?: "none" - } - | "" - p24?: - | { - setup_future_usage?: "none" - tos_shown_and_accepted?: boolean - } - | "" - payco?: - | { - capture_method?: "" | "manual" - } - | "" - paynow?: - | { - setup_future_usage?: "none" - } - | "" - paypal?: - | { - capture_method?: "" | "manual" - preferred_locale?: - | "cs-CZ" - | "da-DK" - | "de-AT" - | "de-DE" - | "de-LU" - | "el-GR" - | "en-GB" - | "en-US" - | "es-ES" - | "fi-FI" - | "fr-BE" - | "fr-FR" - | "fr-LU" - | "hu-HU" - | "it-IT" - | "nl-BE" - | "nl-NL" - | "pl-PL" - | "pt-PT" - | "sk-SK" - | "sv-SE" - reference?: string - risk_correlation_id?: string - setup_future_usage?: "" | "none" | "off_session" - } - | "" - pix?: - | { - expires_after_seconds?: number - expires_at?: number - setup_future_usage?: "none" - } - | "" - promptpay?: - | { - setup_future_usage?: "none" - } - | "" - revolut_pay?: - | { - capture_method?: "" | "manual" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - samsung_pay?: - | { - capture_method?: "" | "manual" - } - | "" - sepa_debit?: - | { - mandate_options?: EmptyObject - setup_future_usage?: "" | "none" | "off_session" | "on_session" - } - | "" - sofort?: - | { - preferred_language?: - | "" - | "de" - | "en" - | "es" - | "fr" - | "it" - | "nl" - | "pl" - setup_future_usage?: "" | "none" | "off_session" - } - | "" - swish?: - | { - reference?: string | "" - setup_future_usage?: "none" - } - | "" - twint?: - | { - setup_future_usage?: "none" - } - | "" - us_bank_account?: - | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string - } - mandate_options?: { - collection_method?: "" | "paper" - } - networks?: { - requested?: ("ach" | "us_domestic_wire")[] - } - preferred_settlement_speed?: "" | "fastest" | "standard" - setup_future_usage?: "" | "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" - } - | "" - wechat_pay?: - | { - app_id?: string - client: "android" | "ios" | "web" - setup_future_usage?: "none" - } - | "" - zip?: - | { - setup_future_usage?: "none" - } - | "" - } - payment_method_types?: string[] - radar_options?: { - session?: string - } - receipt_email?: string | "" - return_url?: string - setup_future_usage?: "" | "off_session" | "on_session" - shipping?: + ) + | undefined + affirm?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: string | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + afterpay_clearpay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + reference?: string | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + alipay?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + alma?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + amazon_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + au_becs_debit?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + bacs_debit?: + | ( + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + blik?: + | ( + | { + code?: string | undefined + setup_future_usage?: ("" | "none") | undefined + } + | "" + ) + | undefined + boleto?: + | ( + | { + expires_after_days?: number | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + capture_method?: ("" | "manual") | undefined + cvc_token?: string | undefined + installments?: + | { + enabled?: boolean | undefined + plan?: + | ( + | { + count?: number | undefined + interval?: "month" | undefined + type: "fixed_count" + } + | "" + ) + | undefined + } + | undefined + mandate_options?: + | { + amount: number + amount_type: "fixed" | "maximum" + description?: string | undefined + end_date?: number | undefined + interval: + | "day" + | "month" + | "sporadic" + | "week" + | "year" + interval_count?: number | undefined + reference: string + start_date: number + supported_types?: "india"[] | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_extended_authorization?: + | ("if_available" | "never") + | undefined + request_incremental_authorization?: + | ("if_available" | "never") + | undefined + request_multicapture?: + | ("if_available" | "never") + | undefined + request_overcapture?: + | ("if_available" | "never") + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + require_cvc_recollection?: boolean | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + statement_descriptor_suffix_kana?: + | (string | "") + | undefined + statement_descriptor_suffix_kanji?: + | (string | "") + | undefined + three_d_secure?: + | { + ares_trans_status?: + | ("A" | "C" | "I" | "N" | "R" | "U" | "Y") + | undefined + cryptogram: string + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07") + | undefined + exemption_indicator?: + | ("low_risk" | "none") + | undefined + network_options?: + | { + cartes_bancaires?: + | { + cb_avalgo: + | "0" + | "1" + | "2" + | "3" + | "4" + | "A" + cb_exemption?: string | undefined + cb_score?: number | undefined + } + | undefined + } + | undefined + requestor_challenge_indicator?: string | undefined + transaction_id: string + version: "1.0.2" | "2.1.0" | "2.2.0" + } + | undefined + } + | "" + ) + | undefined + card_present?: + | ( + | { + request_extended_authorization?: boolean | undefined + request_incremental_authorization_support?: + | boolean + | undefined + routing?: + | { + requested_priority?: + | ("domestic" | "international") + | undefined + } + | undefined + } + | "" + ) + | undefined + cashapp?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + requested_address_types?: + | ( + | "aba" + | "iban" + | "sepa" + | "sort_code" + | "spei" + | "swift" + | "zengin" + )[] + | undefined + type: + | "eu_bank_transfer" + | "gb_bank_transfer" + | "jp_bank_transfer" + | "mx_bank_transfer" + | "us_bank_transfer" + } + | undefined + funding_type?: "bank_transfer" | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + eps?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + fpx?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + giropay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + grabpay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + ideal?: + | ( + | { + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + interac_present?: (EmptyObject | "") | undefined + kakao_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + klarna?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: + | ( + | "cs-CZ" + | "da-DK" + | "de-AT" + | "de-CH" + | "de-DE" + | "el-GR" + | "en-AT" + | "en-AU" + | "en-BE" + | "en-CA" + | "en-CH" + | "en-CZ" + | "en-DE" + | "en-DK" + | "en-ES" + | "en-FI" + | "en-FR" + | "en-GB" + | "en-GR" + | "en-IE" + | "en-IT" + | "en-NL" + | "en-NO" + | "en-NZ" + | "en-PL" + | "en-PT" + | "en-RO" + | "en-SE" + | "en-US" + | "es-ES" + | "es-US" + | "fi-FI" + | "fr-BE" + | "fr-CA" + | "fr-CH" + | "fr-FR" + | "it-CH" + | "it-IT" + | "nb-NO" + | "nl-BE" + | "nl-NL" + | "pl-PL" + | "pt-PT" + | "ro-RO" + | "sv-FI" + | "sv-SE" + ) + | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + konbini?: + | ( + | { + confirmation_number?: (string | "") | undefined + expires_after_days?: (number | "") | undefined + expires_at?: (number | "") | undefined + product_description?: (string | "") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + kr_card?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + link?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + mobilepay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + multibanco?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + naver_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + oxxo?: + | ( + | { + expires_after_days?: number | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + p24?: + | ( + | { + setup_future_usage?: "none" | undefined + tos_shown_and_accepted?: boolean | undefined + } + | "" + ) + | undefined + payco?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + paynow?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + paypal?: + | ( + | { + capture_method?: ("" | "manual") | undefined + preferred_locale?: + | ( + | "cs-CZ" + | "da-DK" + | "de-AT" + | "de-DE" + | "de-LU" + | "el-GR" + | "en-GB" + | "en-US" + | "es-ES" + | "fi-FI" + | "fr-BE" + | "fr-FR" + | "fr-LU" + | "hu-HU" + | "it-IT" + | "nl-BE" + | "nl-NL" + | "pl-PL" + | "pt-PT" + | "sk-SK" + | "sv-SE" + ) + | undefined + reference?: string | undefined + risk_correlation_id?: string | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + pix?: + | ( + | { + expires_after_seconds?: number | undefined + expires_at?: number | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + promptpay?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + revolut_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + samsung_pay?: + | ( + | { + capture_method?: ("" | "manual") | undefined + } + | "" + ) + | undefined + sepa_debit?: + | ( + | { + mandate_options?: EmptyObject | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + } + | "" + ) + | undefined + sofort?: + | ( + | { + preferred_language?: + | ( + | "" + | "de" + | "en" + | "es" + | "fr" + | "it" + | "nl" + | "pl" + ) + | undefined + setup_future_usage?: + | ("" | "none" | "off_session") + | undefined + } + | "" + ) + | undefined + swish?: + | ( + | { + reference?: (string | "") | undefined + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + twint?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ("balances" | "ownership" | "transactions")[] + | undefined + return_url?: string | undefined + } + | undefined + mandate_options?: + | { + collection_method?: ("" | "paper") | undefined + } + | undefined + networks?: + | { + requested?: + | ("ach" | "us_domestic_wire")[] + | undefined + } + | undefined + preferred_settlement_speed?: + | ("" | "fastest" | "standard") + | undefined + setup_future_usage?: + | ("" | "none" | "off_session" | "on_session") + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + wechat_pay?: + | ( + | { + app_id?: string | undefined + client: "android" | "ios" | "web" + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + zip?: + | ( + | { + setup_future_usage?: "none" | undefined + } + | "" + ) + | undefined + } + | undefined + payment_method_types?: string[] | undefined + radar_options?: | { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name: string - phone?: string - tracking_number?: string + session?: string | undefined } - | "" - use_stripe_sdk?: boolean + | undefined + receipt_email?: (string | "") | undefined + return_url?: string | undefined + setup_future_usage?: ("" | "off_session" | "on_session") | undefined + shipping?: + | ( + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + carrier?: string | undefined + name: string + phone?: string | undefined + tracking_number?: string | undefined + } + | "" + ) + | undefined + use_stripe_sdk?: boolean | undefined } }, timeout?: number, @@ -22307,16 +25783,20 @@ export class StripeApi extends AbstractAxiosClient { intent: string requestBody: { amount: number - application_fee_amount?: number - description?: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - statement_descriptor?: string - transfer_data?: { - amount?: number - } + application_fee_amount?: number | undefined + description?: string | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + statement_descriptor?: string | undefined + transfer_data?: + | { + amount?: number | undefined + } + | undefined } }, timeout?: number, @@ -22343,10 +25823,10 @@ export class StripeApi extends AbstractAxiosClient { p: { intent: string requestBody?: { - amounts?: number[] - client_secret?: string - descriptor_code?: string - expand?: string[] + amounts?: number[] | undefined + client_secret?: string | undefined + descriptor_code?: string | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -22415,630 +25895,198 @@ export class StripeApi extends AbstractAxiosClient { async postPaymentLinks( p: { requestBody: { - after_completion?: { - hosted_confirmation?: { - custom_message?: string - } - redirect?: { - url: string - } - type: "hosted_confirmation" | "redirect" - } - allow_promotion_codes?: boolean - application_fee_amount?: number - application_fee_percent?: number - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_address_collection?: "auto" | "required" - consent_collection?: { - payment_method_reuse_agreement?: { - position: "auto" | "hidden" - } - promotions?: "auto" | "none" - terms_of_service?: "none" | "required" - } - currency?: string - custom_fields?: { - dropdown?: { - options: { - label: string - value: string - }[] - } - key: string - label: { - custom: string - type: "custom" - } - numeric?: { - maximum_length?: number - minimum_length?: number - } - optional?: boolean - text?: { - maximum_length?: number - minimum_length?: number - } - type: "dropdown" | "numeric" | "text" - }[] - custom_text?: { - after_submit?: - | { - message: string - } - | "" - shipping_address?: - | { - message: string - } - | "" - submit?: - | { - message: string - } - | "" - terms_of_service_acceptance?: - | { - message: string - } - | "" - } - customer_creation?: "always" | "if_required" - expand?: string[] - inactive_message?: string - invoice_creation?: { - enabled: boolean - invoice_data?: { - account_tax_ids?: string[] | "" - custom_fields?: - | { - name: string - value: string - }[] - | "" - description?: string - footer?: string - issuer?: { - account?: string - type: "account" | "self" + after_completion?: + | { + hosted_confirmation?: + | { + custom_message?: string | undefined + } + | undefined + redirect?: + | { + url: string + } + | undefined + type: "hosted_confirmation" | "redirect" } - metadata?: - | { - [key: string]: string | undefined - } - | "" - rendering_options?: - | { - amount_tax_display?: - | "" - | "exclude_tax" - | "include_inclusive_tax" - } - | "" - } - } - line_items: { - adjustable_quantity?: { - enabled: boolean - maximum?: number - minimum?: number - } - price: string - quantity: number - }[] - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - payment_intent_data?: { - capture_method?: "automatic" | "automatic_async" | "manual" - description?: string - metadata?: { - [key: string]: string | undefined - } - setup_future_usage?: "off_session" | "on_session" - statement_descriptor?: string - statement_descriptor_suffix?: string - transfer_group?: string - } - payment_method_collection?: "always" | "if_required" - payment_method_types?: ( - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "card" - | "cashapp" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "klarna" - | "konbini" - | "link" - | "mobilepay" - | "multibanco" - | "oxxo" - | "p24" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - )[] - phone_number_collection?: { - enabled: boolean - } - restrictions?: { - completed_sessions: { - limit: number - } - } - shipping_address_collection?: { - allowed_countries: ( - | "AC" - | "AD" - | "AE" - | "AF" - | "AG" - | "AI" - | "AL" - | "AM" - | "AO" - | "AQ" - | "AR" - | "AT" - | "AU" - | "AW" - | "AX" - | "AZ" - | "BA" - | "BB" - | "BD" - | "BE" - | "BF" - | "BG" - | "BH" - | "BI" - | "BJ" - | "BL" - | "BM" - | "BN" - | "BO" - | "BQ" - | "BR" - | "BS" - | "BT" - | "BV" - | "BW" - | "BY" - | "BZ" - | "CA" - | "CD" - | "CF" - | "CG" - | "CH" - | "CI" - | "CK" - | "CL" - | "CM" - | "CN" - | "CO" - | "CR" - | "CV" - | "CW" - | "CY" - | "CZ" - | "DE" - | "DJ" - | "DK" - | "DM" - | "DO" - | "DZ" - | "EC" - | "EE" - | "EG" - | "EH" - | "ER" - | "ES" - | "ET" - | "FI" - | "FJ" - | "FK" - | "FO" - | "FR" - | "GA" - | "GB" - | "GD" - | "GE" - | "GF" - | "GG" - | "GH" - | "GI" - | "GL" - | "GM" - | "GN" - | "GP" - | "GQ" - | "GR" - | "GS" - | "GT" - | "GU" - | "GW" - | "GY" - | "HK" - | "HN" - | "HR" - | "HT" - | "HU" - | "ID" - | "IE" - | "IL" - | "IM" - | "IN" - | "IO" - | "IQ" - | "IS" - | "IT" - | "JE" - | "JM" - | "JO" - | "JP" - | "KE" - | "KG" - | "KH" - | "KI" - | "KM" - | "KN" - | "KR" - | "KW" - | "KY" - | "KZ" - | "LA" - | "LB" - | "LC" - | "LI" - | "LK" - | "LR" - | "LS" - | "LT" - | "LU" - | "LV" - | "LY" - | "MA" - | "MC" - | "MD" - | "ME" - | "MF" - | "MG" - | "MK" - | "ML" - | "MM" - | "MN" - | "MO" - | "MQ" - | "MR" - | "MS" - | "MT" - | "MU" - | "MV" - | "MW" - | "MX" - | "MY" - | "MZ" - | "NA" - | "NC" - | "NE" - | "NG" - | "NI" - | "NL" - | "NO" - | "NP" - | "NR" - | "NU" - | "NZ" - | "OM" - | "PA" - | "PE" - | "PF" - | "PG" - | "PH" - | "PK" - | "PL" - | "PM" - | "PN" - | "PR" - | "PS" - | "PT" - | "PY" - | "QA" - | "RE" - | "RO" - | "RS" - | "RU" - | "RW" - | "SA" - | "SB" - | "SC" - | "SE" - | "SG" - | "SH" - | "SI" - | "SJ" - | "SK" - | "SL" - | "SM" - | "SN" - | "SO" - | "SR" - | "SS" - | "ST" - | "SV" - | "SX" - | "SZ" - | "TA" - | "TC" - | "TD" - | "TF" - | "TG" - | "TH" - | "TJ" - | "TK" - | "TL" - | "TM" - | "TN" - | "TO" - | "TR" - | "TT" - | "TV" - | "TW" - | "TZ" - | "UA" - | "UG" - | "US" - | "UY" - | "UZ" - | "VA" - | "VC" - | "VE" - | "VG" - | "VN" - | "VU" - | "WF" - | "WS" - | "XK" - | "YE" - | "YT" - | "ZA" - | "ZM" - | "ZW" - | "ZZ" - )[] - } - shipping_options?: { - shipping_rate?: string - }[] - submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" - subscription_data?: { - description?: string - invoice_settings?: { - issuer?: { - account?: string - type: "account" | "self" + | undefined + allow_promotion_codes?: boolean | undefined + application_fee_amount?: number | undefined + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } - } - metadata?: { - [key: string]: string | undefined - } - trial_period_days?: number - trial_settings?: { - end_behavior: { - missing_payment_method: "cancel" | "create_invoice" | "pause" + | undefined + billing_address_collection?: ("auto" | "required") | undefined + consent_collection?: + | { + payment_method_reuse_agreement?: + | { + position: "auto" | "hidden" + } + | undefined + promotions?: ("auto" | "none") | undefined + terms_of_service?: ("none" | "required") | undefined } - } - } - tax_id_collection?: { - enabled: boolean - required?: "if_supported" | "never" - } - transfer_data?: { - amount?: number - destination: string - } - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/payment_links` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getPaymentLinksPaymentLink( - p: { - expand?: string[] - paymentLink: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/payment_links/${p["paymentLink"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postPaymentLinksPaymentLink( - p: { - paymentLink: string - requestBody?: { - active?: boolean - after_completion?: { - hosted_confirmation?: { - custom_message?: string - } - redirect?: { - url: string - } - type: "hosted_confirmation" | "redirect" - } - allow_promotion_codes?: boolean - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_address_collection?: "auto" | "required" + | undefined + currency?: string | undefined custom_fields?: | { - dropdown?: { - options: { - label: string - value: string - }[] - } + dropdown?: + | { + options: { + label: string + value: string + }[] + } + | undefined key: string label: { custom: string type: "custom" } - numeric?: { - maximum_length?: number - minimum_length?: number - } - optional?: boolean - text?: { - maximum_length?: number - minimum_length?: number - } + numeric?: + | { + maximum_length?: number | undefined + minimum_length?: number | undefined + } + | undefined + optional?: boolean | undefined + text?: + | { + maximum_length?: number | undefined + minimum_length?: number | undefined + } + | undefined type: "dropdown" | "numeric" | "text" }[] - | "" - custom_text?: { - after_submit?: - | { - message: string - } - | "" - shipping_address?: - | { - message: string - } - | "" - submit?: - | { - message: string - } - | "" - terms_of_service_acceptance?: - | { - message: string - } - | "" - } - customer_creation?: "always" | "if_required" - expand?: string[] - inactive_message?: string | "" - invoice_creation?: { - enabled: boolean - invoice_data?: { - account_tax_ids?: string[] | "" - custom_fields?: - | { - name: string - value: string - }[] - | "" - description?: string - footer?: string - issuer?: { - account?: string - type: "account" | "self" - } - metadata?: - | { - [key: string]: string | undefined - } - | "" - rendering_options?: - | { - amount_tax_display?: + | undefined + custom_text?: + | { + after_submit?: + | ( + | { + message: string + } + | "" + ) + | undefined + shipping_address?: + | ( + | { + message: string + } + | "" + ) + | undefined + submit?: + | ( + | { + message: string + } | "" - | "exclude_tax" - | "include_inclusive_tax" - } - | "" - } - } - line_items?: { - adjustable_quantity?: { - enabled: boolean - maximum?: number - minimum?: number - } - id: string - quantity?: number - }[] - metadata?: { - [key: string]: string | undefined - } - payment_intent_data?: { - description?: string | "" - metadata?: + ) + | undefined + terms_of_service_acceptance?: + | ( + | { + message: string + } + | "" + ) + | undefined + } + | undefined + customer_creation?: ("always" | "if_required") | undefined + expand?: string[] | undefined + inactive_message?: string | undefined + invoice_creation?: + | { + enabled: boolean + invoice_data?: + | { + account_tax_ids?: (string[] | "") | undefined + custom_fields?: + | ( + | { + name: string + value: string + }[] + | "" + ) + | undefined + description?: string | undefined + footer?: string | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + rendering_options?: + | ( + | { + amount_tax_display?: + | ("" | "exclude_tax" | "include_inclusive_tax") + | undefined + } + | "" + ) + | undefined + } + | undefined + } + | undefined + line_items: { + adjustable_quantity?: | { - [key: string]: string | undefined + enabled: boolean + maximum?: number | undefined + minimum?: number | undefined } - | "" - statement_descriptor?: string | "" - statement_descriptor_suffix?: string | "" - transfer_group?: string | "" - } - payment_method_collection?: "always" | "if_required" + | undefined + price: string + quantity: number + }[] + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + payment_intent_data?: + | { + capture_method?: + | ("automatic" | "automatic_async" | "manual") + | undefined + description?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + setup_future_usage?: ("off_session" | "on_session") | undefined + statement_descriptor?: string | undefined + statement_descriptor_suffix?: string | undefined + transfer_group?: string | undefined + } + | undefined + payment_method_collection?: ("always" | "if_required") | undefined payment_method_types?: | ( | "affirm" @@ -23076,14 +26124,19 @@ export class StripeApi extends AbstractAxiosClient { | "wechat_pay" | "zip" )[] - | "" + | undefined + phone_number_collection?: + | { + enabled: boolean + } + | undefined restrictions?: | { completed_sessions: { limit: number } } - | "" + | undefined shipping_address_collection?: | { allowed_countries: ( @@ -23326,38 +26379,64 @@ export class StripeApi extends AbstractAxiosClient { | "ZZ" )[] } - | "" - submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" - subscription_data?: { - invoice_settings?: { - issuer?: { - account?: string - type: "account" | "self" + | undefined + shipping_options?: + | { + shipping_rate?: string | undefined + }[] + | undefined + submit_type?: + | ("auto" | "book" | "donate" | "pay" | "subscribe") + | undefined + subscription_data?: + | { + description?: string | undefined + invoice_settings?: + | { + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + trial_period_days?: number | undefined + trial_settings?: + | { + end_behavior: { + missing_payment_method: + | "cancel" + | "create_invoice" + | "pause" + } + } + | undefined } - } - metadata?: - | { - [key: string]: string | undefined - } - | "" - trial_settings?: - | { - end_behavior: { - missing_payment_method: "cancel" | "create_invoice" | "pause" - } - } - | "" - } - tax_id_collection?: { - enabled: boolean - required?: "if_supported" | "never" - } + | undefined + tax_id_collection?: + | { + enabled: boolean + required?: ("if_supported" | "never") | undefined + } + | undefined + transfer_data?: + | { + amount?: number | undefined + destination: string + } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise> { - const url = `/v1/payment_links/${p["paymentLink"]}` + const url = `/v1/payment_links` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -23374,322 +26453,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getPaymentLinksPaymentLinkLineItems( + async getPaymentLinksPaymentLink( p: { - endingBefore?: string expand?: string[] - limit?: number paymentLink: string - startingAfter?: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_item[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/payment_links/${p["paymentLink"]}/line_items` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getPaymentMethodConfigurations( - p: { - application?: string | "" - endingBefore?: string - expand?: string[] - limit?: number - startingAfter?: string - requestBody?: EmptyObject - } = {}, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_payment_method_configuration[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/payment_method_configurations` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ - application: p["application"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postPaymentMethodConfigurations( - p: { - requestBody?: { - acss_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - affirm?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - afterpay_clearpay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - alipay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - alma?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - amazon_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - apple_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - apple_pay_later?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - au_becs_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - bacs_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - bancontact?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - blik?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - boleto?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - card?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - cartes_bancaires?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - cashapp?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - customer_balance?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - eps?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - expand?: string[] - fpx?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - giropay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - google_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - grabpay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - ideal?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - jcb?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - klarna?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - konbini?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - link?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - mobilepay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - multibanco?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - name?: string - oxxo?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - p24?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - parent?: string - paynow?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - paypal?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - promptpay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - revolut_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - sepa_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - sofort?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - swish?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - twint?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - us_bank_account?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - wechat_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - zip?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - } - } = {}, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/payment_method_configurations` + ): Promise> { + const url = `/v1/payment_links/${p["paymentLink"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "POST", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -23697,26 +26480,548 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getPaymentMethodConfigurationsConfiguration( + async postPaymentLinksPaymentLink( p: { - configuration: string - expand?: string[] - requestBody?: EmptyObject + paymentLink: string + requestBody?: { + active?: boolean | undefined + after_completion?: + | { + hosted_confirmation?: + | { + custom_message?: string | undefined + } + | undefined + redirect?: + | { + url: string + } + | undefined + type: "hosted_confirmation" | "redirect" + } + | undefined + allow_promotion_codes?: boolean | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_address_collection?: ("auto" | "required") | undefined + custom_fields?: + | ( + | { + dropdown?: + | { + options: { + label: string + value: string + }[] + } + | undefined + key: string + label: { + custom: string + type: "custom" + } + numeric?: + | { + maximum_length?: number | undefined + minimum_length?: number | undefined + } + | undefined + optional?: boolean | undefined + text?: + | { + maximum_length?: number | undefined + minimum_length?: number | undefined + } + | undefined + type: "dropdown" | "numeric" | "text" + }[] + | "" + ) + | undefined + custom_text?: + | { + after_submit?: + | ( + | { + message: string + } + | "" + ) + | undefined + shipping_address?: + | ( + | { + message: string + } + | "" + ) + | undefined + submit?: + | ( + | { + message: string + } + | "" + ) + | undefined + terms_of_service_acceptance?: + | ( + | { + message: string + } + | "" + ) + | undefined + } + | undefined + customer_creation?: ("always" | "if_required") | undefined + expand?: string[] | undefined + inactive_message?: (string | "") | undefined + invoice_creation?: + | { + enabled: boolean + invoice_data?: + | { + account_tax_ids?: (string[] | "") | undefined + custom_fields?: + | ( + | { + name: string + value: string + }[] + | "" + ) + | undefined + description?: string | undefined + footer?: string | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + rendering_options?: + | ( + | { + amount_tax_display?: + | ("" | "exclude_tax" | "include_inclusive_tax") + | undefined + } + | "" + ) + | undefined + } + | undefined + } + | undefined + line_items?: + | { + adjustable_quantity?: + | { + enabled: boolean + maximum?: number | undefined + minimum?: number | undefined + } + | undefined + id: string + quantity?: number | undefined + }[] + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + payment_intent_data?: + | { + description?: (string | "") | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + statement_descriptor?: (string | "") | undefined + statement_descriptor_suffix?: (string | "") | undefined + transfer_group?: (string | "") | undefined + } + | undefined + payment_method_collection?: ("always" | "if_required") | undefined + payment_method_types?: + | ( + | ( + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "card" + | "cashapp" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "klarna" + | "konbini" + | "link" + | "mobilepay" + | "multibanco" + | "oxxo" + | "p24" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + )[] + | "" + ) + | undefined + restrictions?: + | ( + | { + completed_sessions: { + limit: number + } + } + | "" + ) + | undefined + shipping_address_collection?: + | ( + | { + allowed_countries: ( + | "AC" + | "AD" + | "AE" + | "AF" + | "AG" + | "AI" + | "AL" + | "AM" + | "AO" + | "AQ" + | "AR" + | "AT" + | "AU" + | "AW" + | "AX" + | "AZ" + | "BA" + | "BB" + | "BD" + | "BE" + | "BF" + | "BG" + | "BH" + | "BI" + | "BJ" + | "BL" + | "BM" + | "BN" + | "BO" + | "BQ" + | "BR" + | "BS" + | "BT" + | "BV" + | "BW" + | "BY" + | "BZ" + | "CA" + | "CD" + | "CF" + | "CG" + | "CH" + | "CI" + | "CK" + | "CL" + | "CM" + | "CN" + | "CO" + | "CR" + | "CV" + | "CW" + | "CY" + | "CZ" + | "DE" + | "DJ" + | "DK" + | "DM" + | "DO" + | "DZ" + | "EC" + | "EE" + | "EG" + | "EH" + | "ER" + | "ES" + | "ET" + | "FI" + | "FJ" + | "FK" + | "FO" + | "FR" + | "GA" + | "GB" + | "GD" + | "GE" + | "GF" + | "GG" + | "GH" + | "GI" + | "GL" + | "GM" + | "GN" + | "GP" + | "GQ" + | "GR" + | "GS" + | "GT" + | "GU" + | "GW" + | "GY" + | "HK" + | "HN" + | "HR" + | "HT" + | "HU" + | "ID" + | "IE" + | "IL" + | "IM" + | "IN" + | "IO" + | "IQ" + | "IS" + | "IT" + | "JE" + | "JM" + | "JO" + | "JP" + | "KE" + | "KG" + | "KH" + | "KI" + | "KM" + | "KN" + | "KR" + | "KW" + | "KY" + | "KZ" + | "LA" + | "LB" + | "LC" + | "LI" + | "LK" + | "LR" + | "LS" + | "LT" + | "LU" + | "LV" + | "LY" + | "MA" + | "MC" + | "MD" + | "ME" + | "MF" + | "MG" + | "MK" + | "ML" + | "MM" + | "MN" + | "MO" + | "MQ" + | "MR" + | "MS" + | "MT" + | "MU" + | "MV" + | "MW" + | "MX" + | "MY" + | "MZ" + | "NA" + | "NC" + | "NE" + | "NG" + | "NI" + | "NL" + | "NO" + | "NP" + | "NR" + | "NU" + | "NZ" + | "OM" + | "PA" + | "PE" + | "PF" + | "PG" + | "PH" + | "PK" + | "PL" + | "PM" + | "PN" + | "PR" + | "PS" + | "PT" + | "PY" + | "QA" + | "RE" + | "RO" + | "RS" + | "RU" + | "RW" + | "SA" + | "SB" + | "SC" + | "SE" + | "SG" + | "SH" + | "SI" + | "SJ" + | "SK" + | "SL" + | "SM" + | "SN" + | "SO" + | "SR" + | "SS" + | "ST" + | "SV" + | "SX" + | "SZ" + | "TA" + | "TC" + | "TD" + | "TF" + | "TG" + | "TH" + | "TJ" + | "TK" + | "TL" + | "TM" + | "TN" + | "TO" + | "TR" + | "TT" + | "TV" + | "TW" + | "TZ" + | "UA" + | "UG" + | "US" + | "UY" + | "UZ" + | "VA" + | "VC" + | "VE" + | "VG" + | "VN" + | "VU" + | "WF" + | "WS" + | "XK" + | "YE" + | "YT" + | "ZA" + | "ZM" + | "ZW" + | "ZZ" + )[] + } + | "" + ) + | undefined + submit_type?: + | ("auto" | "book" | "donate" | "pay" | "subscribe") + | undefined + subscription_data?: + | { + invoice_settings?: + | { + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + trial_settings?: + | ( + | { + end_behavior: { + missing_payment_method: + | "cancel" + | "create_invoice" + | "pause" + } + } + | "" + ) + | undefined + } + | undefined + tax_id_collection?: + | { + enabled: boolean + required?: ("if_supported" | "never") | undefined + } + | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/payment_method_configurations/${p["configuration"]}` + ): Promise> { + const url = `/v1/payment_links/${p["paymentLink"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -23724,223 +27029,909 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postPaymentMethodConfigurationsConfiguration( + async getPaymentLinksPaymentLinkLineItems( p: { - configuration: string - requestBody?: { - acss_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - active?: boolean - affirm?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - afterpay_clearpay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - alipay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - alma?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - amazon_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - apple_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - apple_pay_later?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - au_becs_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - bacs_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - bancontact?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - blik?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - boleto?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - card?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - cartes_bancaires?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - cashapp?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - customer_balance?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - eps?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - expand?: string[] - fpx?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - giropay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - google_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - grabpay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - ideal?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - jcb?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - klarna?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - konbini?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - link?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - mobilepay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - multibanco?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - name?: string - oxxo?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - p24?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - paynow?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - paypal?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - promptpay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - revolut_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - sepa_debit?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - sofort?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - swish?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - twint?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - us_bank_account?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - wechat_pay?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } - zip?: { - display_preference?: { - preference?: "none" | "off" | "on" - } - } + endingBefore?: string + expand?: string[] + limit?: number + paymentLink: string + startingAfter?: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_item[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/payment_links/${p["paymentLink"]}/line_items` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getPaymentMethodConfigurations( + p: { + application?: string | "" + endingBefore?: string + expand?: string[] + limit?: number + startingAfter?: string + requestBody?: EmptyObject + } = {}, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_payment_method_configuration[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/payment_method_configurations` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + application: p["application"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postPaymentMethodConfigurations( + p: { + requestBody?: { + acss_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + affirm?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + afterpay_clearpay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + alipay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + alma?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + amazon_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + apple_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + apple_pay_later?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + au_becs_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + bacs_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + bancontact?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + blik?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + boleto?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + card?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + cartes_bancaires?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + cashapp?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + customer_balance?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + eps?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + expand?: string[] | undefined + fpx?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + giropay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + google_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + grabpay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + ideal?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + jcb?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + klarna?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + konbini?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + link?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + mobilepay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + multibanco?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + name?: string | undefined + oxxo?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + p24?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + parent?: string | undefined + paynow?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + paypal?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + promptpay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + revolut_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + sepa_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + sofort?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + swish?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + twint?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + us_bank_account?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + wechat_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + zip?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + } + } = {}, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/payment_method_configurations` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getPaymentMethodConfigurationsConfiguration( + p: { + configuration: string + expand?: string[] + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/payment_method_configurations/${p["configuration"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postPaymentMethodConfigurationsConfiguration( + p: { + configuration: string + requestBody?: { + acss_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + active?: boolean | undefined + affirm?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + afterpay_clearpay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + alipay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + alma?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + amazon_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + apple_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + apple_pay_later?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + au_becs_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + bacs_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + bancontact?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + blik?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + boleto?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + card?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + cartes_bancaires?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + cashapp?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + customer_balance?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + eps?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + expand?: string[] | undefined + fpx?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + giropay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + google_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + grabpay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + ideal?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + jcb?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + klarna?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + konbini?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + link?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + mobilepay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + multibanco?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + name?: string | undefined + oxxo?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + p24?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + paynow?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + paypal?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + promptpay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + revolut_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + sepa_debit?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + sofort?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + swish?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + twint?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + us_bank_account?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + wechat_pay?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined + zip?: + | { + display_preference?: + | { + preference?: ("none" | "off" | "on") | undefined + } + | undefined + } + | undefined } }, timeout?: number, @@ -24012,8 +28003,8 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { domain_name: string - enabled?: boolean - expand?: string[] + enabled?: boolean | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -24067,8 +28058,8 @@ export class StripeApi extends AbstractAxiosClient { p: { paymentMethodDomain: string requestBody?: { - enabled?: boolean - expand?: string[] + enabled?: boolean | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -24095,7 +28086,7 @@ export class StripeApi extends AbstractAxiosClient { p: { paymentMethodDomain: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -24209,261 +28200,317 @@ export class StripeApi extends AbstractAxiosClient { async postPaymentMethods( p: { requestBody?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: ("always" | "limited" | "unspecified") | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined card?: + | ( + | { + cvc?: string | undefined + exp_month: number + exp_year: number + networks?: + | { + preferred?: + | ("cartes_bancaires" | "mastercard" | "visa") + | undefined + } + | undefined + number: string + } + | { + token: string + } + ) + | undefined + cashapp?: EmptyObject | undefined + customer?: string | undefined + customer_balance?: EmptyObject | undefined + eps?: | { - cvc?: string - exp_month: number - exp_year: number - networks?: { - preferred?: "cartes_bancaires" | "mastercard" | "visa" - } - number: string - } - | { - token: string - } - cashapp?: EmptyObject - customer?: string - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - expand?: string[] - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number - } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - payment_method?: string - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + expand?: string[] | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + payment_method?: string | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined type?: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject + | ( + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + ) + | undefined + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined } } = {}, timeout?: number, @@ -24517,43 +28564,61 @@ export class StripeApi extends AbstractAxiosClient { p: { paymentMethod: string requestBody?: { - allow_redisplay?: "always" | "limited" | "unspecified" - billing_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - card?: { - exp_month?: number - exp_year?: number - networks?: { - preferred?: "" | "cartes_bancaires" | "mastercard" | "visa" - } - } - expand?: string[] - link?: EmptyObject + allow_redisplay?: ("always" | "limited" | "unspecified") | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + card?: + | { + exp_month?: number | undefined + exp_year?: number | undefined + networks?: + | { + preferred?: + | ("" | "cartes_bancaires" | "mastercard" | "visa") + | undefined + } + | undefined + } + | undefined + expand?: string[] | undefined + link?: EmptyObject | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + naver_pay?: | { - [key: string]: string | undefined + funding?: ("card" | "points") | undefined } - | "" - naver_pay?: { - funding?: "card" | "points" - } - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_type?: "checking" | "savings" - } + | undefined + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_type?: ("checking" | "savings") | undefined + } + | undefined } }, timeout?: number, @@ -24581,7 +28646,7 @@ export class StripeApi extends AbstractAxiosClient { paymentMethod: string requestBody: { customer: string - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -24608,7 +28673,7 @@ export class StripeApi extends AbstractAxiosClient { p: { paymentMethod: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -24635,18 +28700,18 @@ export class StripeApi extends AbstractAxiosClient { p: { arrivalDate?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number destination?: string @@ -24699,15 +28764,17 @@ export class StripeApi extends AbstractAxiosClient { requestBody: { amount: number currency: string - description?: string - destination?: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - method?: "instant" | "standard" - source_type?: "bank_account" | "card" | "fpx" - statement_descriptor?: string + description?: string | undefined + destination?: string | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + method?: ("instant" | "standard") | undefined + source_type?: ("bank_account" | "card" | "fpx") | undefined + statement_descriptor?: string | undefined } }, timeout?: number, @@ -24761,12 +28828,15 @@ export class StripeApi extends AbstractAxiosClient { p: { payout: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -24793,7 +28863,7 @@ export class StripeApi extends AbstractAxiosClient { p: { payout: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -24820,10 +28890,12 @@ export class StripeApi extends AbstractAxiosClient { p: { payout: string requestBody?: { - expand?: string[] - metadata?: { - [key: string]: string | undefined - } + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined } }, timeout?: number, @@ -24851,10 +28923,10 @@ export class StripeApi extends AbstractAxiosClient { active?: boolean created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -24903,50 +28975,64 @@ export class StripeApi extends AbstractAxiosClient { async postPlans( p: { requestBody: { - active?: boolean - aggregate_usage?: "last_during_period" | "last_ever" | "max" | "sum" - amount?: number - amount_decimal?: string - billing_scheme?: "per_unit" | "tiered" + active?: boolean | undefined + aggregate_usage?: + | ("last_during_period" | "last_ever" | "max" | "sum") + | undefined + amount?: number | undefined + amount_decimal?: string | undefined + billing_scheme?: ("per_unit" | "tiered") | undefined currency: string - expand?: string[] - id?: string + expand?: string[] | undefined + id?: string | undefined interval: "day" | "month" | "week" | "year" - interval_count?: number + interval_count?: number | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - meter?: string - nickname?: string + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + meter?: string | undefined + nickname?: string | undefined product?: + | ( + | { + active?: boolean | undefined + id?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name: string + statement_descriptor?: string | undefined + tax_code?: string | undefined + unit_label?: string | undefined + } + | string + ) + | undefined + tiers?: | { - active?: boolean - id?: string - metadata?: { - [key: string]: string | undefined - } - name: string - statement_descriptor?: string - tax_code?: string - unit_label?: string - } - | string - tiers?: { - flat_amount?: number - flat_amount_decimal?: string - unit_amount?: number - unit_amount_decimal?: string - up_to: "inf" | number - }[] - tiers_mode?: "graduated" | "volume" - transform_usage?: { - divide_by: number - round: "down" | "up" - } - trial_period_days?: number - usage_type?: "licensed" | "metered" + flat_amount?: number | undefined + flat_amount_decimal?: string | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + up_to: "inf" | number + }[] + | undefined + tiers_mode?: ("graduated" | "volume") | undefined + transform_usage?: + | { + divide_by: number + round: "down" | "up" + } + | undefined + trial_period_days?: number | undefined + usage_type?: ("licensed" | "metered") | undefined } }, timeout?: number, @@ -25025,16 +29111,19 @@ export class StripeApi extends AbstractAxiosClient { p: { plan: string requestBody?: { - active?: boolean - expand?: string[] + active?: boolean | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - nickname?: string - product?: string - trial_period_days?: number + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + nickname?: string | undefined + product?: string | undefined + trial_period_days?: number | undefined } }, timeout?: number, @@ -25062,10 +29151,10 @@ export class StripeApi extends AbstractAxiosClient { active?: boolean created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number currency?: string @@ -25075,9 +29164,9 @@ export class StripeApi extends AbstractAxiosClient { lookupKeys?: string[] product?: string recurring?: { - interval?: "day" | "month" | "week" | "year" - meter?: string - usage_type?: "licensed" | "metered" + interval?: ("day" | "month" | "week" | "year") | undefined + meter?: string | undefined + usage_type?: ("licensed" | "metered") | undefined } startingAfter?: string type?: "one_time" | "recurring" @@ -25126,78 +29215,102 @@ export class StripeApi extends AbstractAxiosClient { async postPrices( p: { requestBody: { - active?: boolean - billing_scheme?: "per_unit" | "tiered" + active?: boolean | undefined + billing_scheme?: ("per_unit" | "tiered") | undefined currency: string - currency_options?: { - [key: string]: - | { - custom_unit_amount?: { - enabled: boolean - maximum?: number - minimum?: number - preset?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tiers?: { - flat_amount?: number - flat_amount_decimal?: string - unit_amount?: number - unit_amount_decimal?: string - up_to: "inf" | number - }[] - unit_amount?: number - unit_amount_decimal?: string - } - | undefined - } - custom_unit_amount?: { - enabled: boolean - maximum?: number - minimum?: number - preset?: number - } - expand?: string[] - lookup_key?: string - metadata?: { - [key: string]: string | undefined - } - nickname?: string - product?: string - product_data?: { - active?: boolean - id?: string - metadata?: { - [key: string]: string | undefined - } - name: string - statement_descriptor?: string - tax_code?: string - unit_label?: string - } - recurring?: { - aggregate_usage?: "last_during_period" | "last_ever" | "max" | "sum" - interval: "day" | "month" | "week" | "year" - interval_count?: number - meter?: string - usage_type?: "licensed" | "metered" - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tiers?: { - flat_amount?: number - flat_amount_decimal?: string - unit_amount?: number - unit_amount_decimal?: string - up_to: "inf" | number - }[] - tiers_mode?: "graduated" | "volume" - transfer_lookup_key?: boolean - transform_quantity?: { - divide_by: number - round: "down" | "up" - } - unit_amount?: number - unit_amount_decimal?: string + currency_options?: + | { + [key: string]: + | { + custom_unit_amount?: + | { + enabled: boolean + maximum?: number | undefined + minimum?: number | undefined + preset?: number | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + tiers?: + | { + flat_amount?: number | undefined + flat_amount_decimal?: string | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + up_to: "inf" | number + }[] + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + } + | undefined + custom_unit_amount?: + | { + enabled: boolean + maximum?: number | undefined + minimum?: number | undefined + preset?: number | undefined + } + | undefined + expand?: string[] | undefined + lookup_key?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + nickname?: string | undefined + product?: string | undefined + product_data?: + | { + active?: boolean | undefined + id?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name: string + statement_descriptor?: string | undefined + tax_code?: string | undefined + unit_label?: string | undefined + } + | undefined + recurring?: + | { + aggregate_usage?: + | ("last_during_period" | "last_ever" | "max" | "sum") + | undefined + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + meter?: string | undefined + usage_type?: ("licensed" | "metered") | undefined + } + | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined + tiers?: + | { + flat_amount?: number | undefined + flat_amount_decimal?: string | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + up_to: "inf" | number + }[] + | undefined + tiers_mode?: ("graduated" | "volume") | undefined + transfer_lookup_key?: boolean | undefined + transform_quantity?: + | { + divide_by: number + round: "down" | "up" + } + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } }, timeout?: number, @@ -25234,9 +29347,9 @@ export class StripeApi extends AbstractAxiosClient { AxiosResponse<{ data: t_price[] has_more: boolean - next_page?: string | null + next_page?: (string | null) | undefined object: "search_result" - total_count?: number + total_count?: number | undefined url: string }> > { @@ -25294,41 +29407,53 @@ export class StripeApi extends AbstractAxiosClient { p: { price: string requestBody?: { - active?: boolean + active?: boolean | undefined currency_options?: - | { - [key: string]: - | { - custom_unit_amount?: { - enabled: boolean - maximum?: number - minimum?: number - preset?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tiers?: { - flat_amount?: number - flat_amount_decimal?: string - unit_amount?: number - unit_amount_decimal?: string - up_to: "inf" | number - }[] - unit_amount?: number - unit_amount_decimal?: string - } - | undefined - } - | "" - expand?: string[] - lookup_key?: string + | ( + | { + [key: string]: + | { + custom_unit_amount?: + | { + enabled: boolean + maximum?: number | undefined + minimum?: number | undefined + preset?: number | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + tiers?: + | { + flat_amount?: number | undefined + flat_amount_decimal?: string | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + up_to: "inf" | number + }[] + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + } + | "" + ) + | undefined + expand?: string[] | undefined + lookup_key?: string | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - nickname?: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - transfer_lookup_key?: boolean + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + nickname?: string | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined + transfer_lookup_key?: boolean | undefined } }, timeout?: number, @@ -25356,10 +29481,10 @@ export class StripeApi extends AbstractAxiosClient { active?: boolean created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -25412,67 +29537,89 @@ export class StripeApi extends AbstractAxiosClient { async postProducts( p: { requestBody: { - active?: boolean - default_price_data?: { - currency: string - currency_options?: { - [key: string]: - | { - custom_unit_amount?: { + active?: boolean | undefined + default_price_data?: + | { + currency: string + currency_options?: + | { + [key: string]: + | { + custom_unit_amount?: + | { + enabled: boolean + maximum?: number | undefined + minimum?: number | undefined + preset?: number | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + tiers?: + | { + flat_amount?: number | undefined + flat_amount_decimal?: string | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + up_to: "inf" | number + }[] + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + } + | undefined + custom_unit_amount?: + | { enabled: boolean - maximum?: number - minimum?: number - preset?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tiers?: { - flat_amount?: number - flat_amount_decimal?: string - unit_amount?: number - unit_amount_decimal?: string - up_to: "inf" | number - }[] - unit_amount?: number - unit_amount_decimal?: string - } - | undefined - } - custom_unit_amount?: { - enabled: boolean - maximum?: number - minimum?: number - preset?: number - } - recurring?: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - description?: string - expand?: string[] - id?: string - images?: string[] - marketing_features?: { - name: string - }[] - metadata?: { - [key: string]: string | undefined - } + maximum?: number | undefined + minimum?: number | undefined + preset?: number | undefined + } + | undefined + recurring?: + | { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + description?: string | undefined + expand?: string[] | undefined + id?: string | undefined + images?: string[] | undefined + marketing_features?: + | { + name: string + }[] + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined name: string - package_dimensions?: { - height: number - length: number - weight: number - width: number - } - shippable?: boolean - statement_descriptor?: string - tax_code?: string - unit_label?: string - url?: string + package_dimensions?: + | { + height: number + length: number + weight: number + width: number + } + | undefined + shippable?: boolean | undefined + statement_descriptor?: string | undefined + tax_code?: string | undefined + unit_label?: string | undefined + url?: string | undefined } }, timeout?: number, @@ -25509,9 +29656,9 @@ export class StripeApi extends AbstractAxiosClient { AxiosResponse<{ data: t_product[] has_more: boolean - next_page?: string | null + next_page?: (string | null) | undefined object: "search_result" - total_count?: number + total_count?: number | undefined url: string }> > { @@ -25594,35 +29741,44 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - active?: boolean - default_price?: string - description?: string | "" - expand?: string[] - images?: string[] | "" + active?: boolean | undefined + default_price?: string | undefined + description?: (string | "") | undefined + expand?: string[] | undefined + images?: (string[] | "") | undefined marketing_features?: - | { - name: string - }[] - | "" + | ( + | { + name: string + }[] + | "" + ) + | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - name?: string + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + name?: string | undefined package_dimensions?: - | { - height: number - length: number - weight: number - width: number - } - | "" - shippable?: boolean - statement_descriptor?: string - tax_code?: string | "" - unit_label?: string | "" - url?: string | "" + | ( + | { + height: number + length: number + weight: number + width: number + } + | "" + ) + | undefined + shippable?: boolean | undefined + statement_descriptor?: string | undefined + tax_code?: (string | "") | undefined + unit_label?: (string | "") | undefined + url?: (string | "") | undefined } }, timeout?: number, @@ -25692,7 +29848,7 @@ export class StripeApi extends AbstractAxiosClient { product: string requestBody: { entitlement_feature: string - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -25776,10 +29932,10 @@ export class StripeApi extends AbstractAxiosClient { coupon?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -25830,28 +29986,34 @@ export class StripeApi extends AbstractAxiosClient { async postPromotionCodes( p: { requestBody: { - active?: boolean - code?: string + active?: boolean | undefined + code?: string | undefined coupon: string - customer?: string - expand?: string[] - expires_at?: number - max_redemptions?: number - metadata?: { - [key: string]: string | undefined - } - restrictions?: { - currency_options?: { - [key: string]: - | { - minimum_amount?: number - } - | undefined - } - first_time_transaction?: boolean - minimum_amount?: number - minimum_amount_currency?: string - } + customer?: string | undefined + expand?: string[] | undefined + expires_at?: number | undefined + max_redemptions?: number | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + restrictions?: + | { + currency_options?: + | { + [key: string]: + | { + minimum_amount?: number | undefined + } + | undefined + } + | undefined + first_time_transaction?: boolean | undefined + minimum_amount?: number | undefined + minimum_amount_currency?: string | undefined + } + | undefined } }, timeout?: number, @@ -25905,22 +30067,29 @@ export class StripeApi extends AbstractAxiosClient { p: { promotionCode: string requestBody?: { - active?: boolean - expand?: string[] + active?: boolean | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - restrictions?: { - currency_options?: { - [key: string]: + | ( | { - minimum_amount?: number + [key: string]: string | undefined } - | undefined - } - } + | "" + ) + | undefined + restrictions?: + | { + currency_options?: + | { + [key: string]: + | { + minimum_amount?: number | undefined + } + | undefined + } + | undefined + } + | undefined } }, timeout?: number, @@ -25993,84 +30162,119 @@ export class StripeApi extends AbstractAxiosClient { async postQuotes( p: { requestBody?: { - application_fee_amount?: number | "" - application_fee_percent?: number | "" - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - collection_method?: "charge_automatically" | "send_invoice" - customer?: string - default_tax_rates?: string[] | "" - description?: string | "" + application_fee_amount?: (number | "") | undefined + application_fee_percent?: (number | "") | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + customer?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined + expires_at?: number | undefined + footer?: (string | "") | undefined + from_quote?: + | { + is_revision?: boolean | undefined + quote: string + } + | undefined + header?: (string | "") | undefined + invoice_settings?: + | { + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + line_items?: | { - coupon?: string - discount?: string - promotion_code?: string + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring?: + | { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - expand?: string[] - expires_at?: number - footer?: string | "" - from_quote?: { - is_revision?: boolean - quote: string - } - header?: string | "" - invoice_settings?: { - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" - } - } - line_items?: { - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - price?: string - price_data?: { - currency: string - product: string - recurring?: { - interval: "day" | "month" | "week" | "year" - interval_count?: number + | undefined + metadata?: + | { + [key: string]: string | undefined } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string | "" - subscription_data?: { - description?: string - effective_date?: "current_period_end" | number | "" - metadata?: { - [key: string]: string | undefined - } - trial_period_days?: number | "" - } - test_clock?: string - transfer_data?: + | undefined + on_behalf_of?: (string | "") | undefined + subscription_data?: | { - amount?: number - amount_percent?: number - destination: string + description?: string | undefined + effective_date?: ("current_period_end" | number | "") | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + trial_period_days?: (number | "") | undefined } - | "" + | undefined + test_clock?: string | undefined + transfer_data?: + | ( + | { + amount?: number | undefined + amount_percent?: number | undefined + destination: string + } + | "" + ) + | undefined } } = {}, timeout?: number, @@ -26124,80 +30328,113 @@ export class StripeApi extends AbstractAxiosClient { p: { quote: string requestBody?: { - application_fee_amount?: number | "" - application_fee_percent?: number | "" - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - collection_method?: "charge_automatically" | "send_invoice" - customer?: string - default_tax_rates?: string[] | "" - description?: string | "" + application_fee_amount?: (number | "") | undefined + application_fee_percent?: (number | "") | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + customer?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined + expires_at?: number | undefined + footer?: (string | "") | undefined + header?: (string | "") | undefined + invoice_settings?: + | { + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + line_items?: | { - coupon?: string - discount?: string - promotion_code?: string + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring?: + | { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - expand?: string[] - expires_at?: number - footer?: string | "" - header?: string | "" - invoice_settings?: { - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" - } - } - line_items?: { - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - id?: string - price?: string - price_data?: { - currency: string - product: string - recurring?: { - interval: "day" | "month" | "week" | "year" - interval_count?: number + | undefined + metadata?: + | { + [key: string]: string | undefined } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string | "" - subscription_data?: { - description?: string | "" - effective_date?: "current_period_end" | number | "" - metadata?: { - [key: string]: string | undefined - } - trial_period_days?: number | "" - } - transfer_data?: + | undefined + on_behalf_of?: (string | "") | undefined + subscription_data?: | { - amount?: number - amount_percent?: number - destination: string + description?: (string | "") | undefined + effective_date?: ("current_period_end" | number | "") | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + trial_period_days?: (number | "") | undefined } - | "" + | undefined + transfer_data?: + | ( + | { + amount?: number | undefined + amount_percent?: number | undefined + destination: string + } + | "" + ) + | undefined } }, timeout?: number, @@ -26224,7 +30461,7 @@ export class StripeApi extends AbstractAxiosClient { p: { quote: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -26251,7 +30488,7 @@ export class StripeApi extends AbstractAxiosClient { p: { quote: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -26320,8 +30557,8 @@ export class StripeApi extends AbstractAxiosClient { p: { quote: string requestBody?: { - expand?: string[] - expires_at?: number + expand?: string[] | undefined + expires_at?: number | undefined } }, timeout?: number, @@ -26422,10 +30659,10 @@ export class StripeApi extends AbstractAxiosClient { charge?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -26502,10 +30739,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -26555,7 +30792,7 @@ export class StripeApi extends AbstractAxiosClient { async postRadarValueListItems( p: { requestBody: { - expand?: string[] + expand?: string[] | undefined value: string value_list: string } @@ -26638,10 +30875,10 @@ export class StripeApi extends AbstractAxiosClient { contains?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -26690,21 +30927,26 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { alias: string - expand?: string[] + expand?: string[] | undefined item_type?: - | "card_bin" - | "card_fingerprint" - | "case_sensitive_string" - | "country" - | "customer_id" - | "email" - | "ip_address" - | "sepa_debit_fingerprint" - | "string" - | "us_bank_account_fingerprint" - metadata?: { - [key: string]: string | undefined - } + | ( + | "card_bin" + | "card_fingerprint" + | "case_sensitive_string" + | "country" + | "customer_id" + | "email" + | "ip_address" + | "sepa_debit_fingerprint" + | "string" + | "us_bank_account_fingerprint" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined name: string } }, @@ -26784,12 +31026,14 @@ export class StripeApi extends AbstractAxiosClient { p: { valueList: string requestBody?: { - alias?: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - name?: string + alias?: string | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: string | undefined } }, timeout?: number, @@ -26817,10 +31061,10 @@ export class StripeApi extends AbstractAxiosClient { charge?: string created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -26869,22 +31113,27 @@ export class StripeApi extends AbstractAxiosClient { async postRefunds( p: { requestBody?: { - amount?: number - charge?: string - currency?: string - customer?: string - expand?: string[] - instructions_email?: string + amount?: number | undefined + charge?: string | undefined + currency?: string | undefined + customer?: string | undefined + expand?: string[] | undefined + instructions_email?: string | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - origin?: "customer_balance" - payment_intent?: string - reason?: "duplicate" | "fraudulent" | "requested_by_customer" - refund_application_fee?: boolean - reverse_transfer?: boolean + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + origin?: "customer_balance" | undefined + payment_intent?: string | undefined + reason?: + | ("duplicate" | "fraudulent" | "requested_by_customer") + | undefined + refund_application_fee?: boolean | undefined + reverse_transfer?: boolean | undefined } } = {}, timeout?: number, @@ -26938,12 +31187,15 @@ export class StripeApi extends AbstractAxiosClient { p: { refund: string requestBody?: { - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -26970,7 +31222,7 @@ export class StripeApi extends AbstractAxiosClient { p: { refund: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -26997,10 +31249,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -27046,652 +31298,660 @@ export class StripeApi extends AbstractAxiosClient { async postReportingReportRuns( p: { requestBody: { - expand?: string[] - parameters?: { - columns?: string[] - connected_account?: string - currency?: string - interval_end?: number - interval_start?: number - payout?: string - reporting_category?: - | "advance" - | "advance_funding" - | "anticipation_repayment" - | "charge" - | "charge_failure" - | "climate_order_purchase" - | "climate_order_refund" - | "connect_collection_transfer" - | "connect_reserved_funds" - | "contribution" - | "dispute" - | "dispute_reversal" - | "fee" - | "financing_paydown" - | "financing_paydown_reversal" - | "financing_payout" - | "financing_payout_reversal" - | "issuing_authorization_hold" - | "issuing_authorization_release" - | "issuing_dispute" - | "issuing_transaction" - | "network_cost" - | "other_adjustment" - | "partial_capture_reversal" - | "payout" - | "payout_reversal" - | "platform_earning" - | "platform_earning_refund" - | "refund" - | "refund_failure" - | "risk_reserved_funds" - | "tax" - | "topup" - | "topup_reversal" - | "transfer" - | "transfer_reversal" - | "unreconciled_customer_funds" - timezone?: - | "Africa/Abidjan" - | "Africa/Accra" - | "Africa/Addis_Ababa" - | "Africa/Algiers" - | "Africa/Asmara" - | "Africa/Asmera" - | "Africa/Bamako" - | "Africa/Bangui" - | "Africa/Banjul" - | "Africa/Bissau" - | "Africa/Blantyre" - | "Africa/Brazzaville" - | "Africa/Bujumbura" - | "Africa/Cairo" - | "Africa/Casablanca" - | "Africa/Ceuta" - | "Africa/Conakry" - | "Africa/Dakar" - | "Africa/Dar_es_Salaam" - | "Africa/Djibouti" - | "Africa/Douala" - | "Africa/El_Aaiun" - | "Africa/Freetown" - | "Africa/Gaborone" - | "Africa/Harare" - | "Africa/Johannesburg" - | "Africa/Juba" - | "Africa/Kampala" - | "Africa/Khartoum" - | "Africa/Kigali" - | "Africa/Kinshasa" - | "Africa/Lagos" - | "Africa/Libreville" - | "Africa/Lome" - | "Africa/Luanda" - | "Africa/Lubumbashi" - | "Africa/Lusaka" - | "Africa/Malabo" - | "Africa/Maputo" - | "Africa/Maseru" - | "Africa/Mbabane" - | "Africa/Mogadishu" - | "Africa/Monrovia" - | "Africa/Nairobi" - | "Africa/Ndjamena" - | "Africa/Niamey" - | "Africa/Nouakchott" - | "Africa/Ouagadougou" - | "Africa/Porto-Novo" - | "Africa/Sao_Tome" - | "Africa/Timbuktu" - | "Africa/Tripoli" - | "Africa/Tunis" - | "Africa/Windhoek" - | "America/Adak" - | "America/Anchorage" - | "America/Anguilla" - | "America/Antigua" - | "America/Araguaina" - | "America/Argentina/Buenos_Aires" - | "America/Argentina/Catamarca" - | "America/Argentina/ComodRivadavia" - | "America/Argentina/Cordoba" - | "America/Argentina/Jujuy" - | "America/Argentina/La_Rioja" - | "America/Argentina/Mendoza" - | "America/Argentina/Rio_Gallegos" - | "America/Argentina/Salta" - | "America/Argentina/San_Juan" - | "America/Argentina/San_Luis" - | "America/Argentina/Tucuman" - | "America/Argentina/Ushuaia" - | "America/Aruba" - | "America/Asuncion" - | "America/Atikokan" - | "America/Atka" - | "America/Bahia" - | "America/Bahia_Banderas" - | "America/Barbados" - | "America/Belem" - | "America/Belize" - | "America/Blanc-Sablon" - | "America/Boa_Vista" - | "America/Bogota" - | "America/Boise" - | "America/Buenos_Aires" - | "America/Cambridge_Bay" - | "America/Campo_Grande" - | "America/Cancun" - | "America/Caracas" - | "America/Catamarca" - | "America/Cayenne" - | "America/Cayman" - | "America/Chicago" - | "America/Chihuahua" - | "America/Ciudad_Juarez" - | "America/Coral_Harbour" - | "America/Cordoba" - | "America/Costa_Rica" - | "America/Creston" - | "America/Cuiaba" - | "America/Curacao" - | "America/Danmarkshavn" - | "America/Dawson" - | "America/Dawson_Creek" - | "America/Denver" - | "America/Detroit" - | "America/Dominica" - | "America/Edmonton" - | "America/Eirunepe" - | "America/El_Salvador" - | "America/Ensenada" - | "America/Fort_Nelson" - | "America/Fort_Wayne" - | "America/Fortaleza" - | "America/Glace_Bay" - | "America/Godthab" - | "America/Goose_Bay" - | "America/Grand_Turk" - | "America/Grenada" - | "America/Guadeloupe" - | "America/Guatemala" - | "America/Guayaquil" - | "America/Guyana" - | "America/Halifax" - | "America/Havana" - | "America/Hermosillo" - | "America/Indiana/Indianapolis" - | "America/Indiana/Knox" - | "America/Indiana/Marengo" - | "America/Indiana/Petersburg" - | "America/Indiana/Tell_City" - | "America/Indiana/Vevay" - | "America/Indiana/Vincennes" - | "America/Indiana/Winamac" - | "America/Indianapolis" - | "America/Inuvik" - | "America/Iqaluit" - | "America/Jamaica" - | "America/Jujuy" - | "America/Juneau" - | "America/Kentucky/Louisville" - | "America/Kentucky/Monticello" - | "America/Knox_IN" - | "America/Kralendijk" - | "America/La_Paz" - | "America/Lima" - | "America/Los_Angeles" - | "America/Louisville" - | "America/Lower_Princes" - | "America/Maceio" - | "America/Managua" - | "America/Manaus" - | "America/Marigot" - | "America/Martinique" - | "America/Matamoros" - | "America/Mazatlan" - | "America/Mendoza" - | "America/Menominee" - | "America/Merida" - | "America/Metlakatla" - | "America/Mexico_City" - | "America/Miquelon" - | "America/Moncton" - | "America/Monterrey" - | "America/Montevideo" - | "America/Montreal" - | "America/Montserrat" - | "America/Nassau" - | "America/New_York" - | "America/Nipigon" - | "America/Nome" - | "America/Noronha" - | "America/North_Dakota/Beulah" - | "America/North_Dakota/Center" - | "America/North_Dakota/New_Salem" - | "America/Nuuk" - | "America/Ojinaga" - | "America/Panama" - | "America/Pangnirtung" - | "America/Paramaribo" - | "America/Phoenix" - | "America/Port-au-Prince" - | "America/Port_of_Spain" - | "America/Porto_Acre" - | "America/Porto_Velho" - | "America/Puerto_Rico" - | "America/Punta_Arenas" - | "America/Rainy_River" - | "America/Rankin_Inlet" - | "America/Recife" - | "America/Regina" - | "America/Resolute" - | "America/Rio_Branco" - | "America/Rosario" - | "America/Santa_Isabel" - | "America/Santarem" - | "America/Santiago" - | "America/Santo_Domingo" - | "America/Sao_Paulo" - | "America/Scoresbysund" - | "America/Shiprock" - | "America/Sitka" - | "America/St_Barthelemy" - | "America/St_Johns" - | "America/St_Kitts" - | "America/St_Lucia" - | "America/St_Thomas" - | "America/St_Vincent" - | "America/Swift_Current" - | "America/Tegucigalpa" - | "America/Thule" - | "America/Thunder_Bay" - | "America/Tijuana" - | "America/Toronto" - | "America/Tortola" - | "America/Vancouver" - | "America/Virgin" - | "America/Whitehorse" - | "America/Winnipeg" - | "America/Yakutat" - | "America/Yellowknife" - | "Antarctica/Casey" - | "Antarctica/Davis" - | "Antarctica/DumontDUrville" - | "Antarctica/Macquarie" - | "Antarctica/Mawson" - | "Antarctica/McMurdo" - | "Antarctica/Palmer" - | "Antarctica/Rothera" - | "Antarctica/South_Pole" - | "Antarctica/Syowa" - | "Antarctica/Troll" - | "Antarctica/Vostok" - | "Arctic/Longyearbyen" - | "Asia/Aden" - | "Asia/Almaty" - | "Asia/Amman" - | "Asia/Anadyr" - | "Asia/Aqtau" - | "Asia/Aqtobe" - | "Asia/Ashgabat" - | "Asia/Ashkhabad" - | "Asia/Atyrau" - | "Asia/Baghdad" - | "Asia/Bahrain" - | "Asia/Baku" - | "Asia/Bangkok" - | "Asia/Barnaul" - | "Asia/Beirut" - | "Asia/Bishkek" - | "Asia/Brunei" - | "Asia/Calcutta" - | "Asia/Chita" - | "Asia/Choibalsan" - | "Asia/Chongqing" - | "Asia/Chungking" - | "Asia/Colombo" - | "Asia/Dacca" - | "Asia/Damascus" - | "Asia/Dhaka" - | "Asia/Dili" - | "Asia/Dubai" - | "Asia/Dushanbe" - | "Asia/Famagusta" - | "Asia/Gaza" - | "Asia/Harbin" - | "Asia/Hebron" - | "Asia/Ho_Chi_Minh" - | "Asia/Hong_Kong" - | "Asia/Hovd" - | "Asia/Irkutsk" - | "Asia/Istanbul" - | "Asia/Jakarta" - | "Asia/Jayapura" - | "Asia/Jerusalem" - | "Asia/Kabul" - | "Asia/Kamchatka" - | "Asia/Karachi" - | "Asia/Kashgar" - | "Asia/Kathmandu" - | "Asia/Katmandu" - | "Asia/Khandyga" - | "Asia/Kolkata" - | "Asia/Krasnoyarsk" - | "Asia/Kuala_Lumpur" - | "Asia/Kuching" - | "Asia/Kuwait" - | "Asia/Macao" - | "Asia/Macau" - | "Asia/Magadan" - | "Asia/Makassar" - | "Asia/Manila" - | "Asia/Muscat" - | "Asia/Nicosia" - | "Asia/Novokuznetsk" - | "Asia/Novosibirsk" - | "Asia/Omsk" - | "Asia/Oral" - | "Asia/Phnom_Penh" - | "Asia/Pontianak" - | "Asia/Pyongyang" - | "Asia/Qatar" - | "Asia/Qostanay" - | "Asia/Qyzylorda" - | "Asia/Rangoon" - | "Asia/Riyadh" - | "Asia/Saigon" - | "Asia/Sakhalin" - | "Asia/Samarkand" - | "Asia/Seoul" - | "Asia/Shanghai" - | "Asia/Singapore" - | "Asia/Srednekolymsk" - | "Asia/Taipei" - | "Asia/Tashkent" - | "Asia/Tbilisi" - | "Asia/Tehran" - | "Asia/Tel_Aviv" - | "Asia/Thimbu" - | "Asia/Thimphu" - | "Asia/Tokyo" - | "Asia/Tomsk" - | "Asia/Ujung_Pandang" - | "Asia/Ulaanbaatar" - | "Asia/Ulan_Bator" - | "Asia/Urumqi" - | "Asia/Ust-Nera" - | "Asia/Vientiane" - | "Asia/Vladivostok" - | "Asia/Yakutsk" - | "Asia/Yangon" - | "Asia/Yekaterinburg" - | "Asia/Yerevan" - | "Atlantic/Azores" - | "Atlantic/Bermuda" - | "Atlantic/Canary" - | "Atlantic/Cape_Verde" - | "Atlantic/Faeroe" - | "Atlantic/Faroe" - | "Atlantic/Jan_Mayen" - | "Atlantic/Madeira" - | "Atlantic/Reykjavik" - | "Atlantic/South_Georgia" - | "Atlantic/St_Helena" - | "Atlantic/Stanley" - | "Australia/ACT" - | "Australia/Adelaide" - | "Australia/Brisbane" - | "Australia/Broken_Hill" - | "Australia/Canberra" - | "Australia/Currie" - | "Australia/Darwin" - | "Australia/Eucla" - | "Australia/Hobart" - | "Australia/LHI" - | "Australia/Lindeman" - | "Australia/Lord_Howe" - | "Australia/Melbourne" - | "Australia/NSW" - | "Australia/North" - | "Australia/Perth" - | "Australia/Queensland" - | "Australia/South" - | "Australia/Sydney" - | "Australia/Tasmania" - | "Australia/Victoria" - | "Australia/West" - | "Australia/Yancowinna" - | "Brazil/Acre" - | "Brazil/DeNoronha" - | "Brazil/East" - | "Brazil/West" - | "CET" - | "CST6CDT" - | "Canada/Atlantic" - | "Canada/Central" - | "Canada/Eastern" - | "Canada/Mountain" - | "Canada/Newfoundland" - | "Canada/Pacific" - | "Canada/Saskatchewan" - | "Canada/Yukon" - | "Chile/Continental" - | "Chile/EasterIsland" - | "Cuba" - | "EET" - | "EST" - | "EST5EDT" - | "Egypt" - | "Eire" - | "Etc/GMT" - | "Etc/GMT+0" - | "Etc/GMT+1" - | "Etc/GMT+10" - | "Etc/GMT+11" - | "Etc/GMT+12" - | "Etc/GMT+2" - | "Etc/GMT+3" - | "Etc/GMT+4" - | "Etc/GMT+5" - | "Etc/GMT+6" - | "Etc/GMT+7" - | "Etc/GMT+8" - | "Etc/GMT+9" - | "Etc/GMT-0" - | "Etc/GMT-1" - | "Etc/GMT-10" - | "Etc/GMT-11" - | "Etc/GMT-12" - | "Etc/GMT-13" - | "Etc/GMT-14" - | "Etc/GMT-2" - | "Etc/GMT-3" - | "Etc/GMT-4" - | "Etc/GMT-5" - | "Etc/GMT-6" - | "Etc/GMT-7" - | "Etc/GMT-8" - | "Etc/GMT-9" - | "Etc/GMT0" - | "Etc/Greenwich" - | "Etc/UCT" - | "Etc/UTC" - | "Etc/Universal" - | "Etc/Zulu" - | "Europe/Amsterdam" - | "Europe/Andorra" - | "Europe/Astrakhan" - | "Europe/Athens" - | "Europe/Belfast" - | "Europe/Belgrade" - | "Europe/Berlin" - | "Europe/Bratislava" - | "Europe/Brussels" - | "Europe/Bucharest" - | "Europe/Budapest" - | "Europe/Busingen" - | "Europe/Chisinau" - | "Europe/Copenhagen" - | "Europe/Dublin" - | "Europe/Gibraltar" - | "Europe/Guernsey" - | "Europe/Helsinki" - | "Europe/Isle_of_Man" - | "Europe/Istanbul" - | "Europe/Jersey" - | "Europe/Kaliningrad" - | "Europe/Kiev" - | "Europe/Kirov" - | "Europe/Kyiv" - | "Europe/Lisbon" - | "Europe/Ljubljana" - | "Europe/London" - | "Europe/Luxembourg" - | "Europe/Madrid" - | "Europe/Malta" - | "Europe/Mariehamn" - | "Europe/Minsk" - | "Europe/Monaco" - | "Europe/Moscow" - | "Europe/Nicosia" - | "Europe/Oslo" - | "Europe/Paris" - | "Europe/Podgorica" - | "Europe/Prague" - | "Europe/Riga" - | "Europe/Rome" - | "Europe/Samara" - | "Europe/San_Marino" - | "Europe/Sarajevo" - | "Europe/Saratov" - | "Europe/Simferopol" - | "Europe/Skopje" - | "Europe/Sofia" - | "Europe/Stockholm" - | "Europe/Tallinn" - | "Europe/Tirane" - | "Europe/Tiraspol" - | "Europe/Ulyanovsk" - | "Europe/Uzhgorod" - | "Europe/Vaduz" - | "Europe/Vatican" - | "Europe/Vienna" - | "Europe/Vilnius" - | "Europe/Volgograd" - | "Europe/Warsaw" - | "Europe/Zagreb" - | "Europe/Zaporozhye" - | "Europe/Zurich" - | "Factory" - | "GB" - | "GB-Eire" - | "GMT" - | "GMT+0" - | "GMT-0" - | "GMT0" - | "Greenwich" - | "HST" - | "Hongkong" - | "Iceland" - | "Indian/Antananarivo" - | "Indian/Chagos" - | "Indian/Christmas" - | "Indian/Cocos" - | "Indian/Comoro" - | "Indian/Kerguelen" - | "Indian/Mahe" - | "Indian/Maldives" - | "Indian/Mauritius" - | "Indian/Mayotte" - | "Indian/Reunion" - | "Iran" - | "Israel" - | "Jamaica" - | "Japan" - | "Kwajalein" - | "Libya" - | "MET" - | "MST" - | "MST7MDT" - | "Mexico/BajaNorte" - | "Mexico/BajaSur" - | "Mexico/General" - | "NZ" - | "NZ-CHAT" - | "Navajo" - | "PRC" - | "PST8PDT" - | "Pacific/Apia" - | "Pacific/Auckland" - | "Pacific/Bougainville" - | "Pacific/Chatham" - | "Pacific/Chuuk" - | "Pacific/Easter" - | "Pacific/Efate" - | "Pacific/Enderbury" - | "Pacific/Fakaofo" - | "Pacific/Fiji" - | "Pacific/Funafuti" - | "Pacific/Galapagos" - | "Pacific/Gambier" - | "Pacific/Guadalcanal" - | "Pacific/Guam" - | "Pacific/Honolulu" - | "Pacific/Johnston" - | "Pacific/Kanton" - | "Pacific/Kiritimati" - | "Pacific/Kosrae" - | "Pacific/Kwajalein" - | "Pacific/Majuro" - | "Pacific/Marquesas" - | "Pacific/Midway" - | "Pacific/Nauru" - | "Pacific/Niue" - | "Pacific/Norfolk" - | "Pacific/Noumea" - | "Pacific/Pago_Pago" - | "Pacific/Palau" - | "Pacific/Pitcairn" - | "Pacific/Pohnpei" - | "Pacific/Ponape" - | "Pacific/Port_Moresby" - | "Pacific/Rarotonga" - | "Pacific/Saipan" - | "Pacific/Samoa" - | "Pacific/Tahiti" - | "Pacific/Tarawa" - | "Pacific/Tongatapu" - | "Pacific/Truk" - | "Pacific/Wake" - | "Pacific/Wallis" - | "Pacific/Yap" - | "Poland" - | "Portugal" - | "ROC" - | "ROK" - | "Singapore" - | "Turkey" - | "UCT" - | "US/Alaska" - | "US/Aleutian" - | "US/Arizona" - | "US/Central" - | "US/East-Indiana" - | "US/Eastern" - | "US/Hawaii" - | "US/Indiana-Starke" - | "US/Michigan" - | "US/Mountain" - | "US/Pacific" - | "US/Pacific-New" - | "US/Samoa" - | "UTC" - | "Universal" - | "W-SU" - | "WET" - | "Zulu" - } + expand?: string[] | undefined + parameters?: + | { + columns?: string[] | undefined + connected_account?: string | undefined + currency?: string | undefined + interval_end?: number | undefined + interval_start?: number | undefined + payout?: string | undefined + reporting_category?: + | ( + | "advance" + | "advance_funding" + | "anticipation_repayment" + | "charge" + | "charge_failure" + | "climate_order_purchase" + | "climate_order_refund" + | "connect_collection_transfer" + | "connect_reserved_funds" + | "contribution" + | "dispute" + | "dispute_reversal" + | "fee" + | "financing_paydown" + | "financing_paydown_reversal" + | "financing_payout" + | "financing_payout_reversal" + | "issuing_authorization_hold" + | "issuing_authorization_release" + | "issuing_dispute" + | "issuing_transaction" + | "network_cost" + | "other_adjustment" + | "partial_capture_reversal" + | "payout" + | "payout_reversal" + | "platform_earning" + | "platform_earning_refund" + | "refund" + | "refund_failure" + | "risk_reserved_funds" + | "tax" + | "topup" + | "topup_reversal" + | "transfer" + | "transfer_reversal" + | "unreconciled_customer_funds" + ) + | undefined + timezone?: + | ( + | "Africa/Abidjan" + | "Africa/Accra" + | "Africa/Addis_Ababa" + | "Africa/Algiers" + | "Africa/Asmara" + | "Africa/Asmera" + | "Africa/Bamako" + | "Africa/Bangui" + | "Africa/Banjul" + | "Africa/Bissau" + | "Africa/Blantyre" + | "Africa/Brazzaville" + | "Africa/Bujumbura" + | "Africa/Cairo" + | "Africa/Casablanca" + | "Africa/Ceuta" + | "Africa/Conakry" + | "Africa/Dakar" + | "Africa/Dar_es_Salaam" + | "Africa/Djibouti" + | "Africa/Douala" + | "Africa/El_Aaiun" + | "Africa/Freetown" + | "Africa/Gaborone" + | "Africa/Harare" + | "Africa/Johannesburg" + | "Africa/Juba" + | "Africa/Kampala" + | "Africa/Khartoum" + | "Africa/Kigali" + | "Africa/Kinshasa" + | "Africa/Lagos" + | "Africa/Libreville" + | "Africa/Lome" + | "Africa/Luanda" + | "Africa/Lubumbashi" + | "Africa/Lusaka" + | "Africa/Malabo" + | "Africa/Maputo" + | "Africa/Maseru" + | "Africa/Mbabane" + | "Africa/Mogadishu" + | "Africa/Monrovia" + | "Africa/Nairobi" + | "Africa/Ndjamena" + | "Africa/Niamey" + | "Africa/Nouakchott" + | "Africa/Ouagadougou" + | "Africa/Porto-Novo" + | "Africa/Sao_Tome" + | "Africa/Timbuktu" + | "Africa/Tripoli" + | "Africa/Tunis" + | "Africa/Windhoek" + | "America/Adak" + | "America/Anchorage" + | "America/Anguilla" + | "America/Antigua" + | "America/Araguaina" + | "America/Argentina/Buenos_Aires" + | "America/Argentina/Catamarca" + | "America/Argentina/ComodRivadavia" + | "America/Argentina/Cordoba" + | "America/Argentina/Jujuy" + | "America/Argentina/La_Rioja" + | "America/Argentina/Mendoza" + | "America/Argentina/Rio_Gallegos" + | "America/Argentina/Salta" + | "America/Argentina/San_Juan" + | "America/Argentina/San_Luis" + | "America/Argentina/Tucuman" + | "America/Argentina/Ushuaia" + | "America/Aruba" + | "America/Asuncion" + | "America/Atikokan" + | "America/Atka" + | "America/Bahia" + | "America/Bahia_Banderas" + | "America/Barbados" + | "America/Belem" + | "America/Belize" + | "America/Blanc-Sablon" + | "America/Boa_Vista" + | "America/Bogota" + | "America/Boise" + | "America/Buenos_Aires" + | "America/Cambridge_Bay" + | "America/Campo_Grande" + | "America/Cancun" + | "America/Caracas" + | "America/Catamarca" + | "America/Cayenne" + | "America/Cayman" + | "America/Chicago" + | "America/Chihuahua" + | "America/Ciudad_Juarez" + | "America/Coral_Harbour" + | "America/Cordoba" + | "America/Costa_Rica" + | "America/Creston" + | "America/Cuiaba" + | "America/Curacao" + | "America/Danmarkshavn" + | "America/Dawson" + | "America/Dawson_Creek" + | "America/Denver" + | "America/Detroit" + | "America/Dominica" + | "America/Edmonton" + | "America/Eirunepe" + | "America/El_Salvador" + | "America/Ensenada" + | "America/Fort_Nelson" + | "America/Fort_Wayne" + | "America/Fortaleza" + | "America/Glace_Bay" + | "America/Godthab" + | "America/Goose_Bay" + | "America/Grand_Turk" + | "America/Grenada" + | "America/Guadeloupe" + | "America/Guatemala" + | "America/Guayaquil" + | "America/Guyana" + | "America/Halifax" + | "America/Havana" + | "America/Hermosillo" + | "America/Indiana/Indianapolis" + | "America/Indiana/Knox" + | "America/Indiana/Marengo" + | "America/Indiana/Petersburg" + | "America/Indiana/Tell_City" + | "America/Indiana/Vevay" + | "America/Indiana/Vincennes" + | "America/Indiana/Winamac" + | "America/Indianapolis" + | "America/Inuvik" + | "America/Iqaluit" + | "America/Jamaica" + | "America/Jujuy" + | "America/Juneau" + | "America/Kentucky/Louisville" + | "America/Kentucky/Monticello" + | "America/Knox_IN" + | "America/Kralendijk" + | "America/La_Paz" + | "America/Lima" + | "America/Los_Angeles" + | "America/Louisville" + | "America/Lower_Princes" + | "America/Maceio" + | "America/Managua" + | "America/Manaus" + | "America/Marigot" + | "America/Martinique" + | "America/Matamoros" + | "America/Mazatlan" + | "America/Mendoza" + | "America/Menominee" + | "America/Merida" + | "America/Metlakatla" + | "America/Mexico_City" + | "America/Miquelon" + | "America/Moncton" + | "America/Monterrey" + | "America/Montevideo" + | "America/Montreal" + | "America/Montserrat" + | "America/Nassau" + | "America/New_York" + | "America/Nipigon" + | "America/Nome" + | "America/Noronha" + | "America/North_Dakota/Beulah" + | "America/North_Dakota/Center" + | "America/North_Dakota/New_Salem" + | "America/Nuuk" + | "America/Ojinaga" + | "America/Panama" + | "America/Pangnirtung" + | "America/Paramaribo" + | "America/Phoenix" + | "America/Port-au-Prince" + | "America/Port_of_Spain" + | "America/Porto_Acre" + | "America/Porto_Velho" + | "America/Puerto_Rico" + | "America/Punta_Arenas" + | "America/Rainy_River" + | "America/Rankin_Inlet" + | "America/Recife" + | "America/Regina" + | "America/Resolute" + | "America/Rio_Branco" + | "America/Rosario" + | "America/Santa_Isabel" + | "America/Santarem" + | "America/Santiago" + | "America/Santo_Domingo" + | "America/Sao_Paulo" + | "America/Scoresbysund" + | "America/Shiprock" + | "America/Sitka" + | "America/St_Barthelemy" + | "America/St_Johns" + | "America/St_Kitts" + | "America/St_Lucia" + | "America/St_Thomas" + | "America/St_Vincent" + | "America/Swift_Current" + | "America/Tegucigalpa" + | "America/Thule" + | "America/Thunder_Bay" + | "America/Tijuana" + | "America/Toronto" + | "America/Tortola" + | "America/Vancouver" + | "America/Virgin" + | "America/Whitehorse" + | "America/Winnipeg" + | "America/Yakutat" + | "America/Yellowknife" + | "Antarctica/Casey" + | "Antarctica/Davis" + | "Antarctica/DumontDUrville" + | "Antarctica/Macquarie" + | "Antarctica/Mawson" + | "Antarctica/McMurdo" + | "Antarctica/Palmer" + | "Antarctica/Rothera" + | "Antarctica/South_Pole" + | "Antarctica/Syowa" + | "Antarctica/Troll" + | "Antarctica/Vostok" + | "Arctic/Longyearbyen" + | "Asia/Aden" + | "Asia/Almaty" + | "Asia/Amman" + | "Asia/Anadyr" + | "Asia/Aqtau" + | "Asia/Aqtobe" + | "Asia/Ashgabat" + | "Asia/Ashkhabad" + | "Asia/Atyrau" + | "Asia/Baghdad" + | "Asia/Bahrain" + | "Asia/Baku" + | "Asia/Bangkok" + | "Asia/Barnaul" + | "Asia/Beirut" + | "Asia/Bishkek" + | "Asia/Brunei" + | "Asia/Calcutta" + | "Asia/Chita" + | "Asia/Choibalsan" + | "Asia/Chongqing" + | "Asia/Chungking" + | "Asia/Colombo" + | "Asia/Dacca" + | "Asia/Damascus" + | "Asia/Dhaka" + | "Asia/Dili" + | "Asia/Dubai" + | "Asia/Dushanbe" + | "Asia/Famagusta" + | "Asia/Gaza" + | "Asia/Harbin" + | "Asia/Hebron" + | "Asia/Ho_Chi_Minh" + | "Asia/Hong_Kong" + | "Asia/Hovd" + | "Asia/Irkutsk" + | "Asia/Istanbul" + | "Asia/Jakarta" + | "Asia/Jayapura" + | "Asia/Jerusalem" + | "Asia/Kabul" + | "Asia/Kamchatka" + | "Asia/Karachi" + | "Asia/Kashgar" + | "Asia/Kathmandu" + | "Asia/Katmandu" + | "Asia/Khandyga" + | "Asia/Kolkata" + | "Asia/Krasnoyarsk" + | "Asia/Kuala_Lumpur" + | "Asia/Kuching" + | "Asia/Kuwait" + | "Asia/Macao" + | "Asia/Macau" + | "Asia/Magadan" + | "Asia/Makassar" + | "Asia/Manila" + | "Asia/Muscat" + | "Asia/Nicosia" + | "Asia/Novokuznetsk" + | "Asia/Novosibirsk" + | "Asia/Omsk" + | "Asia/Oral" + | "Asia/Phnom_Penh" + | "Asia/Pontianak" + | "Asia/Pyongyang" + | "Asia/Qatar" + | "Asia/Qostanay" + | "Asia/Qyzylorda" + | "Asia/Rangoon" + | "Asia/Riyadh" + | "Asia/Saigon" + | "Asia/Sakhalin" + | "Asia/Samarkand" + | "Asia/Seoul" + | "Asia/Shanghai" + | "Asia/Singapore" + | "Asia/Srednekolymsk" + | "Asia/Taipei" + | "Asia/Tashkent" + | "Asia/Tbilisi" + | "Asia/Tehran" + | "Asia/Tel_Aviv" + | "Asia/Thimbu" + | "Asia/Thimphu" + | "Asia/Tokyo" + | "Asia/Tomsk" + | "Asia/Ujung_Pandang" + | "Asia/Ulaanbaatar" + | "Asia/Ulan_Bator" + | "Asia/Urumqi" + | "Asia/Ust-Nera" + | "Asia/Vientiane" + | "Asia/Vladivostok" + | "Asia/Yakutsk" + | "Asia/Yangon" + | "Asia/Yekaterinburg" + | "Asia/Yerevan" + | "Atlantic/Azores" + | "Atlantic/Bermuda" + | "Atlantic/Canary" + | "Atlantic/Cape_Verde" + | "Atlantic/Faeroe" + | "Atlantic/Faroe" + | "Atlantic/Jan_Mayen" + | "Atlantic/Madeira" + | "Atlantic/Reykjavik" + | "Atlantic/South_Georgia" + | "Atlantic/St_Helena" + | "Atlantic/Stanley" + | "Australia/ACT" + | "Australia/Adelaide" + | "Australia/Brisbane" + | "Australia/Broken_Hill" + | "Australia/Canberra" + | "Australia/Currie" + | "Australia/Darwin" + | "Australia/Eucla" + | "Australia/Hobart" + | "Australia/LHI" + | "Australia/Lindeman" + | "Australia/Lord_Howe" + | "Australia/Melbourne" + | "Australia/NSW" + | "Australia/North" + | "Australia/Perth" + | "Australia/Queensland" + | "Australia/South" + | "Australia/Sydney" + | "Australia/Tasmania" + | "Australia/Victoria" + | "Australia/West" + | "Australia/Yancowinna" + | "Brazil/Acre" + | "Brazil/DeNoronha" + | "Brazil/East" + | "Brazil/West" + | "CET" + | "CST6CDT" + | "Canada/Atlantic" + | "Canada/Central" + | "Canada/Eastern" + | "Canada/Mountain" + | "Canada/Newfoundland" + | "Canada/Pacific" + | "Canada/Saskatchewan" + | "Canada/Yukon" + | "Chile/Continental" + | "Chile/EasterIsland" + | "Cuba" + | "EET" + | "EST" + | "EST5EDT" + | "Egypt" + | "Eire" + | "Etc/GMT" + | "Etc/GMT+0" + | "Etc/GMT+1" + | "Etc/GMT+10" + | "Etc/GMT+11" + | "Etc/GMT+12" + | "Etc/GMT+2" + | "Etc/GMT+3" + | "Etc/GMT+4" + | "Etc/GMT+5" + | "Etc/GMT+6" + | "Etc/GMT+7" + | "Etc/GMT+8" + | "Etc/GMT+9" + | "Etc/GMT-0" + | "Etc/GMT-1" + | "Etc/GMT-10" + | "Etc/GMT-11" + | "Etc/GMT-12" + | "Etc/GMT-13" + | "Etc/GMT-14" + | "Etc/GMT-2" + | "Etc/GMT-3" + | "Etc/GMT-4" + | "Etc/GMT-5" + | "Etc/GMT-6" + | "Etc/GMT-7" + | "Etc/GMT-8" + | "Etc/GMT-9" + | "Etc/GMT0" + | "Etc/Greenwich" + | "Etc/UCT" + | "Etc/UTC" + | "Etc/Universal" + | "Etc/Zulu" + | "Europe/Amsterdam" + | "Europe/Andorra" + | "Europe/Astrakhan" + | "Europe/Athens" + | "Europe/Belfast" + | "Europe/Belgrade" + | "Europe/Berlin" + | "Europe/Bratislava" + | "Europe/Brussels" + | "Europe/Bucharest" + | "Europe/Budapest" + | "Europe/Busingen" + | "Europe/Chisinau" + | "Europe/Copenhagen" + | "Europe/Dublin" + | "Europe/Gibraltar" + | "Europe/Guernsey" + | "Europe/Helsinki" + | "Europe/Isle_of_Man" + | "Europe/Istanbul" + | "Europe/Jersey" + | "Europe/Kaliningrad" + | "Europe/Kiev" + | "Europe/Kirov" + | "Europe/Kyiv" + | "Europe/Lisbon" + | "Europe/Ljubljana" + | "Europe/London" + | "Europe/Luxembourg" + | "Europe/Madrid" + | "Europe/Malta" + | "Europe/Mariehamn" + | "Europe/Minsk" + | "Europe/Monaco" + | "Europe/Moscow" + | "Europe/Nicosia" + | "Europe/Oslo" + | "Europe/Paris" + | "Europe/Podgorica" + | "Europe/Prague" + | "Europe/Riga" + | "Europe/Rome" + | "Europe/Samara" + | "Europe/San_Marino" + | "Europe/Sarajevo" + | "Europe/Saratov" + | "Europe/Simferopol" + | "Europe/Skopje" + | "Europe/Sofia" + | "Europe/Stockholm" + | "Europe/Tallinn" + | "Europe/Tirane" + | "Europe/Tiraspol" + | "Europe/Ulyanovsk" + | "Europe/Uzhgorod" + | "Europe/Vaduz" + | "Europe/Vatican" + | "Europe/Vienna" + | "Europe/Vilnius" + | "Europe/Volgograd" + | "Europe/Warsaw" + | "Europe/Zagreb" + | "Europe/Zaporozhye" + | "Europe/Zurich" + | "Factory" + | "GB" + | "GB-Eire" + | "GMT" + | "GMT+0" + | "GMT-0" + | "GMT0" + | "Greenwich" + | "HST" + | "Hongkong" + | "Iceland" + | "Indian/Antananarivo" + | "Indian/Chagos" + | "Indian/Christmas" + | "Indian/Cocos" + | "Indian/Comoro" + | "Indian/Kerguelen" + | "Indian/Mahe" + | "Indian/Maldives" + | "Indian/Mauritius" + | "Indian/Mayotte" + | "Indian/Reunion" + | "Iran" + | "Israel" + | "Jamaica" + | "Japan" + | "Kwajalein" + | "Libya" + | "MET" + | "MST" + | "MST7MDT" + | "Mexico/BajaNorte" + | "Mexico/BajaSur" + | "Mexico/General" + | "NZ" + | "NZ-CHAT" + | "Navajo" + | "PRC" + | "PST8PDT" + | "Pacific/Apia" + | "Pacific/Auckland" + | "Pacific/Bougainville" + | "Pacific/Chatham" + | "Pacific/Chuuk" + | "Pacific/Easter" + | "Pacific/Efate" + | "Pacific/Enderbury" + | "Pacific/Fakaofo" + | "Pacific/Fiji" + | "Pacific/Funafuti" + | "Pacific/Galapagos" + | "Pacific/Gambier" + | "Pacific/Guadalcanal" + | "Pacific/Guam" + | "Pacific/Honolulu" + | "Pacific/Johnston" + | "Pacific/Kanton" + | "Pacific/Kiritimati" + | "Pacific/Kosrae" + | "Pacific/Kwajalein" + | "Pacific/Majuro" + | "Pacific/Marquesas" + | "Pacific/Midway" + | "Pacific/Nauru" + | "Pacific/Niue" + | "Pacific/Norfolk" + | "Pacific/Noumea" + | "Pacific/Pago_Pago" + | "Pacific/Palau" + | "Pacific/Pitcairn" + | "Pacific/Pohnpei" + | "Pacific/Ponape" + | "Pacific/Port_Moresby" + | "Pacific/Rarotonga" + | "Pacific/Saipan" + | "Pacific/Samoa" + | "Pacific/Tahiti" + | "Pacific/Tarawa" + | "Pacific/Tongatapu" + | "Pacific/Truk" + | "Pacific/Wake" + | "Pacific/Wallis" + | "Pacific/Yap" + | "Poland" + | "Portugal" + | "ROC" + | "ROK" + | "Singapore" + | "Turkey" + | "UCT" + | "US/Alaska" + | "US/Aleutian" + | "US/Arizona" + | "US/Central" + | "US/East-Indiana" + | "US/Eastern" + | "US/Hawaii" + | "US/Indiana-Starke" + | "US/Michigan" + | "US/Mountain" + | "US/Pacific" + | "US/Pacific-New" + | "US/Samoa" + | "UTC" + | "Universal" + | "W-SU" + | "WET" + | "Zulu" + ) + | undefined + } + | undefined report_type: string } }, @@ -27806,10 +32066,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -27883,7 +32143,7 @@ export class StripeApi extends AbstractAxiosClient { p: { review: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, @@ -27910,10 +32170,10 @@ export class StripeApi extends AbstractAxiosClient { p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -27963,10 +32223,10 @@ export class StripeApi extends AbstractAxiosClient { attachToSelf?: boolean created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -28017,375 +32277,504 @@ export class StripeApi extends AbstractAxiosClient { async postSetupIntents( p: { requestBody?: { - attach_to_self?: boolean - automatic_payment_methods?: { - allow_redirects?: "always" | "never" - enabled: boolean - } - confirm?: boolean - confirmation_token?: string - customer?: string - description?: string - expand?: string[] - flow_directions?: ("inbound" | "outbound")[] - mandate_data?: + attach_to_self?: boolean | undefined + automatic_payment_methods?: | { - customer_acceptance: { - accepted_at?: number - offline?: EmptyObject - online?: { - ip_address: string - user_agent: string - } - type: "offline" | "online" - } + allow_redirects?: ("always" | "never") | undefined + enabled: boolean } - | "" - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - payment_method?: string - payment_method_configuration?: string - payment_method_data?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: + | undefined + confirm?: boolean | undefined + confirmation_token?: string | undefined + customer?: string | undefined + description?: string | undefined + expand?: string[] | undefined + flow_directions?: ("inbound" | "outbound")[] | undefined + mandate_data?: + | ( | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string + customer_acceptance: { + accepted_at?: number | undefined + offline?: EmptyObject | undefined + online?: + | { + ip_address: string + user_agent: string + } + | undefined + type: "offline" | "online" + } } | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } - cashapp?: EmptyObject - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number - } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject - type: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject - } - payment_method_options?: { - acss_debit?: { - currency?: "cad" | "usd" - mandate_options?: { - custom_mandate_url?: string | "" - default_for?: ("invoice" | "subscription")[] - interval_description?: string - payment_schedule?: "combined" | "interval" | "sporadic" - transaction_type?: "business" | "personal" - } - verification_method?: "automatic" | "instant" | "microdeposits" - } - amazon_pay?: EmptyObject - bacs_debit?: { - mandate_options?: EmptyObject - } - card?: { - mandate_options?: { - amount: number - amount_type: "fixed" | "maximum" - currency: string - description?: string - end_date?: number - interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number - reference: string - start_date: number - supported_types?: "india"[] - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_three_d_secure?: "any" | "automatic" | "challenge" - three_d_secure?: { - ares_trans_status?: "A" | "C" | "I" | "N" | "R" | "U" | "Y" - cryptogram?: string - electronic_commerce_indicator?: "01" | "02" | "05" | "06" | "07" - network_options?: { - cartes_bancaires?: { - cb_avalgo: "0" | "1" | "2" | "3" | "4" | "A" - cb_exemption?: string - cb_score?: number - } - } - requestor_challenge_indicator?: string - transaction_id?: string - version?: "1.0.2" | "2.1.0" | "2.2.0" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined } - } - card_present?: EmptyObject - link?: EmptyObject - paypal?: { - billing_agreement_id?: string - } - sepa_debit?: { - mandate_options?: EmptyObject - } - us_bank_account?: { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string + | undefined + on_behalf_of?: string | undefined + payment_method?: string | undefined + payment_method_configuration?: string | undefined + payment_method_data?: + | { + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined + cashapp?: EmptyObject | undefined + customer_balance?: EmptyObject | undefined + eps?: + | { + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined + type: + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined } - mandate_options?: { - collection_method?: "" | "paper" + | undefined + payment_method_options?: + | { + acss_debit?: + | { + currency?: ("cad" | "usd") | undefined + mandate_options?: + | { + custom_mandate_url?: (string | "") | undefined + default_for?: + | ("invoice" | "subscription")[] + | undefined + interval_description?: string | undefined + payment_schedule?: + | ("combined" | "interval" | "sporadic") + | undefined + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | undefined + amazon_pay?: EmptyObject | undefined + bacs_debit?: + | { + mandate_options?: EmptyObject | undefined + } + | undefined + card?: + | { + mandate_options?: + | { + amount: number + amount_type: "fixed" | "maximum" + currency: string + description?: string | undefined + end_date?: number | undefined + interval: + | "day" + | "month" + | "sporadic" + | "week" + | "year" + interval_count?: number | undefined + reference: string + start_date: number + supported_types?: "india"[] | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + three_d_secure?: + | { + ares_trans_status?: + | ("A" | "C" | "I" | "N" | "R" | "U" | "Y") + | undefined + cryptogram?: string | undefined + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07") + | undefined + network_options?: + | { + cartes_bancaires?: + | { + cb_avalgo: + | "0" + | "1" + | "2" + | "3" + | "4" + | "A" + cb_exemption?: string | undefined + cb_score?: number | undefined + } + | undefined + } + | undefined + requestor_challenge_indicator?: string | undefined + transaction_id?: string | undefined + version?: ("1.0.2" | "2.1.0" | "2.2.0") | undefined + } + | undefined + } + | undefined + card_present?: EmptyObject | undefined + link?: EmptyObject | undefined + paypal?: + | { + billing_agreement_id?: string | undefined + } + | undefined + sepa_debit?: + | { + mandate_options?: EmptyObject | undefined + } + | undefined + us_bank_account?: + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ("balances" | "ownership" | "transactions")[] + | undefined + return_url?: string | undefined + } + | undefined + mandate_options?: + | { + collection_method?: ("" | "paper") | undefined + } + | undefined + networks?: + | { + requested?: ("ach" | "us_domestic_wire")[] | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | undefined } - networks?: { - requested?: ("ach" | "us_domestic_wire")[] + | undefined + payment_method_types?: string[] | undefined + return_url?: string | undefined + single_use?: + | { + amount: number + currency: string } - verification_method?: "automatic" | "instant" | "microdeposits" - } - } - payment_method_types?: string[] - return_url?: string - single_use?: { - amount: number - currency: string - } - usage?: "off_session" | "on_session" - use_stripe_sdk?: boolean + | undefined + usage?: ("off_session" | "on_session") | undefined + use_stripe_sdk?: boolean | undefined } } = {}, timeout?: number, @@ -28432,361 +32821,482 @@ export class StripeApi extends AbstractAxiosClient { return this._request({ url: url + query, method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postSetupIntentsIntent( - p: { - intent: string - requestBody?: { - attach_to_self?: boolean - customer?: string - description?: string - expand?: string[] - flow_directions?: ("inbound" | "outbound")[] - metadata?: - | { - [key: string]: string | undefined - } - | "" - payment_method?: string - payment_method_configuration?: string - payment_method_data?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } - cashapp?: EmptyObject - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number - } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject - type: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject - } - payment_method_options?: { - acss_debit?: { - currency?: "cad" | "usd" - mandate_options?: { - custom_mandate_url?: string | "" - default_for?: ("invoice" | "subscription")[] - interval_description?: string - payment_schedule?: "combined" | "interval" | "sporadic" - transaction_type?: "business" | "personal" - } - verification_method?: "automatic" | "instant" | "microdeposits" - } - amazon_pay?: EmptyObject - bacs_debit?: { - mandate_options?: EmptyObject - } - card?: { - mandate_options?: { - amount: number - amount_type: "fixed" | "maximum" - currency: string - description?: string - end_date?: number - interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number - reference: string - start_date: number - supported_types?: "india"[] - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_three_d_secure?: "any" | "automatic" | "challenge" - three_d_secure?: { - ares_trans_status?: "A" | "C" | "I" | "N" | "R" | "U" | "Y" - cryptogram?: string - electronic_commerce_indicator?: "01" | "02" | "05" | "06" | "07" - network_options?: { - cartes_bancaires?: { - cb_avalgo: "0" | "1" | "2" | "3" | "4" | "A" - cb_exemption?: string - cb_score?: number + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postSetupIntentsIntent( + p: { + intent: string + requestBody?: { + attach_to_self?: boolean | undefined + customer?: string | undefined + description?: string | undefined + expand?: string[] | undefined + flow_directions?: ("inbound" | "outbound")[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined } - } - requestor_challenge_indicator?: string - transaction_id?: string - version?: "1.0.2" | "2.1.0" | "2.2.0" - } - } - card_present?: EmptyObject - link?: EmptyObject - paypal?: { - billing_agreement_id?: string - } - sepa_debit?: { - mandate_options?: EmptyObject - } - us_bank_account?: { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string - } - mandate_options?: { - collection_method?: "" | "paper" + | "" + ) + | undefined + payment_method?: string | undefined + payment_method_configuration?: string | undefined + payment_method_data?: + | { + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined + cashapp?: EmptyObject | undefined + customer_balance?: EmptyObject | undefined + eps?: + | { + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined + type: + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined } - networks?: { - requested?: ("ach" | "us_domestic_wire")[] + | undefined + payment_method_options?: + | { + acss_debit?: + | { + currency?: ("cad" | "usd") | undefined + mandate_options?: + | { + custom_mandate_url?: (string | "") | undefined + default_for?: + | ("invoice" | "subscription")[] + | undefined + interval_description?: string | undefined + payment_schedule?: + | ("combined" | "interval" | "sporadic") + | undefined + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | undefined + amazon_pay?: EmptyObject | undefined + bacs_debit?: + | { + mandate_options?: EmptyObject | undefined + } + | undefined + card?: + | { + mandate_options?: + | { + amount: number + amount_type: "fixed" | "maximum" + currency: string + description?: string | undefined + end_date?: number | undefined + interval: + | "day" + | "month" + | "sporadic" + | "week" + | "year" + interval_count?: number | undefined + reference: string + start_date: number + supported_types?: "india"[] | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + three_d_secure?: + | { + ares_trans_status?: + | ("A" | "C" | "I" | "N" | "R" | "U" | "Y") + | undefined + cryptogram?: string | undefined + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07") + | undefined + network_options?: + | { + cartes_bancaires?: + | { + cb_avalgo: + | "0" + | "1" + | "2" + | "3" + | "4" + | "A" + cb_exemption?: string | undefined + cb_score?: number | undefined + } + | undefined + } + | undefined + requestor_challenge_indicator?: string | undefined + transaction_id?: string | undefined + version?: ("1.0.2" | "2.1.0" | "2.2.0") | undefined + } + | undefined + } + | undefined + card_present?: EmptyObject | undefined + link?: EmptyObject | undefined + paypal?: + | { + billing_agreement_id?: string | undefined + } + | undefined + sepa_debit?: + | { + mandate_options?: EmptyObject | undefined + } + | undefined + us_bank_account?: + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ("balances" | "ownership" | "transactions")[] + | undefined + return_url?: string | undefined + } + | undefined + mandate_options?: + | { + collection_method?: ("" | "paper") | undefined + } + | undefined + networks?: + | { + requested?: ("ach" | "us_domestic_wire")[] | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | undefined } - verification_method?: "automatic" | "instant" | "microdeposits" - } - } - payment_method_types?: string[] + | undefined + payment_method_types?: string[] | undefined } }, timeout?: number, @@ -28814,10 +33324,9 @@ export class StripeApi extends AbstractAxiosClient { intent: string requestBody?: { cancellation_reason?: - | "abandoned" - | "duplicate" - | "requested_by_customer" - expand?: string[] + | ("abandoned" | "duplicate" | "requested_by_customer") + | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -28844,365 +33353,488 @@ export class StripeApi extends AbstractAxiosClient { p: { intent: string requestBody?: { - client_secret?: string - confirmation_token?: string - expand?: string[] + client_secret?: string | undefined + confirmation_token?: string | undefined + expand?: string[] | undefined mandate_data?: - | { - customer_acceptance: { - accepted_at?: number - offline?: EmptyObject - online?: { - ip_address: string - user_agent: string + | ( + | { + customer_acceptance: { + accepted_at?: number | undefined + offline?: EmptyObject | undefined + online?: + | { + ip_address: string + user_agent: string + } + | undefined + type: "offline" | "online" + } } - type: "offline" | "online" - } + | "" + | { + customer_acceptance: { + online: { + ip_address?: string | undefined + user_agent?: string | undefined + } + type: "online" + } + } + ) + | undefined + payment_method?: string | undefined + payment_method_data?: + | { + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined + cashapp?: EmptyObject | undefined + customer_balance?: EmptyObject | undefined + eps?: + | { + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined + type: + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined } - | "" + | undefined + payment_method_options?: | { - customer_acceptance: { - online: { - ip_address?: string - user_agent?: string - } - type: "online" - } - } - payment_method?: string - payment_method_data?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } - cashapp?: EmptyObject - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number - } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject - type: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject - } - payment_method_options?: { - acss_debit?: { - currency?: "cad" | "usd" - mandate_options?: { - custom_mandate_url?: string | "" - default_for?: ("invoice" | "subscription")[] - interval_description?: string - payment_schedule?: "combined" | "interval" | "sporadic" - transaction_type?: "business" | "personal" - } - verification_method?: "automatic" | "instant" | "microdeposits" - } - amazon_pay?: EmptyObject - bacs_debit?: { - mandate_options?: EmptyObject - } - card?: { - mandate_options?: { - amount: number - amount_type: "fixed" | "maximum" - currency: string - description?: string - end_date?: number - interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number - reference: string - start_date: number - supported_types?: "india"[] - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_three_d_secure?: "any" | "automatic" | "challenge" - three_d_secure?: { - ares_trans_status?: "A" | "C" | "I" | "N" | "R" | "U" | "Y" - cryptogram?: string - electronic_commerce_indicator?: "01" | "02" | "05" | "06" | "07" - network_options?: { - cartes_bancaires?: { - cb_avalgo: "0" | "1" | "2" | "3" | "4" | "A" - cb_exemption?: string - cb_score?: number - } - } - requestor_challenge_indicator?: string - transaction_id?: string - version?: "1.0.2" | "2.1.0" | "2.2.0" - } - } - card_present?: EmptyObject - link?: EmptyObject - paypal?: { - billing_agreement_id?: string - } - sepa_debit?: { - mandate_options?: EmptyObject - } - us_bank_account?: { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - return_url?: string - } - mandate_options?: { - collection_method?: "" | "paper" - } - networks?: { - requested?: ("ach" | "us_domestic_wire")[] + acss_debit?: + | { + currency?: ("cad" | "usd") | undefined + mandate_options?: + | { + custom_mandate_url?: (string | "") | undefined + default_for?: + | ("invoice" | "subscription")[] + | undefined + interval_description?: string | undefined + payment_schedule?: + | ("combined" | "interval" | "sporadic") + | undefined + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | undefined + amazon_pay?: EmptyObject | undefined + bacs_debit?: + | { + mandate_options?: EmptyObject | undefined + } + | undefined + card?: + | { + mandate_options?: + | { + amount: number + amount_type: "fixed" | "maximum" + currency: string + description?: string | undefined + end_date?: number | undefined + interval: + | "day" + | "month" + | "sporadic" + | "week" + | "year" + interval_count?: number | undefined + reference: string + start_date: number + supported_types?: "india"[] | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + three_d_secure?: + | { + ares_trans_status?: + | ("A" | "C" | "I" | "N" | "R" | "U" | "Y") + | undefined + cryptogram?: string | undefined + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07") + | undefined + network_options?: + | { + cartes_bancaires?: + | { + cb_avalgo: + | "0" + | "1" + | "2" + | "3" + | "4" + | "A" + cb_exemption?: string | undefined + cb_score?: number | undefined + } + | undefined + } + | undefined + requestor_challenge_indicator?: string | undefined + transaction_id?: string | undefined + version?: ("1.0.2" | "2.1.0" | "2.2.0") | undefined + } + | undefined + } + | undefined + card_present?: EmptyObject | undefined + link?: EmptyObject | undefined + paypal?: + | { + billing_agreement_id?: string | undefined + } + | undefined + sepa_debit?: + | { + mandate_options?: EmptyObject | undefined + } + | undefined + us_bank_account?: + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ("balances" | "ownership" | "transactions")[] + | undefined + return_url?: string | undefined + } + | undefined + mandate_options?: + | { + collection_method?: ("" | "paper") | undefined + } + | undefined + networks?: + | { + requested?: ("ach" | "us_domestic_wire")[] | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | undefined } - verification_method?: "automatic" | "instant" | "microdeposits" - } - } - return_url?: string - use_stripe_sdk?: boolean + | undefined + return_url?: string | undefined + use_stripe_sdk?: boolean | undefined } }, timeout?: number, @@ -29229,10 +33861,10 @@ export class StripeApi extends AbstractAxiosClient { p: { intent: string requestBody?: { - amounts?: number[] - client_secret?: string - descriptor_code?: string - expand?: string[] + amounts?: number[] | undefined + client_secret?: string | undefined + descriptor_code?: string | undefined + expand?: string[] | undefined } }, timeout?: number, @@ -29260,10 +33892,10 @@ export class StripeApi extends AbstractAxiosClient { active?: boolean created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number currency?: string @@ -29312,36 +33944,50 @@ export class StripeApi extends AbstractAxiosClient { async postShippingRates( p: { requestBody: { - delivery_estimate?: { - maximum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } - minimum?: { - unit: "business_day" | "day" | "hour" | "month" | "week" - value: number - } - } + delivery_estimate?: + | { + maximum?: + | { + unit: "business_day" | "day" | "hour" | "month" | "week" + value: number + } + | undefined + minimum?: + | { + unit: "business_day" | "day" | "hour" | "month" | "week" + value: number + } + | undefined + } + | undefined display_name: string - expand?: string[] - fixed_amount?: { - amount: number - currency: string - currency_options?: { - [key: string]: - | { - amount: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - } - | undefined - } - } - metadata?: { - [key: string]: string | undefined - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - tax_code?: string - type?: "fixed_amount" + expand?: string[] | undefined + fixed_amount?: + | { + amount: number + currency: string + currency_options?: + | { + [key: string]: + | { + amount: number + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + } + | undefined + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined + tax_code?: string | undefined + type?: "fixed_amount" | undefined } }, timeout?: number, @@ -29395,24 +34041,33 @@ export class StripeApi extends AbstractAxiosClient { p: { shippingRateToken: string requestBody?: { - active?: boolean - expand?: string[] - fixed_amount?: { - currency_options?: { - [key: string]: - | { - amount?: number - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - } - | undefined - } - } - metadata?: + active?: boolean | undefined + expand?: string[] | undefined + fixed_amount?: | { - [key: string]: string | undefined + currency_options?: + | { + [key: string]: + | { + amount?: number | undefined + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + } + | undefined + } + | undefined } - | "" - tax_behavior?: "exclusive" | "inclusive" | "unspecified" + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified") | undefined } }, timeout?: number, @@ -29506,88 +34161,119 @@ export class StripeApi extends AbstractAxiosClient { async postSources( p: { requestBody?: { - amount?: number - currency?: string - customer?: string - expand?: string[] - flow?: "code_verification" | "none" | "receiver" | "redirect" - mandate?: { - acceptance?: { - date?: number - ip?: string - offline?: { - contact_email: string - } - online?: { - date?: number - ip?: string - user_agent?: string - } - status: "accepted" | "pending" | "refused" | "revoked" - type?: "offline" | "online" - user_agent?: string - } - amount?: number | "" - currency?: string - interval?: "one_time" | "scheduled" | "variable" - notification_method?: - | "deprecated_none" - | "email" - | "manual" - | "none" - | "stripe_email" - } - metadata?: { - [key: string]: string | undefined - } - original_source?: string - owner?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - email?: string - name?: string - phone?: string - } - receiver?: { - refund_attributes_method?: "email" | "manual" | "none" - } - redirect?: { - return_url: string - } - source_order?: { - items?: { - amount?: number - currency?: string - description?: string - parent?: string - quantity?: number - type?: "discount" | "shipping" | "sku" | "tax" - }[] - shipping?: { - address: { - city?: string - country?: string - line1: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name?: string - phone?: string - tracking_number?: string - } - } - statement_descriptor?: string - token?: string - type?: string - usage?: "reusable" | "single_use" + amount?: number | undefined + currency?: string | undefined + customer?: string | undefined + expand?: string[] | undefined + flow?: + | ("code_verification" | "none" | "receiver" | "redirect") + | undefined + mandate?: + | { + acceptance?: + | { + date?: number | undefined + ip?: string | undefined + offline?: + | { + contact_email: string + } + | undefined + online?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: string | undefined + } + | undefined + status: "accepted" | "pending" | "refused" | "revoked" + type?: ("offline" | "online") | undefined + user_agent?: string | undefined + } + | undefined + amount?: (number | "") | undefined + currency?: string | undefined + interval?: ("one_time" | "scheduled" | "variable") | undefined + notification_method?: + | ( + | "deprecated_none" + | "email" + | "manual" + | "none" + | "stripe_email" + ) + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + original_source?: string | undefined + owner?: + | { + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + email?: string | undefined + name?: string | undefined + phone?: string | undefined + } + | undefined + receiver?: + | { + refund_attributes_method?: + | ("email" | "manual" | "none") + | undefined + } + | undefined + redirect?: + | { + return_url: string + } + | undefined + source_order?: + | { + items?: + | { + amount?: number | undefined + currency?: string | undefined + description?: string | undefined + parent?: string | undefined + quantity?: number | undefined + type?: ("discount" | "shipping" | "sku" | "tax") | undefined + }[] + | undefined + shipping?: + | { + address: { + city?: string | undefined + country?: string | undefined + line1: string + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + carrier?: string | undefined + name?: string | undefined + phone?: string | undefined + tracking_number?: string | undefined + } + | undefined + } + | undefined + statement_descriptor?: string | undefined + token?: string | undefined + type?: string | undefined + usage?: ("reusable" | "single_use") | undefined } } = {}, timeout?: number, @@ -29645,76 +34331,100 @@ export class StripeApi extends AbstractAxiosClient { p: { source: string requestBody?: { - amount?: number - expand?: string[] - mandate?: { - acceptance?: { - date?: number - ip?: string - offline?: { - contact_email: string - } - online?: { - date?: number - ip?: string - user_agent?: string - } - status: "accepted" | "pending" | "refused" | "revoked" - type?: "offline" | "online" - user_agent?: string - } - amount?: number | "" - currency?: string - interval?: "one_time" | "scheduled" | "variable" - notification_method?: - | "deprecated_none" - | "email" - | "manual" - | "none" - | "stripe_email" - } + amount?: number | undefined + expand?: string[] | undefined + mandate?: + | { + acceptance?: + | { + date?: number | undefined + ip?: string | undefined + offline?: + | { + contact_email: string + } + | undefined + online?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: string | undefined + } + | undefined + status: "accepted" | "pending" | "refused" | "revoked" + type?: ("offline" | "online") | undefined + user_agent?: string | undefined + } + | undefined + amount?: (number | "") | undefined + currency?: string | undefined + interval?: ("one_time" | "scheduled" | "variable") | undefined + notification_method?: + | ( + | "deprecated_none" + | "email" + | "manual" + | "none" + | "stripe_email" + ) + | undefined + } + | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + owner?: | { - [key: string]: string | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + email?: string | undefined + name?: string | undefined + phone?: string | undefined } - | "" - owner?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - email?: string - name?: string - phone?: string - } - source_order?: { - items?: { - amount?: number - currency?: string - description?: string - parent?: string - quantity?: number - type?: "discount" | "shipping" | "sku" | "tax" - }[] - shipping?: { - address: { - city?: string - country?: string - line1: string - line2?: string - postal_code?: string - state?: string - } - carrier?: string - name?: string - phone?: string - tracking_number?: string - } - } + | undefined + source_order?: + | { + items?: + | { + amount?: number | undefined + currency?: string | undefined + description?: string | undefined + parent?: string | undefined + quantity?: number | undefined + type?: ("discount" | "shipping" | "sku" | "tax") | undefined + }[] + | undefined + shipping?: + | { + address: { + city?: string | undefined + country?: string | undefined + line1: string + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + carrier?: string | undefined + name?: string | undefined + phone?: string | undefined + tracking_number?: string | undefined + } + | undefined + } + | undefined } }, timeout?: number, @@ -29839,7 +34549,7 @@ export class StripeApi extends AbstractAxiosClient { p: { source: string requestBody: { - expand?: string[] + expand?: string[] | undefined values: string[] } }, @@ -29910,43 +34620,60 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { billing_thresholds?: - | { - usage_gte: number - } - | "" + | ( + | { + usage_gte: number + } + | "" + ) + | undefined discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined + metadata?: | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - expand?: string[] - metadata?: { - [key: string]: string | undefined - } + [key: string]: string | undefined + } + | undefined payment_behavior?: - | "allow_incomplete" - | "default_incomplete" - | "error_if_incomplete" - | "pending_if_incomplete" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number - quantity?: number + | ( + | "allow_incomplete" + | "default_incomplete" + | "error_if_incomplete" + | "pending_if_incomplete" + ) + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined + quantity?: number | undefined subscription: string - tax_rates?: string[] | "" + tax_rates?: (string[] | "") | undefined } }, timeout?: number, @@ -29973,9 +34700,11 @@ export class StripeApi extends AbstractAxiosClient { p: { item: string requestBody?: { - clear_usage?: boolean - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number + clear_usage?: boolean | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined } }, timeout?: number, @@ -30030,45 +34759,63 @@ export class StripeApi extends AbstractAxiosClient { item: string requestBody?: { billing_thresholds?: - | { - usage_gte: number - } - | "" + | ( + | { + usage_gte: number + } + | "" + ) + | undefined discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - expand?: string[] + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + off_session?: boolean | undefined + payment_behavior?: + | ( + | "allow_incomplete" + | "default_incomplete" + | "error_if_incomplete" + | "pending_if_incomplete" + ) + | undefined + price?: string | undefined + price_data?: | { - [key: string]: string | undefined + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - | "" - off_session?: boolean - payment_behavior?: - | "allow_incomplete" - | "default_incomplete" - | "error_if_incomplete" - | "pending_if_incomplete" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number - quantity?: number - tax_rates?: string[] | "" + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined } }, timeout?: number, @@ -30137,10 +34884,10 @@ export class StripeApi extends AbstractAxiosClient { p: { subscriptionItem: string requestBody: { - action?: "increment" | "set" - expand?: string[] + action?: ("increment" | "set") | undefined + expand?: string[] | undefined quantity: number - timestamp?: "now" | number + timestamp?: ("now" | number) | undefined } }, timeout?: number, @@ -30167,26 +34914,26 @@ export class StripeApi extends AbstractAxiosClient { p: { canceledAt?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number completedAt?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -30195,10 +34942,10 @@ export class StripeApi extends AbstractAxiosClient { limit?: number releasedAt?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number scheduled?: boolean @@ -30247,150 +34994,215 @@ export class StripeApi extends AbstractAxiosClient { async postSubscriptionSchedules( p: { requestBody?: { - customer?: string - default_settings?: { - application_fee_percent?: number - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "automatic" | "phase_start" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - collection_method?: "charge_automatically" | "send_invoice" - default_payment_method?: string - description?: string | "" - invoice_settings?: { - account_tax_ids?: string[] | "" - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" - } - } - on_behalf_of?: string | "" - transfer_data?: - | { - amount_percent?: number - destination: string - } - | "" - } - end_behavior?: "cancel" | "none" | "release" | "renew" - expand?: string[] - from_subscription?: string - metadata?: + customer?: string | undefined + default_settings?: | { - [key: string]: string | undefined - } - | "" - phases?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "automatic" | "phase_start" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - currency?: string - default_payment_method?: string - default_tax_rates?: string[] | "" - description?: string | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - end_date?: number - invoice_settings?: { - account_tax_ids?: string[] | "" - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_cycle_anchor?: ("automatic" | "phase_start") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + default_payment_method?: string | undefined + description?: (string | "") | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + on_behalf_of?: (string | "") | undefined + transfer_data?: + | ( + | { + amount_percent?: number | undefined + destination: string + } + | "" + ) + | undefined } - } - items: { - billing_thresholds?: + | undefined + end_behavior?: ("cancel" | "none" | "release" | "renew") | undefined + expand?: string[] | undefined + from_subscription?: string | undefined + metadata?: + | ( | { - usage_gte: number + [key: string]: string | undefined } | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - metadata?: { - [key: string]: string | undefined - } - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - iterations?: number - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - transfer_data?: { - amount_percent?: number - destination: string - } - trial?: boolean - trial_end?: number - }[] - start_date?: number | "now" + ) + | undefined + phases?: + | { + add_invoice_items?: + | { + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_cycle_anchor?: ("automatic" | "phase_start") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + currency?: string | undefined + default_payment_method?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + end_date?: number | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items: { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + iterations?: number | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + transfer_data?: + | { + amount_percent?: number | undefined + destination: string + } + | undefined + trial?: boolean | undefined + trial_end?: number | undefined + }[] + | undefined + start_date?: (number | "now") | undefined } } = {}, timeout?: number, @@ -30444,148 +35256,215 @@ export class StripeApi extends AbstractAxiosClient { p: { schedule: string requestBody?: { - default_settings?: { - application_fee_percent?: number - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "automatic" | "phase_start" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - collection_method?: "charge_automatically" | "send_invoice" - default_payment_method?: string - description?: string | "" - invoice_settings?: { - account_tax_ids?: string[] | "" - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" + default_settings?: + | { + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_cycle_anchor?: ("automatic" | "phase_start") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + default_payment_method?: string | undefined + description?: (string | "") | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + on_behalf_of?: (string | "") | undefined + transfer_data?: + | ( + | { + amount_percent?: number | undefined + destination: string + } + | "" + ) + | undefined } - } - on_behalf_of?: string | "" - transfer_data?: - | { - amount_percent?: number - destination: string - } - | "" - } - end_behavior?: "cancel" | "none" | "release" | "renew" - expand?: string[] + | undefined + end_behavior?: ("cancel" | "none" | "release" | "renew") | undefined + expand?: string[] | undefined metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + phases?: | { - [key: string]: string | undefined - } - | "" - phases?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "automatic" | "phase_start" - billing_thresholds?: - | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - default_payment_method?: string - default_tax_rates?: string[] | "" - description?: string | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string + add_invoice_items?: + | { + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + application_fee_percent?: number | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + billing_cycle_anchor?: ("automatic" | "phase_start") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + default_payment_method?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + end_date?: (number | "now") | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + days_until_due?: number | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items: { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - end_date?: number | "now" - invoice_settings?: { - account_tax_ids?: string[] | "" - days_until_due?: number - issuer?: { - account?: string - type: "account" | "self" - } - } - items: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - metadata?: { - [key: string]: string | undefined - } - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - iterations?: number - metadata?: { - [key: string]: string | undefined - } - on_behalf_of?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - start_date?: number | "now" - transfer_data?: { - amount_percent?: number - destination: string - } - trial?: boolean - trial_end?: number | "now" - }[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" + iterations?: number | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + on_behalf_of?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + start_date?: (number | "now") | undefined + transfer_data?: + | { + amount_percent?: number | undefined + destination: string + } + | undefined + trial?: boolean | undefined + trial_end?: (number | "now") | undefined + }[] + | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined } }, timeout?: number, @@ -30612,9 +35491,9 @@ export class StripeApi extends AbstractAxiosClient { p: { schedule: string requestBody?: { - expand?: string[] - invoice_now?: boolean - prorate?: boolean + expand?: string[] | undefined + invoice_now?: boolean | undefined + prorate?: boolean | undefined } }, timeout?: number, @@ -30641,8 +35520,8 @@ export class StripeApi extends AbstractAxiosClient { p: { schedule: string requestBody?: { - expand?: string[] - preserve_cancel_date?: boolean + expand?: string[] | undefined + preserve_cancel_date?: boolean | undefined } }, timeout?: number, @@ -30673,26 +35552,26 @@ export class StripeApi extends AbstractAxiosClient { collectionMethod?: "charge_automatically" | "send_invoice" created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number currentPeriodEnd?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number currentPeriodStart?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number customer?: string @@ -30760,252 +35639,362 @@ export class StripeApi extends AbstractAxiosClient { async postSubscriptions( p: { requestBody: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number | "" - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - backdate_start_date?: number - billing_cycle_anchor?: number - billing_cycle_anchor_config?: { - day_of_month: number - hour?: number - minute?: number - month?: number - second?: number - } - billing_thresholds?: + add_invoice_items?: | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - cancel_at?: number - cancel_at_period_end?: boolean - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - currency?: string - customer: string - days_until_due?: number - default_payment_method?: string - default_source?: string - default_tax_rates?: string[] | "" - description?: string - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - expand?: string[] - invoice_settings?: { - account_tax_ids?: string[] | "" - issuer?: { - account?: string - type: "account" | "self" - } - } - items?: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - metadata?: { - [key: string]: string | undefined - } - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number + | undefined + application_fee_percent?: (number | "") | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - metadata?: + | undefined + backdate_start_date?: number | undefined + billing_cycle_anchor?: number | undefined + billing_cycle_anchor_config?: | { - [key: string]: string | undefined + day_of_month: number + hour?: number | undefined + minute?: number | undefined + month?: number | undefined + second?: number | undefined } - | "" - off_session?: boolean - on_behalf_of?: string | "" - payment_behavior?: - | "allow_incomplete" - | "default_incomplete" - | "error_if_incomplete" - | "pending_if_incomplete" - payment_settings?: { - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - transaction_type?: "business" | "personal" - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } - | "" - bancontact?: + | undefined + billing_thresholds?: + | ( | { - preferred_language?: "de" | "en" | "fr" | "nl" + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined } | "" - card?: + ) + | undefined + cancel_at?: number | undefined + cancel_at_period_end?: boolean | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + currency?: string | undefined + customer: string + days_until_due?: number | undefined + default_payment_method?: string | undefined + default_source?: string | undefined + default_tax_rates?: (string[] | "") | undefined + description?: string | undefined + discounts?: + | ( | { - mandate_options?: { - amount?: number - amount_type?: "fixed" | "maximum" - description?: string - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_three_d_secure?: "any" | "automatic" | "challenge" - } + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string + ) + | undefined + expand?: string[] | undefined + invoice_settings?: + | { + account_tax_ids?: (string[] | "") | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined + } + | undefined + items?: + | { + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined } - type?: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - funding_type?: string + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + metadata?: + | ( + | { + [key: string]: string | undefined } | "" - konbini?: EmptyObject | "" - sepa_debit?: EmptyObject | "" - us_bank_account?: + ) + | undefined + off_session?: boolean | undefined + on_behalf_of?: (string | "") | undefined + payment_behavior?: + | ( + | "allow_incomplete" + | "default_incomplete" + | "error_if_incomplete" + | "pending_if_incomplete" + ) + | undefined + payment_settings?: + | { + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + mandate_options?: + | { + amount?: number | undefined + amount_type?: + | ("fixed" | "maximum") + | undefined + description?: string | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + type?: string | undefined + } + | undefined + funding_type?: string | undefined + } + | "" + ) + | undefined + konbini?: (EmptyObject | "") | undefined + sepa_debit?: (EmptyObject | "") | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ( + | "balances" + | "ownership" + | "transactions" + )[] + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + } + | undefined + payment_method_types?: + | ( + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | "" + ) + | undefined + save_default_payment_method?: + | ("off" | "on_subscription") + | undefined + } + | undefined + pending_invoice_item_interval?: + | ( | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined } | "" - } - payment_method_types?: - | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | "" - save_default_payment_method?: "off" | "on_subscription" - } - pending_invoice_item_interval?: + ) + | undefined + promotion_code?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + transfer_data?: | { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - | "" - promotion_code?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - transfer_data?: { - amount_percent?: number - destination: string - } - trial_end?: "now" | number - trial_from_plan?: boolean - trial_period_days?: number - trial_settings?: { - end_behavior: { - missing_payment_method: "cancel" | "create_invoice" | "pause" - } - } + amount_percent?: number | undefined + destination: string + } + | undefined + trial_end?: ("now" | number) | undefined + trial_from_plan?: boolean | undefined + trial_period_days?: number | undefined + trial_settings?: + | { + end_behavior: { + missing_payment_method: "cancel" | "create_invoice" | "pause" + } + } + | undefined } }, timeout?: number, @@ -31042,9 +36031,9 @@ export class StripeApi extends AbstractAxiosClient { AxiosResponse<{ data: t_subscription[] has_more: boolean - next_page?: string | null + next_page?: (string | null) | undefined object: "search_result" - total_count?: number + total_count?: number | undefined url: string }> > { @@ -31075,22 +36064,27 @@ export class StripeApi extends AbstractAxiosClient { p: { subscriptionExposedId: string requestBody?: { - cancellation_details?: { - comment?: string | "" - feedback?: - | "" - | "customer_service" - | "low_quality" - | "missing_features" - | "other" - | "switched_service" - | "too_complex" - | "too_expensive" - | "unused" - } - expand?: string[] - invoice_now?: boolean - prorate?: boolean + cancellation_details?: + | { + comment?: (string | "") | undefined + feedback?: + | ( + | "" + | "customer_service" + | "low_quality" + | "missing_features" + | "other" + | "switched_service" + | "too_complex" + | "too_expensive" + | "unused" + ) + | undefined + } + | undefined + expand?: string[] | undefined + invoice_now?: boolean | undefined + prorate?: boolean | undefined } }, timeout?: number, @@ -31144,268 +36138,386 @@ export class StripeApi extends AbstractAxiosClient { p: { subscriptionExposedId: string requestBody?: { - add_invoice_items?: { - discounts?: { - coupon?: string - discount?: string - promotion_code?: string - }[] - price?: string - price_data?: { - currency: string - product: string - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - application_fee_percent?: number | "" - automatic_tax?: { - enabled: boolean - liability?: { - account?: string - type: "account" | "self" - } - } - billing_cycle_anchor?: "now" | "unchanged" - billing_thresholds?: + add_invoice_items?: | { - amount_gte?: number - reset_billing_cycle_anchor?: boolean - } - | "" - cancel_at?: number | "" - cancel_at_period_end?: boolean - cancellation_details?: { - comment?: string | "" - feedback?: - | "" - | "customer_service" - | "low_quality" - | "missing_features" - | "other" - | "switched_service" - | "too_complex" - | "too_expensive" - | "unused" - } - collection_method?: "charge_automatically" | "send_invoice" - coupon?: string - days_until_due?: number - default_payment_method?: string - default_source?: string | "" - default_tax_rates?: string[] | "" - description?: string | "" - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string + discounts?: + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined + } + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined }[] - | "" - expand?: string[] - invoice_settings?: { - account_tax_ids?: string[] | "" - issuer?: { - account?: string - type: "account" | "self" - } - } - items?: { - billing_thresholds?: - | { - usage_gte: number - } - | "" - clear_usage?: boolean - deleted?: boolean - discounts?: - | { - coupon?: string - discount?: string - promotion_code?: string - }[] - | "" - id?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - price?: string - price_data?: { - currency: string - product: string - recurring: { - interval: "day" | "month" | "week" | "year" - interval_count?: number + | undefined + application_fee_percent?: (number | "") | undefined + automatic_tax?: + | { + enabled: boolean + liability?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } - tax_behavior?: "exclusive" | "inclusive" | "unspecified" - unit_amount?: number - unit_amount_decimal?: string - } - quantity?: number - tax_rates?: string[] | "" - }[] - metadata?: + | undefined + billing_cycle_anchor?: ("now" | "unchanged") | undefined + billing_thresholds?: + | ( + | { + amount_gte?: number | undefined + reset_billing_cycle_anchor?: boolean | undefined + } + | "" + ) + | undefined + cancel_at?: (number | "") | undefined + cancel_at_period_end?: boolean | undefined + cancellation_details?: + | { + comment?: (string | "") | undefined + feedback?: + | ( + | "" + | "customer_service" + | "low_quality" + | "missing_features" + | "other" + | "switched_service" + | "too_complex" + | "too_expensive" + | "unused" + ) + | undefined + } + | undefined + collection_method?: + | ("charge_automatically" | "send_invoice") + | undefined + coupon?: string | undefined + days_until_due?: number | undefined + default_payment_method?: string | undefined + default_source?: (string | "") | undefined + default_tax_rates?: (string[] | "") | undefined + description?: (string | "") | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + expand?: string[] | undefined + invoice_settings?: | { - [key: string]: string | undefined + account_tax_ids?: (string[] | "") | undefined + issuer?: + | { + account?: string | undefined + type: "account" | "self" + } + | undefined } - | "" - off_session?: boolean - on_behalf_of?: string | "" - pause_collection?: + | undefined + items?: | { - behavior: "keep_as_draft" | "mark_uncollectible" | "void" - resumes_at?: number - } - | "" - payment_behavior?: - | "allow_incomplete" - | "default_incomplete" - | "error_if_incomplete" - | "pending_if_incomplete" - payment_settings?: { - payment_method_options?: { - acss_debit?: - | { - mandate_options?: { - transaction_type?: "business" | "personal" + billing_thresholds?: + | ( + | { + usage_gte: number + } + | "" + ) + | undefined + clear_usage?: boolean | undefined + deleted?: boolean | undefined + discounts?: + | ( + | { + coupon?: string | undefined + discount?: string | undefined + promotion_code?: string | undefined + }[] + | "" + ) + | undefined + id?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + price?: string | undefined + price_data?: + | { + currency: string + product: string + recurring: { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined + } + tax_behavior?: + | ("exclusive" | "inclusive" | "unspecified") + | undefined + unit_amount?: number | undefined + unit_amount_decimal?: string | undefined } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" - } - | "" - bancontact?: + | undefined + quantity?: number | undefined + tax_rates?: (string[] | "") | undefined + }[] + | undefined + metadata?: + | ( | { - preferred_language?: "de" | "en" | "fr" | "nl" + [key: string]: string | undefined } | "" - card?: + ) + | undefined + off_session?: boolean | undefined + on_behalf_of?: (string | "") | undefined + pause_collection?: + | ( | { - mandate_options?: { - amount?: number - amount_type?: "fixed" | "maximum" - description?: string - } - network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - request_three_d_secure?: "any" | "automatic" | "challenge" + behavior: "keep_as_draft" | "mark_uncollectible" | "void" + resumes_at?: number | undefined } | "" - customer_balance?: - | { - bank_transfer?: { - eu_bank_transfer?: { - country: string - } - type?: string + ) + | undefined + payment_behavior?: + | ( + | "allow_incomplete" + | "default_incomplete" + | "error_if_incomplete" + | "pending_if_incomplete" + ) + | undefined + payment_settings?: + | { + payment_method_options?: + | { + acss_debit?: + | ( + | { + mandate_options?: + | { + transaction_type?: + | ("business" | "personal") + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined + bancontact?: + | ( + | { + preferred_language?: + | ("de" | "en" | "fr" | "nl") + | undefined + } + | "" + ) + | undefined + card?: + | ( + | { + mandate_options?: + | { + amount?: number | undefined + amount_type?: + | ("fixed" | "maximum") + | undefined + description?: string | undefined + } + | undefined + network?: + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge") + | undefined + } + | "" + ) + | undefined + customer_balance?: + | ( + | { + bank_transfer?: + | { + eu_bank_transfer?: + | { + country: string + } + | undefined + type?: string | undefined + } + | undefined + funding_type?: string | undefined + } + | "" + ) + | undefined + konbini?: (EmptyObject | "") | undefined + sepa_debit?: (EmptyObject | "") | undefined + us_bank_account?: + | ( + | { + financial_connections?: + | { + filters?: + | { + account_subcategories?: + | ("checking" | "savings")[] + | undefined + } + | undefined + permissions?: + | ( + | "balances" + | "ownership" + | "payment_method" + | "transactions" + )[] + | undefined + prefetch?: + | ( + | "balances" + | "ownership" + | "transactions" + )[] + | undefined + } + | undefined + verification_method?: + | ("automatic" | "instant" | "microdeposits") + | undefined + } + | "" + ) + | undefined } - funding_type?: string + | undefined + payment_method_types?: + | ( + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | "" + ) + | undefined + save_default_payment_method?: + | ("off" | "on_subscription") + | undefined + } + | undefined + pending_invoice_item_interval?: + | ( + | { + interval: "day" | "month" | "week" | "year" + interval_count?: number | undefined } | "" - konbini?: EmptyObject | "" - sepa_debit?: EmptyObject | "" - us_bank_account?: + ) + | undefined + promotion_code?: string | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined + transfer_data?: + | ( | { - financial_connections?: { - filters?: { - account_subcategories?: ("checking" | "savings")[] - } - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] - } - verification_method?: - | "automatic" - | "instant" - | "microdeposits" + amount_percent?: number | undefined + destination: string } | "" - } - payment_method_types?: - | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | "" - save_default_payment_method?: "off" | "on_subscription" - } - pending_invoice_item_interval?: + ) + | undefined + trial_end?: ("now" | number) | undefined + trial_from_plan?: boolean | undefined + trial_settings?: | { - interval: "day" | "month" | "week" | "year" - interval_count?: number - } - | "" - promotion_code?: string - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number - transfer_data?: - | { - amount_percent?: number - destination: string + end_behavior: { + missing_payment_method: "cancel" | "create_invoice" | "pause" + } } - | "" - trial_end?: "now" | number - trial_from_plan?: boolean - trial_settings?: { - end_behavior: { - missing_payment_method: "cancel" | "create_invoice" | "pause" - } - } + | undefined } }, timeout?: number, @@ -31457,10 +36569,12 @@ export class StripeApi extends AbstractAxiosClient { p: { subscription: string requestBody?: { - billing_cycle_anchor?: "now" | "unchanged" - expand?: string[] - proration_behavior?: "always_invoice" | "create_prorations" | "none" - proration_date?: number + billing_cycle_anchor?: ("now" | "unchanged") | undefined + expand?: string[] | undefined + proration_behavior?: + | ("always_invoice" | "create_prorations" | "none") + | undefined + proration_date?: number | undefined } }, timeout?: number, @@ -31487,131 +36601,143 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { currency: string - customer?: string - customer_details?: { - address?: { - city?: string | "" - country: string - line1?: string | "" - line2?: string | "" - postal_code?: string | "" - state?: string | "" - } - address_source?: "billing" | "shipping" - ip_address?: string - tax_ids?: { - type: - | "ad_nrt" - | "ae_trn" - | "ar_cuit" - | "au_abn" - | "au_arn" - | "bg_uic" - | "bh_vat" - | "bo_tin" - | "br_cnpj" - | "br_cpf" - | "by_tin" - | "ca_bn" - | "ca_gst_hst" - | "ca_pst_bc" - | "ca_pst_mb" - | "ca_pst_sk" - | "ca_qst" - | "ch_uid" - | "ch_vat" - | "cl_tin" - | "cn_tin" - | "co_nit" - | "cr_tin" - | "de_stn" - | "do_rcn" - | "ec_ruc" - | "eg_tin" - | "es_cif" - | "eu_oss_vat" - | "eu_vat" - | "gb_vat" - | "ge_vat" - | "hk_br" - | "hr_oib" - | "hu_tin" - | "id_npwp" - | "il_vat" - | "in_gst" - | "is_vat" - | "jp_cn" - | "jp_rn" - | "jp_trn" - | "ke_pin" - | "kr_brn" - | "kz_bin" - | "li_uid" - | "li_vat" - | "ma_vat" - | "md_vat" - | "mx_rfc" - | "my_frp" - | "my_itn" - | "my_sst" - | "ng_tin" - | "no_vat" - | "no_voec" - | "nz_gst" - | "om_vat" - | "pe_ruc" - | "ph_tin" - | "ro_tin" - | "rs_pib" - | "ru_inn" - | "ru_kpp" - | "sa_vat" - | "sg_gst" - | "sg_uen" - | "si_tin" - | "sv_nit" - | "th_vat" - | "tr_tin" - | "tw_vat" - | "tz_vat" - | "ua_vat" - | "us_ein" - | "uy_ruc" - | "uz_tin" - | "uz_vat" - | "ve_rif" - | "vn_tin" - | "za_vat" - value: string - }[] - taxability_override?: "customer_exempt" | "none" | "reverse_charge" - } - expand?: string[] + customer?: string | undefined + customer_details?: + | { + address?: + | { + city?: (string | "") | undefined + country: string + line1?: (string | "") | undefined + line2?: (string | "") | undefined + postal_code?: (string | "") | undefined + state?: (string | "") | undefined + } + | undefined + address_source?: ("billing" | "shipping") | undefined + ip_address?: string | undefined + tax_ids?: + | { + type: + | "ad_nrt" + | "ae_trn" + | "ar_cuit" + | "au_abn" + | "au_arn" + | "bg_uic" + | "bh_vat" + | "bo_tin" + | "br_cnpj" + | "br_cpf" + | "by_tin" + | "ca_bn" + | "ca_gst_hst" + | "ca_pst_bc" + | "ca_pst_mb" + | "ca_pst_sk" + | "ca_qst" + | "ch_uid" + | "ch_vat" + | "cl_tin" + | "cn_tin" + | "co_nit" + | "cr_tin" + | "de_stn" + | "do_rcn" + | "ec_ruc" + | "eg_tin" + | "es_cif" + | "eu_oss_vat" + | "eu_vat" + | "gb_vat" + | "ge_vat" + | "hk_br" + | "hr_oib" + | "hu_tin" + | "id_npwp" + | "il_vat" + | "in_gst" + | "is_vat" + | "jp_cn" + | "jp_rn" + | "jp_trn" + | "ke_pin" + | "kr_brn" + | "kz_bin" + | "li_uid" + | "li_vat" + | "ma_vat" + | "md_vat" + | "mx_rfc" + | "my_frp" + | "my_itn" + | "my_sst" + | "ng_tin" + | "no_vat" + | "no_voec" + | "nz_gst" + | "om_vat" + | "pe_ruc" + | "ph_tin" + | "ro_tin" + | "rs_pib" + | "ru_inn" + | "ru_kpp" + | "sa_vat" + | "sg_gst" + | "sg_uen" + | "si_tin" + | "sv_nit" + | "th_vat" + | "tr_tin" + | "tw_vat" + | "tz_vat" + | "ua_vat" + | "us_ein" + | "uy_ruc" + | "uz_tin" + | "uz_vat" + | "ve_rif" + | "vn_tin" + | "za_vat" + value: string + }[] + | undefined + taxability_override?: + | ("customer_exempt" | "none" | "reverse_charge") + | undefined + } + | undefined + expand?: string[] | undefined line_items: { amount: number - product?: string - quantity?: number - reference?: string - tax_behavior?: "exclusive" | "inclusive" - tax_code?: string + product?: string | undefined + quantity?: number | undefined + reference?: string | undefined + tax_behavior?: ("exclusive" | "inclusive") | undefined + tax_code?: string | undefined }[] - ship_from_details?: { - address: { - city?: string | "" - country: string - line1?: string | "" - line2?: string | "" - postal_code?: string | "" - state?: string | "" - } - } - shipping_cost?: { - amount?: number - shipping_rate?: string - tax_behavior?: "exclusive" | "inclusive" - tax_code?: string - } - tax_date?: number + ship_from_details?: + | { + address: { + city?: (string | "") | undefined + country: string + line1?: (string | "") | undefined + line2?: (string | "") | undefined + postal_code?: (string | "") | undefined + state?: (string | "") | undefined + } + } + | undefined + shipping_cost?: + | { + amount?: number | undefined + shipping_rate?: string | undefined + tax_behavior?: ("exclusive" | "inclusive") | undefined + tax_code?: string | undefined + } + | undefined + tax_date?: number | undefined } }, timeout?: number, @@ -31718,343 +36844,535 @@ export class StripeApi extends AbstractAxiosClient { AxiosResponse<{ data: t_tax_registration[] has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/tax/registrations` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTaxRegistrations( - p: { - requestBody: { - active_from: "now" | number - country: string - country_options: { - ae?: { - type: "standard" - } - at?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - au?: { - type: "standard" - } - be?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - bg?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - bh?: { - type: "standard" - } - by?: { - type: "simplified" - } - ca?: { - province_standard?: { - province: string - } - type: "province_standard" | "simplified" | "standard" - } - ch?: { - type: "standard" - } - cl?: { - type: "simplified" - } - co?: { - type: "simplified" - } - cr?: { - type: "simplified" - } - cy?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - cz?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - de?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - dk?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - ec?: { - type: "simplified" - } - ee?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - eg?: { - type: "simplified" - } - es?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - fi?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - fr?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - gb?: { - type: "standard" - } - ge?: { - type: "simplified" - } - gr?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - hr?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - hu?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - id?: { - type: "simplified" - } - ie?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - is?: { - type: "standard" - } - it?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - jp?: { - type: "standard" - } - ke?: { - type: "simplified" - } - kr?: { - type: "simplified" - } - kz?: { - type: "simplified" - } - lt?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - lu?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - lv?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - ma?: { - type: "simplified" - } - md?: { - type: "simplified" - } - mt?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - mx?: { - type: "simplified" - } - my?: { - type: "simplified" - } - ng?: { - type: "simplified" - } - nl?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - no?: { - type: "standard" - } - nz?: { - type: "standard" - } - om?: { - type: "standard" - } - pl?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - pt?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - ro?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - rs?: { - type: "standard" - } - ru?: { - type: "simplified" - } - sa?: { - type: "simplified" - } - se?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - sg?: { - type: "standard" - } - si?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - sk?: { - standard?: { - place_of_supply_scheme: "small_seller" | "standard" - } - type: "ioss" | "oss_non_union" | "oss_union" | "standard" - } - th?: { - type: "simplified" - } - tr?: { - type: "simplified" - } - tz?: { - type: "simplified" - } - us?: { - local_amusement_tax?: { - jurisdiction: string - } - local_lease_tax?: { - jurisdiction: string - } - state: string - state_sales_tax?: { - elections: { - jurisdiction?: string + object: "list" + url: string + }> + > { + const url = `/v1/tax/registrations` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postTaxRegistrations( + p: { + requestBody: { + active_from: "now" | number + country: string + country_options: { + ae?: + | { + type: "standard" + } + | undefined + at?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + au?: + | { + type: "standard" + } + | undefined + be?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + bg?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + bh?: + | { + type: "standard" + } + | undefined + by?: + | { + type: "simplified" + } + | undefined + ca?: + | { + province_standard?: + | { + province: string + } + | undefined + type: "province_standard" | "simplified" | "standard" + } + | undefined + ch?: + | { + type: "standard" + } + | undefined + cl?: + | { + type: "simplified" + } + | undefined + co?: + | { + type: "simplified" + } + | undefined + cr?: + | { + type: "simplified" + } + | undefined + cy?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + cz?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + de?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + dk?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + ec?: + | { + type: "simplified" + } + | undefined + ee?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + eg?: + | { + type: "simplified" + } + | undefined + es?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + fi?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + fr?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + gb?: + | { + type: "standard" + } + | undefined + ge?: + | { + type: "simplified" + } + | undefined + gr?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + hr?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + hu?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + id?: + | { + type: "simplified" + } + | undefined + ie?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + is?: + | { + type: "standard" + } + | undefined + it?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + jp?: + | { + type: "standard" + } + | undefined + ke?: + | { + type: "simplified" + } + | undefined + kr?: + | { + type: "simplified" + } + | undefined + kz?: + | { + type: "simplified" + } + | undefined + lt?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + lu?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + lv?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + ma?: + | { + type: "simplified" + } + | undefined + md?: + | { + type: "simplified" + } + | undefined + mt?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + mx?: + | { + type: "simplified" + } + | undefined + my?: + | { + type: "simplified" + } + | undefined + ng?: + | { + type: "simplified" + } + | undefined + nl?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + no?: + | { + type: "standard" + } + | undefined + nz?: + | { + type: "standard" + } + | undefined + om?: + | { + type: "standard" + } + | undefined + pl?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + pt?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + ro?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + rs?: + | { + type: "standard" + } + | undefined + ru?: + | { + type: "simplified" + } + | undefined + sa?: + | { + type: "simplified" + } + | undefined + se?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + sg?: + | { + type: "standard" + } + | undefined + si?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + sk?: + | { + standard?: + | { + place_of_supply_scheme: "small_seller" | "standard" + } + | undefined + type: "ioss" | "oss_non_union" | "oss_union" | "standard" + } + | undefined + th?: + | { + type: "simplified" + } + | undefined + tr?: + | { + type: "simplified" + } + | undefined + tz?: + | { + type: "simplified" + } + | undefined + us?: + | { + local_amusement_tax?: + | { + jurisdiction: string + } + | undefined + local_lease_tax?: + | { + jurisdiction: string + } + | undefined + state: string + state_sales_tax?: + | { + elections: { + jurisdiction?: string | undefined + type: + | "local_use_tax" + | "simplified_sellers_use_tax" + | "single_local_use_tax" + }[] + } + | undefined type: - | "local_use_tax" - | "simplified_sellers_use_tax" - | "single_local_use_tax" - }[] - } - type: - | "local_amusement_tax" - | "local_lease_tax" - | "state_communications_tax" - | "state_retail_delivery_fee" - | "state_sales_tax" - } - uz?: { - type: "simplified" - } - vn?: { - type: "simplified" - } - za?: { - type: "standard" - } + | "local_amusement_tax" + | "local_lease_tax" + | "state_communications_tax" + | "state_retail_delivery_fee" + | "state_sales_tax" + } + | undefined + uz?: + | { + type: "simplified" + } + | undefined + vn?: + | { + type: "simplified" + } + | undefined + za?: + | { + type: "standard" + } + | undefined } - expand?: string[] - expires_at?: number + expand?: string[] | undefined + expires_at?: number | undefined } }, timeout?: number, @@ -32108,9 +37426,9 @@ export class StripeApi extends AbstractAxiosClient { p: { id: string requestBody?: { - active_from?: "now" | number - expand?: string[] - expires_at?: "now" | number | "" + active_from?: ("now" | number) | undefined + expand?: string[] | undefined + expires_at?: ("now" | number | "") | undefined } }, timeout?: number, @@ -32162,21 +37480,27 @@ export class StripeApi extends AbstractAxiosClient { async postTaxSettings( p: { requestBody?: { - defaults?: { - tax_behavior?: "exclusive" | "inclusive" | "inferred_by_currency" - tax_code?: string - } - expand?: string[] - head_office?: { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - } + defaults?: + | { + tax_behavior?: + | ("exclusive" | "inclusive" | "inferred_by_currency") + | undefined + tax_code?: string | undefined + } + | undefined + expand?: string[] | undefined + head_office?: + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + } + | undefined } } = {}, timeout?: number, @@ -32203,11 +37527,13 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { calculation: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - posted_at?: number + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + posted_at?: number | undefined reference: string } }, @@ -32234,28 +37560,36 @@ export class StripeApi extends AbstractAxiosClient { async postTaxTransactionsCreateReversal( p: { requestBody: { - expand?: string[] - flat_amount?: number - line_items?: { - amount: number - amount_tax: number - metadata?: { - [key: string]: string | undefined - } - original_line_item: string - quantity?: number - reference: string - }[] - metadata?: { - [key: string]: string | undefined - } + expand?: string[] | undefined + flat_amount?: number | undefined + line_items?: + | { + amount: number + amount_tax: number + metadata?: + | { + [key: string]: string | undefined + } + | undefined + original_line_item: string + quantity?: number | undefined + reference: string + }[] + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined mode: "full" | "partial" original_transaction: string reference: string - shipping_cost?: { - amount: number - amount_tax: number - } + shipping_cost?: + | { + amount: number + amount_tax: number + } + | undefined } }, timeout?: number, @@ -32421,8 +37755,8 @@ export class StripeApi extends AbstractAxiosClient { expand?: string[] limit?: number owner?: { - account?: string - customer?: string + account?: string | undefined + customer?: string | undefined type: "account" | "application" | "customer" | "self" } startingAfter?: string @@ -32465,12 +37799,14 @@ export class StripeApi extends AbstractAxiosClient { async postTaxIds( p: { requestBody: { - expand?: string[] - owner?: { - account?: string - customer?: string - type: "account" | "application" | "customer" | "self" - } + expand?: string[] | undefined + owner?: + | { + account?: string | undefined + customer?: string | undefined + type: "account" | "application" | "customer" | "self" + } + | undefined type: | "ad_nrt" | "ae_trn" @@ -32633,10 +37969,10 @@ export class StripeApi extends AbstractAxiosClient { active?: boolean created?: | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number endingBefore?: string @@ -32685,33 +38021,38 @@ export class StripeApi extends AbstractAxiosClient { async postTaxRates( p: { requestBody: { - active?: boolean - country?: string - description?: string + active?: boolean | undefined + country?: string | undefined + description?: string | undefined display_name: string - expand?: string[] + expand?: string[] | undefined inclusive: boolean - jurisdiction?: string - metadata?: { - [key: string]: string | undefined - } + jurisdiction?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined percentage: number - state?: string + state?: string | undefined tax_type?: - | "amusement_tax" - | "communications_tax" - | "gst" - | "hst" - | "igst" - | "jct" - | "lease_tax" - | "pst" - | "qst" - | "retail_delivery_fee" - | "rst" - | "sales_tax" - | "service_tax" - | "vat" + | ( + | "amusement_tax" + | "communications_tax" + | "gst" + | "hst" + | "igst" + | "jct" + | "lease_tax" + | "pst" + | "qst" + | "retail_delivery_fee" + | "rst" + | "sales_tax" + | "service_tax" + | "vat" + ) + | undefined } }, timeout?: number, @@ -32765,33 +38106,39 @@ export class StripeApi extends AbstractAxiosClient { p: { taxRate: string requestBody?: { - active?: boolean - country?: string - description?: string - display_name?: string - expand?: string[] - jurisdiction?: string + active?: boolean | undefined + country?: string | undefined + description?: string | undefined + display_name?: string | undefined + expand?: string[] | undefined + jurisdiction?: string | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - state?: string + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + state?: string | undefined tax_type?: - | "amusement_tax" - | "communications_tax" - | "gst" - | "hst" - | "igst" - | "jct" - | "lease_tax" - | "pst" - | "qst" - | "retail_delivery_fee" - | "rst" - | "sales_tax" - | "service_tax" - | "vat" + | ( + | "amusement_tax" + | "communications_tax" + | "gst" + | "hst" + | "igst" + | "jct" + | "lease_tax" + | "pst" + | "qst" + | "retail_delivery_fee" + | "rst" + | "sales_tax" + | "service_tax" + | "vat" + ) + | undefined } }, timeout?: number, @@ -32860,105 +38207,149 @@ export class StripeApi extends AbstractAxiosClient { async postTerminalConfigurations( p: { requestBody?: { - bbpos_wisepos_e?: { - splashscreen?: string | "" - } - expand?: string[] - name?: string + bbpos_wisepos_e?: + | { + splashscreen?: (string | "") | undefined + } + | undefined + expand?: string[] | undefined + name?: string | undefined offline?: + | ( + | { + enabled: boolean + } + | "" + ) + | undefined + reboot_window?: | { - enabled: boolean + end_hour: number + start_hour: number } - | "" - reboot_window?: { - end_hour: number - start_hour: number - } - stripe_s700?: { - splashscreen?: string | "" - } + | undefined + stripe_s700?: + | { + splashscreen?: (string | "") | undefined + } + | undefined tipping?: + | ( + | { + aud?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + cad?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + chf?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + czk?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + dkk?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + eur?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + gbp?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + hkd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + myr?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + nok?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + nzd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + pln?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + sek?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + sgd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + usd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + } + | "" + ) + | undefined + verifone_p400?: | { - aud?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - cad?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - chf?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - czk?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - dkk?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - eur?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - gbp?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - hkd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - myr?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - nok?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - nzd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - pln?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - sek?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - sgd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - usd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } + splashscreen?: (string | "") | undefined } - | "" - verifone_p400?: { - splashscreen?: string | "" - } + | undefined } } = {}, timeout?: number, @@ -33040,112 +38431,160 @@ export class StripeApi extends AbstractAxiosClient { configuration: string requestBody?: { bbpos_wisepos_e?: - | { - splashscreen?: string | "" - } - | "" - expand?: string[] - name?: string + | ( + | { + splashscreen?: (string | "") | undefined + } + | "" + ) + | undefined + expand?: string[] | undefined + name?: string | undefined offline?: - | { - enabled: boolean - } - | "" + | ( + | { + enabled: boolean + } + | "" + ) + | undefined reboot_window?: - | { - end_hour: number - start_hour: number - } - | "" + | ( + | { + end_hour: number + start_hour: number + } + | "" + ) + | undefined stripe_s700?: - | { - splashscreen?: string | "" - } - | "" + | ( + | { + splashscreen?: (string | "") | undefined + } + | "" + ) + | undefined tipping?: - | { - aud?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - cad?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - chf?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - czk?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - dkk?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - eur?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - gbp?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - hkd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - myr?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - nok?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - nzd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - pln?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - sek?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - sgd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - usd?: { - fixed_amounts?: number[] - percentages?: number[] - smart_tip_threshold?: number - } - } - | "" + | ( + | { + aud?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + cad?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + chf?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + czk?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + dkk?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + eur?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + gbp?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + hkd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + myr?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + nok?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + nzd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + pln?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + sek?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + sgd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + usd?: + | { + fixed_amounts?: number[] | undefined + percentages?: number[] | undefined + smart_tip_threshold?: number | undefined + } + | undefined + } + | "" + ) + | undefined verifone_p400?: - | { - splashscreen?: string | "" - } - | "" + | ( + | { + splashscreen?: (string | "") | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -33173,8 +38612,8 @@ export class StripeApi extends AbstractAxiosClient { async postTerminalConnectionTokens( p: { requestBody?: { - expand?: string[] - location?: string + expand?: string[] | undefined + location?: string | undefined } } = {}, timeout?: number, @@ -33242,21 +38681,24 @@ export class StripeApi extends AbstractAxiosClient { p: { requestBody: { address: { - city?: string + city?: string | undefined country: string - line1?: string - line2?: string - postal_code?: string - state?: string + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined } - configuration_overrides?: string + configuration_overrides?: string | undefined display_name: string - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -33335,22 +38777,27 @@ export class StripeApi extends AbstractAxiosClient { p: { location: string requestBody?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - configuration_overrides?: string | "" - display_name?: string - expand?: string[] - metadata?: + address?: | { - [key: string]: string | undefined - } - | "" + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + configuration_overrides?: (string | "") | undefined + display_name?: string | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, @@ -33433,14 +38880,17 @@ export class StripeApi extends AbstractAxiosClient { async postTerminalReaders( p: { requestBody: { - expand?: string[] - label?: string - location?: string + expand?: string[] | undefined + label?: string | undefined + location?: string | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined registration_code: string } }, @@ -33471,239 +38921,8 @@ export class StripeApi extends AbstractAxiosClient { }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "DELETE", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getTerminalReadersReader( - p: { - expand?: string[] - reader: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTerminalReadersReader( - p: { - reader: string - requestBody?: { - expand?: string[] - label?: string | "" - metadata?: - | { - [key: string]: string | undefined - } - | "" - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTerminalReadersReaderCancelAction( - p: { - reader: string - requestBody?: { - expand?: string[] - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}/cancel_action` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTerminalReadersReaderProcessPaymentIntent( - p: { - reader: string - requestBody: { - expand?: string[] - payment_intent: string - process_config?: { - allow_redisplay?: "always" | "limited" | "unspecified" - enable_customer_cancellation?: boolean - skip_tipping?: boolean - tipping?: { - amount_eligible?: number - } - } - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}/process_payment_intent` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTerminalReadersReaderProcessSetupIntent( - p: { - reader: string - requestBody: { - allow_redisplay: "always" | "limited" | "unspecified" - expand?: string[] - process_config?: { - enable_customer_cancellation?: boolean - } - setup_intent: string - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}/process_setup_intent` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTerminalReadersReaderRefundPayment( - p: { - reader: string - requestBody?: { - amount?: number - charge?: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - payment_intent?: string - refund_application_fee?: boolean - refund_payment_config?: { - enable_customer_cancellation?: boolean - } - reverse_transfer?: boolean - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}/refund_payment` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTerminalReadersReaderSetReaderDisplay( - p: { - reader: string - requestBody: { - cart?: { - currency: string - line_items: { - amount: number - description: string - quantity: number - }[] - tax?: number - total: number - } - expand?: string[] - type: "cart" - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/terminal/readers/${p["reader"]}/set_reader_display` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -33712,7 +38931,7 @@ export class StripeApi extends AbstractAxiosClient { return this._request({ url: url, - method: "POST", + method: "DELETE", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -33720,280 +38939,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersConfirmationTokens( + async getTerminalReadersReader( p: { - requestBody?: { - expand?: string[] - payment_method?: string - payment_method_data?: { - acss_debit?: { - account_number: string - institution_number: string - transit_number: string - } - affirm?: EmptyObject - afterpay_clearpay?: EmptyObject - alipay?: EmptyObject - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: EmptyObject - amazon_pay?: EmptyObject - au_becs_debit?: { - account_number: string - bsb_number: string - } - bacs_debit?: { - account_number?: string - sort_code?: string - } - bancontact?: EmptyObject - billing_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - blik?: EmptyObject - boleto?: { - tax_id: string - } - cashapp?: EmptyObject - customer_balance?: EmptyObject - eps?: { - bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - } - fpx?: { - bank: - | "affin_bank" - | "agrobank" - | "alliance_bank" - | "ambank" - | "bank_islam" - | "bank_muamalat" - | "bank_of_china" - | "bank_rakyat" - | "bsn" - | "cimb" - | "deutsche_bank" - | "hong_leong_bank" - | "hsbc" - | "kfh" - | "maybank2e" - | "maybank2u" - | "ocbc" - | "pb_enterprise" - | "public_bank" - | "rhb" - | "standard_chartered" - | "uob" - } - giropay?: EmptyObject - grabpay?: EmptyObject - ideal?: { - bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - } - interac_present?: EmptyObject - kakao_pay?: EmptyObject - klarna?: { - dob?: { - day: number - month: number - year: number - } - } - konbini?: EmptyObject - kr_card?: EmptyObject - link?: EmptyObject - metadata?: { - [key: string]: string | undefined - } - mobilepay?: EmptyObject - multibanco?: EmptyObject - naver_pay?: { - funding?: "card" | "points" - } - oxxo?: EmptyObject - p24?: { - bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - } - payco?: EmptyObject - paynow?: EmptyObject - paypal?: EmptyObject - pix?: EmptyObject - promptpay?: EmptyObject - radar_options?: { - session?: string - } - revolut_pay?: EmptyObject - samsung_pay?: EmptyObject - sepa_debit?: { - iban: string - } - sofort?: { - country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" - } - swish?: EmptyObject - twint?: EmptyObject - type: - | "acss_debit" - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "kakao_pay" - | "klarna" - | "konbini" - | "kr_card" - | "link" - | "mobilepay" - | "multibanco" - | "naver_pay" - | "oxxo" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "revolut_pay" - | "samsung_pay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - wechat_pay?: EmptyObject - zip?: EmptyObject - } - return_url?: string - setup_future_usage?: "off_session" | "on_session" - shipping?: { - address: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - name: string - phone?: string | "" - } - } - } = {}, + expand?: string[] + reader: string + requestBody?: EmptyObject + }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/confirmation_tokens` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "POST", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -34001,20 +38966,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersCustomersCustomerFundCashBalance( + async postTerminalReadersReader( p: { - customer: string - requestBody: { - amount: number - currency: string - expand?: string[] - reference?: string + reader: string + requestBody?: { + expand?: string[] | undefined + label?: (string | "") | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/customers/${p["customer"]}/fund_cash_balance` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34031,410 +39002,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingAuthorizations( + async postTerminalReadersReaderCancelAction( p: { - requestBody: { - amount?: number - amount_details?: { - atm_fee?: number - cashback_amount?: number - } - authorization_method?: - | "chip" - | "contactless" - | "keyed_in" - | "online" - | "swipe" - card: string - currency?: string - expand?: string[] - fleet?: { - cardholder_prompt_data?: { - driver_id?: string - odometer?: number - unspecified_id?: string - user_id?: string - vehicle_number?: string - } - purchase_type?: - | "fuel_and_non_fuel_purchase" - | "fuel_purchase" - | "non_fuel_purchase" - reported_breakdown?: { - fuel?: { - gross_amount_decimal?: string - } - non_fuel?: { - gross_amount_decimal?: string - } - tax?: { - local_amount_decimal?: string - national_amount_decimal?: string - } - } - service_type?: - | "full_service" - | "non_fuel_transaction" - | "self_service" - } - fuel?: { - industry_product_code?: string - quantity_decimal?: string - type?: - | "diesel" - | "other" - | "unleaded_plus" - | "unleaded_regular" - | "unleaded_super" - unit?: - | "charging_minute" - | "imperial_gallon" - | "kilogram" - | "kilowatt_hour" - | "liter" - | "other" - | "pound" - | "us_gallon" - unit_cost_decimal?: string - } - is_amount_controllable?: boolean - merchant_amount?: number - merchant_currency?: string - merchant_data?: { - category?: - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - city?: string - country?: string - name?: string - network_id?: string - postal_code?: string - state?: string - terminal_id?: string - url?: string - } - network_data?: { - acquiring_institution_id?: string - } - verification_data?: { - address_line1_check?: "match" | "mismatch" | "not_provided" - address_postal_code_check?: "match" | "mismatch" | "not_provided" - authentication_exemption?: { - claimed_by: "acquirer" | "issuer" - type: - | "low_value_transaction" - | "transaction_risk_analysis" - | "unknown" - } - cvc_check?: "match" | "mismatch" | "not_provided" - expiry_check?: "match" | "mismatch" | "not_provided" - three_d_secure?: { - result: - | "attempt_acknowledged" - | "authenticated" - | "failed" - | "required" - } - } - wallet?: "apple_pay" | "google_pay" | "samsung_pay" + reader: string + requestBody?: { + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/authorizations` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}/cancel_action` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34451,95 +39029,32 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingAuthorizationsAuthorizationCapture( + async postTerminalReadersReaderProcessPaymentIntent( p: { - authorization: string - requestBody?: { - capture_amount?: number - close_authorization?: boolean - expand?: string[] - purchase_details?: { - fleet?: { - cardholder_prompt_data?: { - driver_id?: string - odometer?: number - unspecified_id?: string - user_id?: string - vehicle_number?: string - } - purchase_type?: - | "fuel_and_non_fuel_purchase" - | "fuel_purchase" - | "non_fuel_purchase" - reported_breakdown?: { - fuel?: { - gross_amount_decimal?: string - } - non_fuel?: { - gross_amount_decimal?: string - } - tax?: { - local_amount_decimal?: string - national_amount_decimal?: string - } + reader: string + requestBody: { + expand?: string[] | undefined + payment_intent: string + process_config?: + | { + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + enable_customer_cancellation?: boolean | undefined + skip_tipping?: boolean | undefined + tipping?: + | { + amount_eligible?: number | undefined + } + | undefined } - service_type?: - | "full_service" - | "non_fuel_transaction" - | "self_service" - } - flight?: { - departure_at?: number - passenger_name?: string - refundable?: boolean - segments?: { - arrival_airport_code?: string - carrier?: string - departure_airport_code?: string - flight_number?: string - service_class?: string - stopover_allowed?: boolean - }[] - travel_agency?: string - } - fuel?: { - industry_product_code?: string - quantity_decimal?: string - type?: - | "diesel" - | "other" - | "unleaded_plus" - | "unleaded_regular" - | "unleaded_super" - unit?: - | "charging_minute" - | "imperial_gallon" - | "kilogram" - | "kilowatt_hour" - | "liter" - | "other" - | "pound" - | "us_gallon" - unit_cost_decimal?: string - } - lodging?: { - check_in_at?: number - nights?: number - } - receipt?: { - description?: string - quantity?: string - total?: number - unit_cost?: number - }[] - reference?: string - } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/capture` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}/process_payment_intent` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34556,17 +39071,24 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingAuthorizationsAuthorizationExpire( + async postTerminalReadersReaderProcessSetupIntent( p: { - authorization: string - requestBody?: { - expand?: string[] + reader: string + requestBody: { + allow_redisplay: "always" | "limited" | "unspecified" + expand?: string[] | undefined + process_config?: + | { + enable_customer_cancellation?: boolean | undefined + } + | undefined + setup_intent: string } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/expire` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}/process_setup_intent` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34583,67 +39105,32 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount( + async postTerminalReadersReaderRefundPayment( p: { - authorization: string - requestBody: { - expand?: string[] - final_amount: number - fleet?: { - cardholder_prompt_data?: { - driver_id?: string - odometer?: number - unspecified_id?: string - user_id?: string - vehicle_number?: string - } - purchase_type?: - | "fuel_and_non_fuel_purchase" - | "fuel_purchase" - | "non_fuel_purchase" - reported_breakdown?: { - fuel?: { - gross_amount_decimal?: string - } - non_fuel?: { - gross_amount_decimal?: string + reader: string + requestBody?: { + amount?: number | undefined + charge?: string | undefined + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined } - tax?: { - local_amount_decimal?: string - national_amount_decimal?: string + | undefined + payment_intent?: string | undefined + refund_application_fee?: boolean | undefined + refund_payment_config?: + | { + enable_customer_cancellation?: boolean | undefined } - } - service_type?: - | "full_service" - | "non_fuel_transaction" - | "self_service" - } - fuel?: { - industry_product_code?: string - quantity_decimal?: string - type?: - | "diesel" - | "other" - | "unleaded_plus" - | "unleaded_regular" - | "unleaded_super" - unit?: - | "charging_minute" - | "imperial_gallon" - | "kilogram" - | "kilowatt_hour" - | "liter" - | "other" - | "pound" - | "us_gallon" - unit_cost_decimal?: string - } + | undefined + reverse_transfer?: boolean | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/finalize_amount` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}/refund_payment` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34660,18 +39147,30 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond( + async postTerminalReadersReaderSetReaderDisplay( p: { - authorization: string + reader: string requestBody: { - confirmed: boolean - expand?: string[] + cart?: + | { + currency: string + line_items: { + amount: number + description: string + quantity: number + }[] + tax?: number | undefined + total: number + } + | undefined + expand?: string[] | undefined + type: "cart" } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/fraud_challenges/respond` + ): Promise> { + const url = `/v1/terminal/readers/${p["reader"]}/set_reader_display` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34688,19 +39187,323 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingAuthorizationsAuthorizationIncrement( + async postTestHelpersConfirmationTokens( p: { - authorization: string - requestBody: { - expand?: string[] - increment_amount: number - is_amount_controllable?: boolean + requestBody?: { + expand?: string[] | undefined + payment_method?: string | undefined + payment_method_data?: + | { + acss_debit?: + | { + account_number: string + institution_number: string + transit_number: string + } + | undefined + affirm?: EmptyObject | undefined + afterpay_clearpay?: EmptyObject | undefined + alipay?: EmptyObject | undefined + allow_redisplay?: + | ("always" | "limited" | "unspecified") + | undefined + alma?: EmptyObject | undefined + amazon_pay?: EmptyObject | undefined + au_becs_debit?: + | { + account_number: string + bsb_number: string + } + | undefined + bacs_debit?: + | { + account_number?: string | undefined + sort_code?: string | undefined + } + | undefined + bancontact?: EmptyObject | undefined + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + blik?: EmptyObject | undefined + boleto?: + | { + tax_id: string + } + | undefined + cashapp?: EmptyObject | undefined + customer_balance?: EmptyObject | undefined + eps?: + | { + bank?: + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + ) + | undefined + } + | undefined + fpx?: + | { + bank: + | "affin_bank" + | "agrobank" + | "alliance_bank" + | "ambank" + | "bank_islam" + | "bank_muamalat" + | "bank_of_china" + | "bank_rakyat" + | "bsn" + | "cimb" + | "deutsche_bank" + | "hong_leong_bank" + | "hsbc" + | "kfh" + | "maybank2e" + | "maybank2u" + | "ocbc" + | "pb_enterprise" + | "public_bank" + | "rhb" + | "standard_chartered" + | "uob" + } + | undefined + giropay?: EmptyObject | undefined + grabpay?: EmptyObject | undefined + ideal?: + | { + bank?: + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + ) + | undefined + } + | undefined + interac_present?: EmptyObject | undefined + kakao_pay?: EmptyObject | undefined + klarna?: + | { + dob?: + | { + day: number + month: number + year: number + } + | undefined + } + | undefined + konbini?: EmptyObject | undefined + kr_card?: EmptyObject | undefined + link?: EmptyObject | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + mobilepay?: EmptyObject | undefined + multibanco?: EmptyObject | undefined + naver_pay?: + | { + funding?: ("card" | "points") | undefined + } + | undefined + oxxo?: EmptyObject | undefined + p24?: + | { + bank?: + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + ) + | undefined + } + | undefined + payco?: EmptyObject | undefined + paynow?: EmptyObject | undefined + paypal?: EmptyObject | undefined + pix?: EmptyObject | undefined + promptpay?: EmptyObject | undefined + radar_options?: + | { + session?: string | undefined + } + | undefined + revolut_pay?: EmptyObject | undefined + samsung_pay?: EmptyObject | undefined + sepa_debit?: + | { + iban: string + } + | undefined + sofort?: + | { + country: "AT" | "BE" | "DE" | "ES" | "IT" | "NL" + } + | undefined + swish?: EmptyObject | undefined + twint?: EmptyObject | undefined + type: + | "acss_debit" + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "kakao_pay" + | "klarna" + | "konbini" + | "kr_card" + | "link" + | "mobilepay" + | "multibanco" + | "naver_pay" + | "oxxo" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "revolut_pay" + | "samsung_pay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + wechat_pay?: EmptyObject | undefined + zip?: EmptyObject | undefined + } + | undefined + return_url?: string | undefined + setup_future_usage?: ("off_session" | "on_session") | undefined + shipping?: + | { + address: { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + name: string + phone?: (string | "") | undefined + } + | undefined } - }, + } = {}, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/increment` + ): Promise> { + const url = `/v1/test_helpers/confirmation_tokens` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34717,18 +39520,20 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingAuthorizationsAuthorizationReverse( + async postTestHelpersCustomersCustomerFundCashBalance( p: { - authorization: string - requestBody?: { - expand?: string[] - reverse_amount?: number + customer: string + requestBody: { + amount: number + currency: string + expand?: string[] | undefined + reference?: string | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/reverse` + ): Promise> { + const url = `/v1/test_helpers/customers/${p["customer"]}/fund_cash_balance` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34745,17 +39550,448 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingCardsCardShippingDeliver( + async postTestHelpersIssuingAuthorizations( p: { - card: string - requestBody?: { - expand?: string[] + requestBody: { + amount?: number | undefined + amount_details?: + | { + atm_fee?: number | undefined + cashback_amount?: number | undefined + } + | undefined + authorization_method?: + | ("chip" | "contactless" | "keyed_in" | "online" | "swipe") + | undefined + card: string + currency?: string | undefined + expand?: string[] | undefined + fleet?: + | { + cardholder_prompt_data?: + | { + driver_id?: string | undefined + odometer?: number | undefined + unspecified_id?: string | undefined + user_id?: string | undefined + vehicle_number?: string | undefined + } + | undefined + purchase_type?: + | ( + | "fuel_and_non_fuel_purchase" + | "fuel_purchase" + | "non_fuel_purchase" + ) + | undefined + reported_breakdown?: + | { + fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + non_fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + tax?: + | { + local_amount_decimal?: string | undefined + national_amount_decimal?: string | undefined + } + | undefined + } + | undefined + service_type?: + | ("full_service" | "non_fuel_transaction" | "self_service") + | undefined + } + | undefined + fuel?: + | { + industry_product_code?: string | undefined + quantity_decimal?: string | undefined + type?: + | ( + | "diesel" + | "other" + | "unleaded_plus" + | "unleaded_regular" + | "unleaded_super" + ) + | undefined + unit?: + | ( + | "charging_minute" + | "imperial_gallon" + | "kilogram" + | "kilowatt_hour" + | "liter" + | "other" + | "pound" + | "us_gallon" + ) + | undefined + unit_cost_decimal?: string | undefined + } + | undefined + is_amount_controllable?: boolean | undefined + merchant_amount?: number | undefined + merchant_currency?: string | undefined + merchant_data?: + | { + category?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + ) + | undefined + city?: string | undefined + country?: string | undefined + name?: string | undefined + network_id?: string | undefined + postal_code?: string | undefined + state?: string | undefined + terminal_id?: string | undefined + url?: string | undefined + } + | undefined + network_data?: + | { + acquiring_institution_id?: string | undefined + } + | undefined + verification_data?: + | { + address_line1_check?: + | ("match" | "mismatch" | "not_provided") + | undefined + address_postal_code_check?: + | ("match" | "mismatch" | "not_provided") + | undefined + authentication_exemption?: + | { + claimed_by: "acquirer" | "issuer" + type: + | "low_value_transaction" + | "transaction_risk_analysis" + | "unknown" + } + | undefined + cvc_check?: ("match" | "mismatch" | "not_provided") | undefined + expiry_check?: ("match" | "mismatch" | "not_provided") | undefined + three_d_secure?: + | { + result: + | "attempt_acknowledged" + | "authenticated" + | "failed" + | "required" + } + | undefined + } + | undefined + wallet?: ("apple_pay" | "google_pay" | "samsung_pay") | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/deliver` + ): Promise> { + const url = `/v1/test_helpers/issuing/authorizations` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34772,17 +40008,131 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingCardsCardShippingFail( + async postTestHelpersIssuingAuthorizationsAuthorizationCapture( p: { - card: string + authorization: string requestBody?: { - expand?: string[] + capture_amount?: number | undefined + close_authorization?: boolean | undefined + expand?: string[] | undefined + purchase_details?: + | { + fleet?: + | { + cardholder_prompt_data?: + | { + driver_id?: string | undefined + odometer?: number | undefined + unspecified_id?: string | undefined + user_id?: string | undefined + vehicle_number?: string | undefined + } + | undefined + purchase_type?: + | ( + | "fuel_and_non_fuel_purchase" + | "fuel_purchase" + | "non_fuel_purchase" + ) + | undefined + reported_breakdown?: + | { + fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + non_fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + tax?: + | { + local_amount_decimal?: string | undefined + national_amount_decimal?: string | undefined + } + | undefined + } + | undefined + service_type?: + | ( + | "full_service" + | "non_fuel_transaction" + | "self_service" + ) + | undefined + } + | undefined + flight?: + | { + departure_at?: number | undefined + passenger_name?: string | undefined + refundable?: boolean | undefined + segments?: + | { + arrival_airport_code?: string | undefined + carrier?: string | undefined + departure_airport_code?: string | undefined + flight_number?: string | undefined + service_class?: string | undefined + stopover_allowed?: boolean | undefined + }[] + | undefined + travel_agency?: string | undefined + } + | undefined + fuel?: + | { + industry_product_code?: string | undefined + quantity_decimal?: string | undefined + type?: + | ( + | "diesel" + | "other" + | "unleaded_plus" + | "unleaded_regular" + | "unleaded_super" + ) + | undefined + unit?: + | ( + | "charging_minute" + | "imperial_gallon" + | "kilogram" + | "kilowatt_hour" + | "liter" + | "other" + | "pound" + | "us_gallon" + ) + | undefined + unit_cost_decimal?: string | undefined + } + | undefined + lodging?: + | { + check_in_at?: number | undefined + nights?: number | undefined + } + | undefined + receipt?: + | { + description?: string | undefined + quantity?: string | undefined + total?: number | undefined + unit_cost?: number | undefined + }[] + | undefined + reference?: string | undefined + } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/fail` + ): Promise> { + const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/capture` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34799,17 +40149,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingCardsCardShippingReturn( + async postTestHelpersIssuingAuthorizationsAuthorizationExpire( p: { - card: string + authorization: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/return` + ): Promise> { + const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/expire` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34826,17 +40176,89 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingCardsCardShippingShip( + async postTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount( p: { - card: string - requestBody?: { - expand?: string[] + authorization: string + requestBody: { + expand?: string[] | undefined + final_amount: number + fleet?: + | { + cardholder_prompt_data?: + | { + driver_id?: string | undefined + odometer?: number | undefined + unspecified_id?: string | undefined + user_id?: string | undefined + vehicle_number?: string | undefined + } + | undefined + purchase_type?: + | ( + | "fuel_and_non_fuel_purchase" + | "fuel_purchase" + | "non_fuel_purchase" + ) + | undefined + reported_breakdown?: + | { + fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + non_fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + tax?: + | { + local_amount_decimal?: string | undefined + national_amount_decimal?: string | undefined + } + | undefined + } + | undefined + service_type?: + | ("full_service" | "non_fuel_transaction" | "self_service") + | undefined + } + | undefined + fuel?: + | { + industry_product_code?: string | undefined + quantity_decimal?: string | undefined + type?: + | ( + | "diesel" + | "other" + | "unleaded_plus" + | "unleaded_regular" + | "unleaded_super" + ) + | undefined + unit?: + | ( + | "charging_minute" + | "imperial_gallon" + | "kilogram" + | "kilowatt_hour" + | "liter" + | "other" + | "pound" + | "us_gallon" + ) + | undefined + unit_cost_decimal?: string | undefined + } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/ship` + ): Promise> { + const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/finalize_amount` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34853,17 +40275,18 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingCardsCardShippingSubmit( + async postTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond( p: { - card: string - requestBody?: { - expand?: string[] + authorization: string + requestBody: { + confirmed: boolean + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/submit` + ): Promise> { + const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/fraud_challenges/respond` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34880,17 +40303,19 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate( + async postTestHelpersIssuingAuthorizationsAuthorizationIncrement( p: { - personalizationDesign: string - requestBody?: { - expand?: string[] + authorization: string + requestBody: { + expand?: string[] | undefined + increment_amount: number + is_amount_controllable?: boolean | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/personalization_designs/${p["personalizationDesign"]}/activate` + ): Promise> { + const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/increment` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34907,65 +40332,18 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate( + async postTestHelpersIssuingAuthorizationsAuthorizationReverse( p: { - personalizationDesign: string + authorization: string requestBody?: { - expand?: string[] - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/personalization_designs/${p["personalizationDesign"]}/deactivate` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject( - p: { - personalizationDesign: string - requestBody: { - expand?: string[] - rejection_reasons: { - card_logo?: ( - | "geographic_location" - | "inappropriate" - | "network_name" - | "non_binary_image" - | "non_fiat_currency" - | "other" - | "other_entity" - | "promotional_material" - )[] - carrier_text?: ( - | "geographic_location" - | "inappropriate" - | "network_name" - | "non_fiat_currency" - | "other" - | "other_entity" - | "promotional_material" - )[] - } + expand?: string[] | undefined + reverse_amount?: number | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/personalization_designs/${p["personalizationDesign"]}/reject` + ): Promise> { + const url = `/v1/test_helpers/issuing/authorizations/${p["authorization"]}/reverse` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -34982,24 +40360,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingSettlements( + async postTestHelpersIssuingCardsCardShippingDeliver( p: { - requestBody: { - bin: string - clearing_date: number - currency: string - expand?: string[] - interchange_fees?: number - net_total: number - network_settlement_identifier?: string - transaction_count?: number - transaction_volume?: number + card: string + requestBody?: { + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/settlements` + ): Promise> { + const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/deliver` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -35016,400 +40387,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingTransactionsCreateForceCapture( + async postTestHelpersIssuingCardsCardShippingFail( p: { - requestBody: { - amount: number - card: string - currency?: string - expand?: string[] - merchant_data?: { - category?: - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - city?: string - country?: string - name?: string - network_id?: string - postal_code?: string - state?: string - terminal_id?: string - url?: string - } - purchase_details?: { - fleet?: { - cardholder_prompt_data?: { - driver_id?: string - odometer?: number - unspecified_id?: string - user_id?: string - vehicle_number?: string - } - purchase_type?: - | "fuel_and_non_fuel_purchase" - | "fuel_purchase" - | "non_fuel_purchase" - reported_breakdown?: { - fuel?: { - gross_amount_decimal?: string - } - non_fuel?: { - gross_amount_decimal?: string - } - tax?: { - local_amount_decimal?: string - national_amount_decimal?: string - } - } - service_type?: - | "full_service" - | "non_fuel_transaction" - | "self_service" - } - flight?: { - departure_at?: number - passenger_name?: string - refundable?: boolean - segments?: { - arrival_airport_code?: string - carrier?: string - departure_airport_code?: string - flight_number?: string - service_class?: string - stopover_allowed?: boolean - }[] - travel_agency?: string - } - fuel?: { - industry_product_code?: string - quantity_decimal?: string - type?: - | "diesel" - | "other" - | "unleaded_plus" - | "unleaded_regular" - | "unleaded_super" - unit?: - | "charging_minute" - | "imperial_gallon" - | "kilogram" - | "kilowatt_hour" - | "liter" - | "other" - | "pound" - | "us_gallon" - unit_cost_decimal?: string - } - lodging?: { - check_in_at?: number - nights?: number - } - receipt?: { - description?: string - quantity?: string - total?: number - unit_cost?: number - }[] - reference?: string - } + card: string + requestBody?: { + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/transactions/create_force_capture` + ): Promise> { + const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/fail` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -35426,400 +40414,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingTransactionsCreateUnlinkedRefund( + async postTestHelpersIssuingCardsCardShippingReturn( p: { - requestBody: { - amount: number - card: string - currency?: string - expand?: string[] - merchant_data?: { - category?: - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - city?: string - country?: string - name?: string - network_id?: string - postal_code?: string - state?: string - terminal_id?: string - url?: string - } - purchase_details?: { - fleet?: { - cardholder_prompt_data?: { - driver_id?: string - odometer?: number - unspecified_id?: string - user_id?: string - vehicle_number?: string - } - purchase_type?: - | "fuel_and_non_fuel_purchase" - | "fuel_purchase" - | "non_fuel_purchase" - reported_breakdown?: { - fuel?: { - gross_amount_decimal?: string - } - non_fuel?: { - gross_amount_decimal?: string - } - tax?: { - local_amount_decimal?: string - national_amount_decimal?: string - } - } - service_type?: - | "full_service" - | "non_fuel_transaction" - | "self_service" - } - flight?: { - departure_at?: number - passenger_name?: string - refundable?: boolean - segments?: { - arrival_airport_code?: string - carrier?: string - departure_airport_code?: string - flight_number?: string - service_class?: string - stopover_allowed?: boolean - }[] - travel_agency?: string - } - fuel?: { - industry_product_code?: string - quantity_decimal?: string - type?: - | "diesel" - | "other" - | "unleaded_plus" - | "unleaded_regular" - | "unleaded_super" - unit?: - | "charging_minute" - | "imperial_gallon" - | "kilogram" - | "kilowatt_hour" - | "liter" - | "other" - | "pound" - | "us_gallon" - unit_cost_decimal?: string - } - lodging?: { - check_in_at?: number - nights?: number - } - receipt?: { - description?: string - quantity?: string - total?: number - unit_cost?: number - }[] - reference?: string - } + card: string + requestBody?: { + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/transactions/create_unlinked_refund` + ): Promise> { + const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/return` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -35836,18 +40441,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersIssuingTransactionsTransactionRefund( + async postTestHelpersIssuingCardsCardShippingShip( p: { - transaction: string + card: string requestBody?: { - expand?: string[] - refund_amount?: number + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/issuing/transactions/${p["transaction"]}/refund` + ): Promise> { + const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/ship` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -35864,17 +40468,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersRefundsRefundExpire( + async postTestHelpersIssuingCardsCardShippingSubmit( p: { - refund: string + card: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/refunds/${p["refund"]}/expire` + ): Promise> { + const url = `/v1/test_helpers/issuing/cards/${p["card"]}/shipping/submit` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -35891,25 +40495,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTerminalReadersReaderPresentPaymentMethod( + async postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate( p: { - reader: string + personalizationDesign: string requestBody?: { - amount_tip?: number - card_present?: { - number?: string - } - expand?: string[] - interac_present?: { - number?: string - } - type?: "card_present" | "interac_present" + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/terminal/readers/${p["reader"]}/present_payment_method` + ): Promise> { + const url = `/v1/test_helpers/issuing/personalization_designs/${p["personalizationDesign"]}/activate` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -35926,40 +40522,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTestHelpersTestClocks( + async postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate( p: { - endingBefore?: string - expand?: string[] - limit?: number - startingAfter?: string - requestBody?: EmptyObject - } = {}, + personalizationDesign: string + requestBody?: { + expand?: string[] | undefined + } + }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_test_helpers_test_clock[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/test_helpers/test_clocks` + ): Promise> { + const url = `/v1/test_helpers/issuing/personalization_designs/${p["personalizationDesign"]}/deactivate` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -35967,18 +40549,42 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTestClocks( + async postTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject( p: { + personalizationDesign: string requestBody: { - expand?: string[] - frozen_time: number - name?: string + expand?: string[] | undefined + rejection_reasons: { + card_logo?: + | ( + | "geographic_location" + | "inappropriate" + | "network_name" + | "non_binary_image" + | "non_fiat_currency" + | "other" + | "other_entity" + | "promotional_material" + )[] + | undefined + carrier_text?: + | ( + | "geographic_location" + | "inappropriate" + | "network_name" + | "non_fiat_currency" + | "other" + | "other_entity" + | "promotional_material" + )[] + | undefined + } } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/test_clocks` + ): Promise> { + const url = `/v1/test_helpers/issuing/personalization_designs/${p["personalizationDesign"]}/reject` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -35995,15 +40601,24 @@ export class StripeApi extends AbstractAxiosClient { }) } - async deleteTestHelpersTestClocksTestClock( + async postTestHelpersIssuingSettlements( p: { - testClock: string - requestBody?: EmptyObject + requestBody: { + bin: string + clearing_date: number + currency: string + expand?: string[] | undefined + interchange_fees?: number | undefined + net_total: number + network_settlement_identifier?: string | undefined + transaction_count?: number | undefined + transaction_volume?: number | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/test_clocks/${p["testClock"]}` + ): Promise> { + const url = `/v1/test_helpers/issuing/settlements` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36012,7 +40627,7 @@ export class StripeApi extends AbstractAxiosClient { return this._request({ url: url, - method: "DELETE", + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36020,26 +40635,450 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTestHelpersTestClocksTestClock( + async postTestHelpersIssuingTransactionsCreateForceCapture( p: { - expand?: string[] - testClock: string - requestBody?: EmptyObject + requestBody: { + amount: number + card: string + currency?: string | undefined + expand?: string[] | undefined + merchant_data?: + | { + category?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + ) + | undefined + city?: string | undefined + country?: string | undefined + name?: string | undefined + network_id?: string | undefined + postal_code?: string | undefined + state?: string | undefined + terminal_id?: string | undefined + url?: string | undefined + } + | undefined + purchase_details?: + | { + fleet?: + | { + cardholder_prompt_data?: + | { + driver_id?: string | undefined + odometer?: number | undefined + unspecified_id?: string | undefined + user_id?: string | undefined + vehicle_number?: string | undefined + } + | undefined + purchase_type?: + | ( + | "fuel_and_non_fuel_purchase" + | "fuel_purchase" + | "non_fuel_purchase" + ) + | undefined + reported_breakdown?: + | { + fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + non_fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + tax?: + | { + local_amount_decimal?: string | undefined + national_amount_decimal?: string | undefined + } + | undefined + } + | undefined + service_type?: + | ( + | "full_service" + | "non_fuel_transaction" + | "self_service" + ) + | undefined + } + | undefined + flight?: + | { + departure_at?: number | undefined + passenger_name?: string | undefined + refundable?: boolean | undefined + segments?: + | { + arrival_airport_code?: string | undefined + carrier?: string | undefined + departure_airport_code?: string | undefined + flight_number?: string | undefined + service_class?: string | undefined + stopover_allowed?: boolean | undefined + }[] + | undefined + travel_agency?: string | undefined + } + | undefined + fuel?: + | { + industry_product_code?: string | undefined + quantity_decimal?: string | undefined + type?: + | ( + | "diesel" + | "other" + | "unleaded_plus" + | "unleaded_regular" + | "unleaded_super" + ) + | undefined + unit?: + | ( + | "charging_minute" + | "imperial_gallon" + | "kilogram" + | "kilowatt_hour" + | "liter" + | "other" + | "pound" + | "us_gallon" + ) + | undefined + unit_cost_decimal?: string | undefined + } + | undefined + lodging?: + | { + check_in_at?: number | undefined + nights?: number | undefined + } + | undefined + receipt?: + | { + description?: string | undefined + quantity?: string | undefined + total?: number | undefined + unit_cost?: number | undefined + }[] + | undefined + reference?: string | undefined + } + | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/test_clocks/${p["testClock"]}` + ): Promise> { + const url = `/v1/test_helpers/issuing/transactions/create_force_capture` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36047,18 +41086,441 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTestClocksTestClockAdvance( + async postTestHelpersIssuingTransactionsCreateUnlinkedRefund( p: { - testClock: string requestBody: { - expand?: string[] - frozen_time: number + amount: number + card: string + currency?: string | undefined + expand?: string[] | undefined + merchant_data?: + | { + category?: + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + ) + | undefined + city?: string | undefined + country?: string | undefined + name?: string | undefined + network_id?: string | undefined + postal_code?: string | undefined + state?: string | undefined + terminal_id?: string | undefined + url?: string | undefined + } + | undefined + purchase_details?: + | { + fleet?: + | { + cardholder_prompt_data?: + | { + driver_id?: string | undefined + odometer?: number | undefined + unspecified_id?: string | undefined + user_id?: string | undefined + vehicle_number?: string | undefined + } + | undefined + purchase_type?: + | ( + | "fuel_and_non_fuel_purchase" + | "fuel_purchase" + | "non_fuel_purchase" + ) + | undefined + reported_breakdown?: + | { + fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + non_fuel?: + | { + gross_amount_decimal?: string | undefined + } + | undefined + tax?: + | { + local_amount_decimal?: string | undefined + national_amount_decimal?: string | undefined + } + | undefined + } + | undefined + service_type?: + | ( + | "full_service" + | "non_fuel_transaction" + | "self_service" + ) + | undefined + } + | undefined + flight?: + | { + departure_at?: number | undefined + passenger_name?: string | undefined + refundable?: boolean | undefined + segments?: + | { + arrival_airport_code?: string | undefined + carrier?: string | undefined + departure_airport_code?: string | undefined + flight_number?: string | undefined + service_class?: string | undefined + stopover_allowed?: boolean | undefined + }[] + | undefined + travel_agency?: string | undefined + } + | undefined + fuel?: + | { + industry_product_code?: string | undefined + quantity_decimal?: string | undefined + type?: + | ( + | "diesel" + | "other" + | "unleaded_plus" + | "unleaded_regular" + | "unleaded_super" + ) + | undefined + unit?: + | ( + | "charging_minute" + | "imperial_gallon" + | "kilogram" + | "kilowatt_hour" + | "liter" + | "other" + | "pound" + | "us_gallon" + ) + | undefined + unit_cost_decimal?: string | undefined + } + | undefined + lodging?: + | { + check_in_at?: number | undefined + nights?: number | undefined + } + | undefined + receipt?: + | { + description?: string | undefined + quantity?: string | undefined + total?: number | undefined + unit_cost?: number | undefined + }[] + | undefined + reference?: string | undefined + } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/test_clocks/${p["testClock"]}/advance` + ): Promise> { + const url = `/v1/test_helpers/issuing/transactions/create_unlinked_refund` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36075,33 +41537,18 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryInboundTransfersIdFail( + async postTestHelpersIssuingTransactionsTransactionRefund( p: { - id: string + transaction: string requestBody?: { - expand?: string[] - failure_details?: { - code?: - | "account_closed" - | "account_frozen" - | "bank_account_restricted" - | "bank_ownership_changed" - | "debit_not_authorized" - | "incorrect_account_holder_address" - | "incorrect_account_holder_name" - | "incorrect_account_holder_tax_id" - | "insufficient_funds" - | "invalid_account_number" - | "invalid_currency" - | "no_account" - | "other" - } + expand?: string[] | undefined + refund_amount?: number | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/inbound_transfers/${p["id"]}/fail` + ): Promise> { + const url = `/v1/test_helpers/issuing/transactions/${p["transaction"]}/refund` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36118,17 +41565,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryInboundTransfersIdReturn( + async postTestHelpersRefundsRefundExpire( p: { - id: string + refund: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/inbound_transfers/${p["id"]}/return` + ): Promise> { + const url = `/v1/test_helpers/refunds/${p["refund"]}/expire` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36145,17 +41592,29 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryInboundTransfersIdSucceed( + async postTestHelpersTerminalReadersReaderPresentPaymentMethod( p: { - id: string + reader: string requestBody?: { - expand?: string[] + amount_tip?: number | undefined + card_present?: + | { + number?: string | undefined + } + | undefined + expand?: string[] | undefined + interac_present?: + | { + number?: string | undefined + } + | undefined + type?: ("card_present" | "interac_present") | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/inbound_transfers/${p["id"]}/succeed` + ): Promise> { + const url = `/v1/test_helpers/terminal/readers/${p["reader"]}/present_payment_method` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36172,37 +41631,40 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundPaymentsId( + async getTestHelpersTestClocks( p: { - id: string - requestBody: { - expand?: string[] - tracking_details: { - ach?: { - trace_id: string - } - type: "ach" | "us_domestic_wire" - us_domestic_wire?: { - chips?: string - imad?: string - omad?: string - } - } - } - }, + endingBefore?: string + expand?: string[] + limit?: number + startingAfter?: string + requestBody?: EmptyObject + } = {}, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}` + ): Promise< + AxiosResponse<{ + data: t_test_helpers_test_clock[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/test_helpers/test_clocks` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "POST", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36210,17 +41672,18 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundPaymentsIdFail( + async postTestHelpersTestClocks( p: { - id: string - requestBody?: { - expand?: string[] + requestBody: { + expand?: string[] | undefined + frozen_time: number + name?: string | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}/fail` + ): Promise> { + const url = `/v1/test_helpers/test_clocks` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36237,17 +41700,15 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundPaymentsIdPost( + async deleteTestHelpersTestClocksTestClock( p: { - id: string - requestBody?: { - expand?: string[] - } + testClock: string + requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}/post` + ): Promise> { + const url = `/v1/test_helpers/test_clocks/${p["testClock"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36256,7 +41717,7 @@ export class StripeApi extends AbstractAxiosClient { return this._request({ url: url, - method: "POST", + method: "DELETE", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36264,39 +41725,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundPaymentsIdReturn( + async getTestHelpersTestClocksTestClock( p: { - id: string - requestBody?: { - expand?: string[] - returned_details?: { - code?: - | "account_closed" - | "account_frozen" - | "bank_account_restricted" - | "bank_ownership_changed" - | "declined" - | "incorrect_account_holder_name" - | "invalid_account_number" - | "invalid_currency" - | "no_account" - | "other" - } - } + expand?: string[] + testClock: string + requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}/return` + ): Promise> { + const url = `/v1/test_helpers/test_clocks/${p["testClock"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "POST", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36304,28 +41752,18 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundTransfersOutboundTransfer( + async postTestHelpersTestClocksTestClockAdvance( p: { - outboundTransfer: string + testClock: string requestBody: { - expand?: string[] - tracking_details: { - ach?: { - trace_id: string - } - type: "ach" | "us_domestic_wire" - us_domestic_wire?: { - chips?: string - imad?: string - omad?: string - } - } + expand?: string[] | undefined + frozen_time: number } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}` + ): Promise> { + const url = `/v1/test_helpers/test_clocks/${p["testClock"]}/advance` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36342,17 +41780,38 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundTransfersOutboundTransferFail( + async postTestHelpersTreasuryInboundTransfersIdFail( p: { - outboundTransfer: string + id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined + failure_details?: + | { + code?: + | ( + | "account_closed" + | "account_frozen" + | "bank_account_restricted" + | "bank_ownership_changed" + | "debit_not_authorized" + | "incorrect_account_holder_address" + | "incorrect_account_holder_name" + | "incorrect_account_holder_tax_id" + | "insufficient_funds" + | "invalid_account_number" + | "invalid_currency" + | "no_account" + | "other" + ) + | undefined + } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}/fail` + ): Promise> { + const url = `/v1/test_helpers/treasury/inbound_transfers/${p["id"]}/fail` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36369,17 +41828,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundTransfersOutboundTransferPost( + async postTestHelpersTreasuryInboundTransfersIdReturn( p: { - outboundTransfer: string + id: string requestBody?: { - expand?: string[] + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}/post` + ): Promise> { + const url = `/v1/test_helpers/treasury/inbound_transfers/${p["id"]}/return` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36396,30 +41855,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn( + async postTestHelpersTreasuryInboundTransfersIdSucceed( p: { - outboundTransfer: string + id: string requestBody?: { - expand?: string[] - returned_details?: { - code?: - | "account_closed" - | "account_frozen" - | "bank_account_restricted" - | "bank_ownership_changed" - | "declined" - | "incorrect_account_holder_name" - | "invalid_account_number" - | "invalid_currency" - | "no_account" - | "other" - } + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}/return` + ): Promise> { + const url = `/v1/test_helpers/treasury/inbound_transfers/${p["id"]}/succeed` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36436,29 +41882,32 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryReceivedCredits( + async postTestHelpersTreasuryOutboundPaymentsId( p: { + id: string requestBody: { - amount: number - currency: string - description?: string - expand?: string[] - financial_account: string - initiating_payment_method_details?: { - type: "us_bank_account" - us_bank_account?: { - account_holder_name?: string - account_number?: string - routing_number?: string - } + expand?: string[] | undefined + tracking_details: { + ach?: + | { + trace_id: string + } + | undefined + type: "ach" | "us_domestic_wire" + us_domestic_wire?: + | { + chips?: string | undefined + imad?: string | undefined + omad?: string | undefined + } + | undefined } - network: "ach" | "us_domestic_wire" } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/received_credits` + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36475,29 +41924,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTestHelpersTreasuryReceivedDebits( + async postTestHelpersTreasuryOutboundPaymentsIdFail( p: { - requestBody: { - amount: number - currency: string - description?: string - expand?: string[] - financial_account: string - initiating_payment_method_details?: { - type: "us_bank_account" - us_bank_account?: { - account_holder_name?: string - account_number?: string - routing_number?: string - } - } - network: "ach" + id: string + requestBody?: { + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/test_helpers/treasury/received_debits` + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}/fail` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36514,320 +41951,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTokens( + async postTestHelpersTreasuryOutboundPaymentsIdPost( p: { + id: string requestBody?: { - account?: { - business_type?: - | "company" - | "government_entity" - | "individual" - | "non_profit" - company?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - directors_provided?: boolean - executives_provided?: boolean - export_license_id?: string - export_purpose_code?: string - name?: string - name_kana?: string - name_kanji?: string - owners_provided?: boolean - ownership_declaration?: { - date?: number - ip?: string - user_agent?: string - } - ownership_declaration_shown_and_signed?: boolean - phone?: string - registration_number?: string - structure?: - | "" - | "free_zone_establishment" - | "free_zone_llc" - | "government_instrumentality" - | "governmental_unit" - | "incorporated_non_profit" - | "incorporated_partnership" - | "limited_liability_partnership" - | "llc" - | "multi_member_llc" - | "private_company" - | "private_corporation" - | "private_partnership" - | "public_company" - | "public_corporation" - | "public_partnership" - | "registered_charity" - | "single_member_llc" - | "sole_establishment" - | "sole_proprietorship" - | "tax_exempt_government_instrumentality" - | "unincorporated_association" - | "unincorporated_non_profit" - | "unincorporated_partnership" - tax_id?: string - tax_id_registrar?: string - vat_id?: string - verification?: { - document?: { - back?: string - front?: string - } - } - } - individual?: { - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - dob?: - | { - day: number - month: number - year: number - } - | "" - email?: string - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - phone?: string - political_exposure?: "existing" | "none" - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - director?: boolean - executive?: boolean - owner?: boolean - percent_ownership?: number | "" - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } - } - tos_shown_and_accepted?: boolean - } - bank_account?: { - account_holder_name?: string - account_holder_type?: "company" | "individual" - account_number: string - account_type?: "checking" | "futsu" | "savings" | "toza" - country: string - currency?: string - payment_method?: string - routing_number?: string - } - card?: - | { - address_city?: string - address_country?: string - address_line1?: string - address_line2?: string - address_state?: string - address_zip?: string - currency?: string - cvc?: string - exp_month: string - exp_year: string - name?: string - networks?: { - preferred?: "cartes_bancaires" | "mastercard" | "visa" - } - number: string - } - | string - customer?: string - cvc_update?: { - cvc: string - } - expand?: string[] - person?: { - additional_tos_acceptances?: { - account?: { - date?: number - ip?: string - user_agent?: string | "" - } - } - address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - address_kana?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - address_kanji?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - town?: string - } - dob?: - | { - day: number - month: number - year: number - } - | "" - documents?: { - company_authorization?: { - files?: (string | "")[] - } - passport?: { - files?: (string | "")[] - } - visa?: { - files?: (string | "")[] - } - } - email?: string - first_name?: string - first_name_kana?: string - first_name_kanji?: string - full_name_aliases?: string[] | "" - gender?: string - id_number?: string - id_number_secondary?: string - last_name?: string - last_name_kana?: string - last_name_kanji?: string - maiden_name?: string - metadata?: - | { - [key: string]: string | undefined - } - | "" - nationality?: string - phone?: string - political_exposure?: string - registered_address?: { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - relationship?: { - authorizer?: boolean - director?: boolean - executive?: boolean - legal_guardian?: boolean - owner?: boolean - percent_ownership?: number | "" - representative?: boolean - title?: string - } - ssn_last_4?: string - verification?: { - additional_document?: { - back?: string - front?: string - } - document?: { - back?: string - front?: string - } - } - } - pii?: { - id_number?: string - } + expand?: string[] | undefined } - } = {}, + }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/tokens` + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}/post` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36844,26 +41978,44 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTokensToken( + async postTestHelpersTreasuryOutboundPaymentsIdReturn( p: { - expand?: string[] - token: string - requestBody?: EmptyObject + id: string + requestBody?: { + expand?: string[] | undefined + returned_details?: + | { + code?: + | ( + | "account_closed" + | "account_frozen" + | "bank_account_restricted" + | "bank_ownership_changed" + | "declined" + | "incorrect_account_holder_name" + | "invalid_account_number" + | "invalid_currency" + | "no_account" + | "other" + ) + | undefined + } + | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/tokens/${p["token"]}` + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_payments/${p["id"]}/return` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36871,60 +42023,41 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTopups( + async postTestHelpersTreasuryOutboundTransfersOutboundTransfer( p: { - amount?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - created?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - endingBefore?: string - expand?: string[] - limit?: number - startingAfter?: string - status?: "canceled" | "failed" | "pending" | "succeeded" - requestBody?: EmptyObject - } = {}, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_topup[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/topups` + outboundTransfer: string + requestBody: { + expand?: string[] | undefined + tracking_details: { + ach?: + | { + trace_id: string + } + | undefined + type: "ach" | "us_domestic_wire" + us_domestic_wire?: + | { + chips?: string | undefined + imad?: string | undefined + omad?: string | undefined + } + | undefined + } + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ - amount: p["amount"], - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36932,27 +42065,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTopups( + async postTestHelpersTreasuryOutboundTransfersOutboundTransferFail( p: { - requestBody: { - amount: number - currency: string - description?: string - expand?: string[] - metadata?: - | { - [key: string]: string | undefined - } - | "" - source?: string - statement_descriptor?: string - transfer_group?: string + outboundTransfer: string + requestBody?: { + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/topups` + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}/fail` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -36969,26 +42092,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTopupsTopup( + async postTestHelpersTreasuryOutboundTransfersOutboundTransferPost( p: { - expand?: string[] - topup: string - requestBody?: EmptyObject + outboundTransfer: string + requestBody?: { + expand?: string[] | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/topups/${p["topup"]}` + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}/post` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -36996,23 +42119,35 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTopupsTopup( + async postTestHelpersTreasuryOutboundTransfersOutboundTransferReturn( p: { - topup: string + outboundTransfer: string requestBody?: { - description?: string - expand?: string[] - metadata?: + expand?: string[] | undefined + returned_details?: | { - [key: string]: string | undefined + code?: + | ( + | "account_closed" + | "account_frozen" + | "bank_account_restricted" + | "bank_ownership_changed" + | "declined" + | "incorrect_account_holder_name" + | "invalid_account_number" + | "invalid_currency" + | "no_account" + | "other" + ) + | undefined } - | "" + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/topups/${p["topup"]}` + ): Promise> { + const url = `/v1/test_helpers/treasury/outbound_transfers/${p["outboundTransfer"]}/return` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37029,17 +42164,33 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTopupsTopupCancel( + async postTestHelpersTreasuryReceivedCredits( p: { - topup: string - requestBody?: { - expand?: string[] + requestBody: { + amount: number + currency: string + description?: string | undefined + expand?: string[] | undefined + financial_account: string + initiating_payment_method_details?: + | { + type: "us_bank_account" + us_bank_account?: + | { + account_holder_name?: string | undefined + account_number?: string | undefined + routing_number?: string | undefined + } + | undefined + } + | undefined + network: "ach" | "us_domestic_wire" } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/topups/${p["topup"]}/cancel` + ): Promise> { + const url = `/v1/test_helpers/treasury/received_credits` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37056,53 +42207,469 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTransfers( + async postTestHelpersTreasuryReceivedDebits( p: { - created?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - destination?: string - endingBefore?: string - expand?: string[] - limit?: number - startingAfter?: string - transferGroup?: string - requestBody?: EmptyObject - } = {}, + requestBody: { + amount: number + currency: string + description?: string | undefined + expand?: string[] | undefined + financial_account: string + initiating_payment_method_details?: + | { + type: "us_bank_account" + us_bank_account?: + | { + account_holder_name?: string | undefined + account_number?: string | undefined + routing_number?: string | undefined + } + | undefined + } + | undefined + network: "ach" + } + }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_transfer[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/transfers` + ): Promise> { + const url = `/v1/test_helpers/treasury/received_debits` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postTokens( + p: { + requestBody?: { + account?: + | { + business_type?: + | ( + | "company" + | "government_entity" + | "individual" + | "non_profit" + ) + | undefined + company?: + | { + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + directors_provided?: boolean | undefined + executives_provided?: boolean | undefined + export_license_id?: string | undefined + export_purpose_code?: string | undefined + name?: string | undefined + name_kana?: string | undefined + name_kanji?: string | undefined + owners_provided?: boolean | undefined + ownership_declaration?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: string | undefined + } + | undefined + ownership_declaration_shown_and_signed?: boolean | undefined + phone?: string | undefined + registration_number?: string | undefined + structure?: + | ( + | "" + | "free_zone_establishment" + | "free_zone_llc" + | "government_instrumentality" + | "governmental_unit" + | "incorporated_non_profit" + | "incorporated_partnership" + | "limited_liability_partnership" + | "llc" + | "multi_member_llc" + | "private_company" + | "private_corporation" + | "private_partnership" + | "public_company" + | "public_corporation" + | "public_partnership" + | "registered_charity" + | "single_member_llc" + | "sole_establishment" + | "sole_proprietorship" + | "tax_exempt_government_instrumentality" + | "unincorporated_association" + | "unincorporated_non_profit" + | "unincorporated_partnership" + ) + | undefined + tax_id?: string | undefined + tax_id_registrar?: string | undefined + vat_id?: string | undefined + verification?: + | { + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + individual?: + | { + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + email?: string | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + phone?: string | undefined + political_exposure?: ("existing" | "none") | undefined + registered_address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + director?: boolean | undefined + executive?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + tos_shown_and_accepted?: boolean | undefined + } + | undefined + bank_account?: + | { + account_holder_name?: string | undefined + account_holder_type?: ("company" | "individual") | undefined + account_number: string + account_type?: + | ("checking" | "futsu" | "savings" | "toza") + | undefined + country: string + currency?: string | undefined + payment_method?: string | undefined + routing_number?: string | undefined + } + | undefined + card?: + | ( + | { + address_city?: string | undefined + address_country?: string | undefined + address_line1?: string | undefined + address_line2?: string | undefined + address_state?: string | undefined + address_zip?: string | undefined + currency?: string | undefined + cvc?: string | undefined + exp_month: string + exp_year: string + name?: string | undefined + networks?: + | { + preferred?: + | ("cartes_bancaires" | "mastercard" | "visa") + | undefined + } + | undefined + number: string + } + | string + ) + | undefined + customer?: string | undefined + cvc_update?: + | { + cvc: string + } + | undefined + expand?: string[] | undefined + person?: + | { + additional_tos_acceptances?: + | { + account?: + | { + date?: number | undefined + ip?: string | undefined + user_agent?: (string | "") | undefined + } + | undefined + } + | undefined + address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + address_kana?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + address_kanji?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + town?: string | undefined + } + | undefined + dob?: + | ( + | { + day: number + month: number + year: number + } + | "" + ) + | undefined + documents?: + | { + company_authorization?: + | { + files?: (string | "")[] | undefined + } + | undefined + passport?: + | { + files?: (string | "")[] | undefined + } + | undefined + visa?: + | { + files?: (string | "")[] | undefined + } + | undefined + } + | undefined + email?: string | undefined + first_name?: string | undefined + first_name_kana?: string | undefined + first_name_kanji?: string | undefined + full_name_aliases?: (string[] | "") | undefined + gender?: string | undefined + id_number?: string | undefined + id_number_secondary?: string | undefined + last_name?: string | undefined + last_name_kana?: string | undefined + last_name_kanji?: string | undefined + maiden_name?: string | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + nationality?: string | undefined + phone?: string | undefined + political_exposure?: string | undefined + registered_address?: + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | undefined + relationship?: + | { + authorizer?: boolean | undefined + director?: boolean | undefined + executive?: boolean | undefined + legal_guardian?: boolean | undefined + owner?: boolean | undefined + percent_ownership?: (number | "") | undefined + representative?: boolean | undefined + title?: string | undefined + } + | undefined + ssn_last_4?: string | undefined + verification?: + | { + additional_document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + document?: + | { + back?: string | undefined + front?: string | undefined + } + | undefined + } + | undefined + } + | undefined + pii?: + | { + id_number?: string | undefined + } + | undefined + } + } = {}, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/tokens` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ - created: p["created"], - destination: p["destination"], - ending_before: p["endingBefore"], - expand: p["expand"], - limit: p["limit"], - starting_after: p["startingAfter"], - transfer_group: p["transferGroup"], - }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -37110,35 +42677,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTransfers( + async getTokensToken( p: { - requestBody: { - amount?: number - currency: string - description?: string - destination: string - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - source_transaction?: string - source_type?: "bank_account" | "card" | "fpx" - transfer_group?: string - } + expand?: string[] + token: string + requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/transfers` + ): Promise> { + const url = `/v1/tokens/${p["token"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "POST", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -37146,35 +42704,54 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTransfersIdReversals( + async getTopups( p: { + amount?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + created?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number endingBefore?: string expand?: string[] - id: string limit?: number startingAfter?: string + status?: "canceled" | "failed" | "pending" | "succeeded" requestBody?: EmptyObject - }, + } = {}, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_transfer_reversal[] + data: t_topup[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/transfers/${p["id"]}/reversals` + const url = `/v1/topups` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) const query = this._query({ + amount: p["amount"], + created: p["created"], ending_before: p["endingBefore"], expand: p["expand"], limit: p["limit"], starting_after: p["startingAfter"], + status: p["status"], }) const body = JSON.stringify(p.requestBody) @@ -37188,25 +42765,30 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTransfersIdReversals( + async postTopups( p: { - id: string - requestBody?: { - amount?: number - description?: string - expand?: string[] + requestBody: { + amount: number + currency: string + description?: string | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - refund_application_fee?: boolean + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + source?: string | undefined + statement_descriptor?: string | undefined + transfer_group?: string | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/transfers/${p["id"]}/reversals` + ): Promise> { + const url = `/v1/topups` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37223,16 +42805,16 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTransfersTransfer( + async getTopupsTopup( p: { expand?: string[] - transfer: string + topup: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/transfers/${p["transfer"]}` + ): Promise> { + const url = `/v1/topups/${p["topup"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37250,23 +42832,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTransfersTransfer( + async postTopupsTopup( p: { - transfer: string + topup: string requestBody?: { - description?: string - expand?: string[] + description?: string | undefined + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/transfers/${p["transfer"]}` + ): Promise> { + const url = `/v1/topups/${p["topup"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37283,128 +42868,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTransfersTransferReversalsId( - p: { - expand?: string[] - id: string - transfer: string - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/transfers/${p["transfer"]}/reversals/${p["id"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTransfersTransferReversalsId( + async postTopupsTopupCancel( p: { - id: string - transfer: string + topup: string requestBody?: { - expand?: string[] - metadata?: - | { - [key: string]: string | undefined - } - | "" - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/transfers/${p["transfer"]}/reversals/${p["id"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url, - method: "POST", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getTreasuryCreditReversals( - p: { - endingBefore?: string - expand?: string[] - financialAccount: string - limit?: number - receivedCredit?: string - startingAfter?: string - status?: "canceled" | "posted" | "processing" - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_treasury_credit_reversal[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/treasury/credit_reversals` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - received_credit: p["receivedCredit"], - starting_after: p["startingAfter"], - status: p["status"], - }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTreasuryCreditReversals( - p: { - requestBody: { - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - received_credit: string + expand?: string[] | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/credit_reversals` + ): Promise> { + const url = `/v1/topups/${p["topup"]}/cancel` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37421,69 +42895,47 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryCreditReversalsCreditReversal( - p: { - creditReversal: string - expand?: string[] - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/credit_reversals/${p["creditReversal"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getTreasuryDebitReversals( + async getTransfers( p: { + created?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + destination?: string endingBefore?: string expand?: string[] - financialAccount: string limit?: number - receivedDebit?: string - resolution?: "lost" | "won" startingAfter?: string - status?: "canceled" | "completed" | "processing" + transferGroup?: string requestBody?: EmptyObject - }, + } = {}, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_treasury_debit_reversal[] + data: t_transfer[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/treasury/debit_reversals` + const url = `/v1/transfers` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) const query = this._query({ + created: p["created"], + destination: p["destination"], ending_before: p["endingBefore"], expand: p["expand"], - financial_account: p["financialAccount"], limit: p["limit"], - received_debit: p["receivedDebit"], - resolution: p["resolution"], starting_after: p["startingAfter"], - status: p["status"], + transfer_group: p["transferGroup"], }) const body = JSON.stringify(p.requestBody) @@ -37497,20 +42949,28 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryDebitReversals( + async postTransfers( p: { requestBody: { - expand?: string[] - metadata?: { - [key: string]: string | undefined - } - received_debit: string + amount?: number | undefined + currency: string + description?: string | undefined + destination: string + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + source_transaction?: string | undefined + source_type?: ("bank_account" | "card" | "fpx") | undefined + transfer_group?: string | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/debit_reversals` + ): Promise> { + const url = `/v1/transfers` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37527,66 +42987,31 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryDebitReversalsDebitReversal( - p: { - debitReversal: string - expand?: string[] - requestBody?: EmptyObject - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/debit_reversals/${p["debitReversal"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async getTreasuryFinancialAccounts( + async getTransfersIdReversals( p: { - created?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number endingBefore?: string expand?: string[] + id: string limit?: number startingAfter?: string requestBody?: EmptyObject - } = {}, + }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_treasury_financial_account[] + data: t_transfer_reversal[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/treasury/financial_accounts` + const url = `/v1/transfers/${p["id"]}/reversals` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) const query = this._query({ - created: p["created"], ending_before: p["endingBefore"], expand: p["expand"], limit: p["limit"], @@ -37604,61 +43029,28 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryFinancialAccounts( + async postTransfersIdReversals( p: { - requestBody: { - expand?: string[] - features?: { - card_issuing?: { - requested: boolean - } - deposit_insurance?: { - requested: boolean - } - financial_addresses?: { - aba?: { - requested: boolean - } - } - inbound_transfers?: { - ach?: { - requested: boolean - } - } - intra_stripe_flows?: { - requested: boolean - } - outbound_payments?: { - ach?: { - requested: boolean - } - us_domestic_wire?: { - requested: boolean - } - } - outbound_transfers?: { - ach?: { - requested: boolean - } - us_domestic_wire?: { - requested: boolean - } - } - } - metadata?: { - [key: string]: string | undefined - } - platform_restrictions?: { - inbound_flows?: "restricted" | "unrestricted" - outbound_flows?: "restricted" | "unrestricted" - } - supported_currencies: string[] + id: string + requestBody?: { + amount?: number | undefined + description?: string | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + refund_application_fee?: boolean | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/financial_accounts` + ): Promise> { + const url = `/v1/transfers/${p["id"]}/reversals` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37675,16 +43067,16 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryFinancialAccountsFinancialAccount( + async getTransfersTransfer( p: { expand?: string[] - financialAccount: string + transfer: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}` + ): Promise> { + const url = `/v1/transfers/${p["transfer"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37702,61 +43094,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryFinancialAccountsFinancialAccount( + async postTransfersTransfer( p: { - financialAccount: string + transfer: string requestBody?: { - expand?: string[] - features?: { - card_issuing?: { - requested: boolean - } - deposit_insurance?: { - requested: boolean - } - financial_addresses?: { - aba?: { - requested: boolean - } - } - inbound_transfers?: { - ach?: { - requested: boolean - } - } - intra_stripe_flows?: { - requested: boolean - } - outbound_payments?: { - ach?: { - requested: boolean - } - us_domestic_wire?: { - requested: boolean - } - } - outbound_transfers?: { - ach?: { - requested: boolean - } - us_domestic_wire?: { - requested: boolean - } - } - } - metadata?: { - [key: string]: string | undefined - } - platform_restrictions?: { - inbound_flows?: "restricted" | "unrestricted" - outbound_flows?: "restricted" | "unrestricted" - } + description?: string | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}` + ): Promise> { + const url = `/v1/transfers/${p["transfer"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37773,16 +43130,17 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryFinancialAccountsFinancialAccountFeatures( + async getTransfersTransferReversalsId( p: { expand?: string[] - financialAccount: string + id: string + transfer: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}/features` + ): Promise> { + const url = `/v1/transfers/${p["transfer"]}/reversals/${p["id"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37800,52 +43158,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryFinancialAccountsFinancialAccountFeatures( + async postTransfersTransferReversalsId( p: { - financialAccount: string + id: string + transfer: string requestBody?: { - card_issuing?: { - requested: boolean - } - deposit_insurance?: { - requested: boolean - } - expand?: string[] - financial_addresses?: { - aba?: { - requested: boolean - } - } - inbound_transfers?: { - ach?: { - requested: boolean - } - } - intra_stripe_flows?: { - requested: boolean - } - outbound_payments?: { - ach?: { - requested: boolean - } - us_domestic_wire?: { - requested: boolean - } - } - outbound_transfers?: { - ach?: { - requested: boolean - } - us_domestic_wire?: { - requested: boolean - } - } + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}/features` + ): Promise> { + const url = `/v1/transfers/${p["transfer"]}/reversals/${p["id"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37862,27 +43194,28 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryInboundTransfers( + async getTreasuryCreditReversals( p: { endingBefore?: string expand?: string[] financialAccount: string limit?: number + receivedCredit?: string startingAfter?: string - status?: "canceled" | "failed" | "processing" | "succeeded" + status?: "canceled" | "posted" | "processing" requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_treasury_inbound_transfer[] + data: t_treasury_credit_reversal[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/treasury/inbound_transfers` + const url = `/v1/treasury/credit_reversals` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37892,6 +43225,7 @@ export class StripeApi extends AbstractAxiosClient { expand: p["expand"], financial_account: p["financialAccount"], limit: p["limit"], + received_credit: p["receivedCredit"], starting_after: p["startingAfter"], status: p["status"], }) @@ -37907,25 +43241,22 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryInboundTransfers( + async postTreasuryCreditReversals( p: { requestBody: { - amount: number - currency: string - description?: string - expand?: string[] - financial_account: string - metadata?: { - [key: string]: string | undefined - } - origin_payment_method: string - statement_descriptor?: string + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + received_credit: string } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/inbound_transfers` + ): Promise> { + const url = `/v1/treasury/credit_reversals` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -37942,53 +43273,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryInboundTransfersId( + async getTreasuryCreditReversalsCreditReversal( p: { + creditReversal: string expand?: string[] - id: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/inbound_transfers/${p["id"]}` - const headers = this._headers( - { "Content-Type": "application/x-www-form-urlencoded" }, - opts.headers, - ) - const query = this._query({ expand: p["expand"] }) - const body = JSON.stringify(p.requestBody) - - return this._request({ - url: url + query, - method: "GET", - data: body, - ...(timeout ? { timeout } : {}), - ...opts, - headers, - }) - } - - async postTreasuryInboundTransfersInboundTransferCancel( - p: { - inboundTransfer: string - requestBody?: { - expand?: string[] - } - }, - timeout?: number, - opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/inbound_transfers/${p["inboundTransfer"]}/cancel` + ): Promise> { + const url = `/v1/treasury/credit_reversals/${p["creditReversal"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "POST", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -37996,47 +43300,40 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryOutboundPayments( + async getTreasuryDebitReversals( p: { - created?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - customer?: string endingBefore?: string expand?: string[] financialAccount: string limit?: number + receivedDebit?: string + resolution?: "lost" | "won" startingAfter?: string - status?: "canceled" | "failed" | "posted" | "processing" | "returned" + status?: "canceled" | "completed" | "processing" requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_treasury_outbound_payment[] + data: t_treasury_debit_reversal[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/treasury/outbound_payments` + const url = `/v1/treasury/debit_reversals` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) const query = this._query({ - created: p["created"], - customer: p["customer"], ending_before: p["endingBefore"], expand: p["expand"], financial_account: p["financialAccount"], limit: p["limit"], + received_debit: p["receivedDebit"], + resolution: p["resolution"], starting_after: p["startingAfter"], status: p["status"], }) @@ -38052,66 +43349,22 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryOutboundPayments( + async postTreasuryDebitReversals( p: { requestBody: { - amount: number - currency: string - customer?: string - description?: string - destination_payment_method?: string - destination_payment_method_data?: { - billing_details?: { - address?: - | { - city?: string - country?: string - line1?: string - line2?: string - postal_code?: string - state?: string - } - | "" - email?: string | "" - name?: string | "" - phone?: string | "" - } - financial_account?: string - metadata?: { - [key: string]: string | undefined - } - type: "financial_account" | "us_bank_account" - us_bank_account?: { - account_holder_type?: "company" | "individual" - account_number?: string - account_type?: "checking" | "savings" - financial_connections_account?: string - routing_number?: string - } - } - destination_payment_method_options?: { - us_bank_account?: - | { - network?: "ach" | "us_domestic_wire" - } - | "" - } - end_user_details?: { - ip_address?: string - present: boolean - } - expand?: string[] - financial_account: string - metadata?: { - [key: string]: string | undefined - } - statement_descriptor?: string + expand?: string[] | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + received_debit: string } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/outbound_payments` + ): Promise> { + const url = `/v1/treasury/debit_reversals` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38128,16 +43381,16 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryOutboundPaymentsId( + async getTreasuryDebitReversalsDebitReversal( p: { + debitReversal: string expand?: string[] - id: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/outbound_payments/${p["id"]}` + ): Promise> { + const url = `/v1/treasury/debit_reversals/${p["debitReversal"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38155,17 +43408,143 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryOutboundPaymentsIdCancel( + async getTreasuryFinancialAccounts( p: { - id: string - requestBody?: { - expand?: string[] + created?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + endingBefore?: string + expand?: string[] + limit?: number + startingAfter?: string + requestBody?: EmptyObject + } = {}, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_treasury_financial_account[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/treasury/financial_accounts` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postTreasuryFinancialAccounts( + p: { + requestBody: { + expand?: string[] | undefined + features?: + | { + card_issuing?: + | { + requested: boolean + } + | undefined + deposit_insurance?: + | { + requested: boolean + } + | undefined + financial_addresses?: + | { + aba?: + | { + requested: boolean + } + | undefined + } + | undefined + inbound_transfers?: + | { + ach?: + | { + requested: boolean + } + | undefined + } + | undefined + intra_stripe_flows?: + | { + requested: boolean + } + | undefined + outbound_payments?: + | { + ach?: + | { + requested: boolean + } + | undefined + us_domestic_wire?: + | { + requested: boolean + } + | undefined + } + | undefined + outbound_transfers?: + | { + ach?: + | { + requested: boolean + } + | undefined + us_domestic_wire?: + | { + requested: boolean + } + | undefined + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + platform_restrictions?: + | { + inbound_flows?: ("restricted" | "unrestricted") | undefined + outbound_flows?: ("restricted" | "unrestricted") | undefined + } + | undefined + supported_currencies: string[] } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/outbound_payments/${p["id"]}/cancel` + ): Promise> { + const url = `/v1/treasury/financial_accounts` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38182,39 +43561,21 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryOutboundTransfers( + async getTreasuryFinancialAccountsFinancialAccount( p: { - endingBefore?: string expand?: string[] financialAccount: string - limit?: number - startingAfter?: string - status?: "canceled" | "failed" | "posted" | "processing" | "returned" requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_treasury_outbound_transfer[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/treasury/outbound_transfers` + ): Promise> { + const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -38227,32 +43588,93 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryOutboundTransfers( + async postTreasuryFinancialAccountsFinancialAccount( p: { - requestBody: { - amount: number - currency: string - description?: string - destination_payment_method?: string - destination_payment_method_options?: { - us_bank_account?: - | { - network?: "ach" | "us_domestic_wire" - } - | "" - } - expand?: string[] - financial_account: string - metadata?: { - [key: string]: string | undefined - } - statement_descriptor?: string + financialAccount: string + requestBody?: { + expand?: string[] | undefined + features?: + | { + card_issuing?: + | { + requested: boolean + } + | undefined + deposit_insurance?: + | { + requested: boolean + } + | undefined + financial_addresses?: + | { + aba?: + | { + requested: boolean + } + | undefined + } + | undefined + inbound_transfers?: + | { + ach?: + | { + requested: boolean + } + | undefined + } + | undefined + intra_stripe_flows?: + | { + requested: boolean + } + | undefined + outbound_payments?: + | { + ach?: + | { + requested: boolean + } + | undefined + us_domestic_wire?: + | { + requested: boolean + } + | undefined + } + | undefined + outbound_transfers?: + | { + ach?: + | { + requested: boolean + } + | undefined + us_domestic_wire?: + | { + requested: boolean + } + | undefined + } + | undefined + } + | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + platform_restrictions?: + | { + inbound_flows?: ("restricted" | "unrestricted") | undefined + outbound_flows?: ("restricted" | "unrestricted") | undefined + } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/outbound_transfers` + ): Promise> { + const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38269,16 +43691,16 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryOutboundTransfersOutboundTransfer( + async getTreasuryFinancialAccountsFinancialAccountFeatures( p: { expand?: string[] - outboundTransfer: string + financialAccount: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/outbound_transfers/${p["outboundTransfer"]}` + ): Promise> { + const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}/features` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38296,17 +43718,78 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postTreasuryOutboundTransfersOutboundTransferCancel( + async postTreasuryFinancialAccountsFinancialAccountFeatures( p: { - outboundTransfer: string + financialAccount: string requestBody?: { - expand?: string[] + card_issuing?: + | { + requested: boolean + } + | undefined + deposit_insurance?: + | { + requested: boolean + } + | undefined + expand?: string[] | undefined + financial_addresses?: + | { + aba?: + | { + requested: boolean + } + | undefined + } + | undefined + inbound_transfers?: + | { + ach?: + | { + requested: boolean + } + | undefined + } + | undefined + intra_stripe_flows?: + | { + requested: boolean + } + | undefined + outbound_payments?: + | { + ach?: + | { + requested: boolean + } + | undefined + us_domestic_wire?: + | { + requested: boolean + } + | undefined + } + | undefined + outbound_transfers?: + | { + ach?: + | { + requested: boolean + } + | undefined + us_domestic_wire?: + | { + requested: boolean + } + | undefined + } + | undefined } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/outbound_transfers/${p["outboundTransfer"]}/cancel` + ): Promise> { + const url = `/v1/treasury/financial_accounts/${p["financialAccount"]}/features` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38323,34 +43806,27 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryReceivedCredits( + async getTreasuryInboundTransfers( p: { endingBefore?: string expand?: string[] financialAccount: string limit?: number - linkedFlows?: { - source_flow_type: - | "credit_reversal" - | "other" - | "outbound_payment" - | "payout" - } startingAfter?: string - status?: "failed" | "succeeded" + status?: "canceled" | "failed" | "processing" | "succeeded" requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_treasury_received_credit[] + data: t_treasury_inbound_transfer[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/treasury/received_credits` + const url = `/v1/treasury/inbound_transfers` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38360,7 +43836,6 @@ export class StripeApi extends AbstractAxiosClient { expand: p["expand"], financial_account: p["financialAccount"], limit: p["limit"], - linked_flows: p["linkedFlows"], starting_after: p["startingAfter"], status: p["status"], }) @@ -38376,26 +43851,36 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryReceivedCreditsId( + async postTreasuryInboundTransfers( p: { - expand?: string[] - id: string - requestBody?: EmptyObject + requestBody: { + amount: number + currency: string + description?: string | undefined + expand?: string[] | undefined + financial_account: string + metadata?: + | { + [key: string]: string | undefined + } + | undefined + origin_payment_method: string + statement_descriptor?: string | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/received_credits/${p["id"]}` + ): Promise> { + const url = `/v1/treasury/inbound_transfers` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -38403,39 +43888,21 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryReceivedDebits( + async getTreasuryInboundTransfersId( p: { - endingBefore?: string expand?: string[] - financialAccount: string - limit?: number - startingAfter?: string - status?: "failed" | "succeeded" + id: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_treasury_received_debit[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/treasury/received_debits` + ): Promise> { + const url = `/v1/treasury/inbound_transfers/${p["id"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - starting_after: p["startingAfter"], - status: p["status"], - }) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -38448,26 +43915,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryReceivedDebitsId( + async postTreasuryInboundTransfersInboundTransferCancel( p: { - expand?: string[] - id: string - requestBody?: EmptyObject + inboundTransfer: string + requestBody?: { + expand?: string[] | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/received_debits/${p["id"]}` + ): Promise> { + const url = `/v1/treasury/inbound_transfers/${p["inboundTransfer"]}/cancel` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -38475,58 +43942,49 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryTransactionEntries( + async getTreasuryOutboundPayments( p: { created?: | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - effectiveAt?: - | { - gt?: number - gte?: number - lt?: number - lte?: number + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined } | number + customer?: string endingBefore?: string expand?: string[] financialAccount: string limit?: number - orderBy?: "created" | "effective_at" startingAfter?: string - transaction?: string + status?: "canceled" | "failed" | "posted" | "processing" | "returned" requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_treasury_transaction_entry[] + data: t_treasury_outbound_payment[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/treasury/transaction_entries` + const url = `/v1/treasury/outbound_payments` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) const query = this._query({ created: p["created"], - effective_at: p["effectiveAt"], + customer: p["customer"], ending_before: p["endingBefore"], expand: p["expand"], financial_account: p["financialAccount"], limit: p["limit"], - order_by: p["orderBy"], starting_after: p["startingAfter"], - transaction: p["transaction"], + status: p["status"], }) const body = JSON.stringify(p.requestBody) @@ -38540,26 +43998,95 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryTransactionEntriesId( + async postTreasuryOutboundPayments( p: { - expand?: string[] - id: string - requestBody?: EmptyObject + requestBody: { + amount: number + currency: string + customer?: string | undefined + description?: string | undefined + destination_payment_method?: string | undefined + destination_payment_method_data?: + | { + billing_details?: + | { + address?: + | ( + | { + city?: string | undefined + country?: string | undefined + line1?: string | undefined + line2?: string | undefined + postal_code?: string | undefined + state?: string | undefined + } + | "" + ) + | undefined + email?: (string | "") | undefined + name?: (string | "") | undefined + phone?: (string | "") | undefined + } + | undefined + financial_account?: string | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + type: "financial_account" | "us_bank_account" + us_bank_account?: + | { + account_holder_type?: ("company" | "individual") | undefined + account_number?: string | undefined + account_type?: ("checking" | "savings") | undefined + financial_connections_account?: string | undefined + routing_number?: string | undefined + } + | undefined + } + | undefined + destination_payment_method_options?: + | { + us_bank_account?: + | ( + | { + network?: ("ach" | "us_domestic_wire") | undefined + } + | "" + ) + | undefined + } + | undefined + end_user_details?: + | { + ip_address?: string | undefined + present: boolean + } + | undefined + expand?: string[] | undefined + financial_account: string + metadata?: + | { + [key: string]: string | undefined + } + | undefined + statement_descriptor?: string | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/transaction_entries/${p["id"]}` + ): Promise> { + const url = `/v1/treasury/outbound_payments` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -38567,61 +44094,21 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryTransactions( + async getTreasuryOutboundPaymentsId( p: { - created?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - endingBefore?: string expand?: string[] - financialAccount: string - limit?: number - orderBy?: "created" | "posted_at" - startingAfter?: string - status?: "open" | "posted" | "void" - statusTransitions?: { - posted_at?: - | { - gt?: number - gte?: number - lt?: number - lte?: number - } - | number - } + id: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise< - AxiosResponse<{ - data: t_treasury_transaction[] - has_more: boolean - object: "list" - url: string - }> - > { - const url = `/v1/treasury/transactions` + ): Promise> { + const url = `/v1/treasury/outbound_payments/${p["id"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ - created: p["created"], - ending_before: p["endingBefore"], - expand: p["expand"], - financial_account: p["financialAccount"], - limit: p["limit"], - order_by: p["orderBy"], - starting_after: p["startingAfter"], - status: p["status"], - status_transitions: p["statusTransitions"], - }) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ @@ -38634,26 +44121,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getTreasuryTransactionsId( + async postTreasuryOutboundPaymentsIdCancel( p: { - expand?: string[] id: string - requestBody?: EmptyObject + requestBody?: { + expand?: string[] | undefined + } }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/treasury/transactions/${p["id"]}` + ): Promise> { + const url = `/v1/treasury/outbound_payments/${p["id"]}/cancel` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) - const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url + query, - method: "GET", + url: url, + method: "POST", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -38661,25 +44148,27 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getWebhookEndpoints( + async getTreasuryOutboundTransfers( p: { endingBefore?: string expand?: string[] + financialAccount: string limit?: number startingAfter?: string + status?: "canceled" | "failed" | "posted" | "processing" | "returned" requestBody?: EmptyObject - } = {}, + }, timeout?: number, opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - data: t_webhook_endpoint[] + data: t_treasury_outbound_transfer[] has_more: boolean object: "list" url: string }> > { - const url = `/v1/webhook_endpoints` + const url = `/v1/treasury/outbound_transfers` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -38687,8 +44176,10 @@ export class StripeApi extends AbstractAxiosClient { const query = this._query({ ending_before: p["endingBefore"], expand: p["expand"], + financial_account: p["financialAccount"], limit: p["limit"], starting_after: p["startingAfter"], + status: p["status"], }) const body = JSON.stringify(p.requestBody) @@ -38699,384 +44190,322 @@ export class StripeApi extends AbstractAxiosClient { ...(timeout ? { timeout } : {}), ...opts, headers, - }) - } - - async postWebhookEndpoints( - p: { - requestBody: { - api_version?: - | "2011-01-01" - | "2011-06-21" - | "2011-06-28" - | "2011-08-01" - | "2011-09-15" - | "2011-11-17" - | "2012-02-23" - | "2012-03-25" - | "2012-06-18" - | "2012-06-28" - | "2012-07-09" - | "2012-09-24" - | "2012-10-26" - | "2012-11-07" - | "2013-02-11" - | "2013-02-13" - | "2013-07-05" - | "2013-08-12" - | "2013-08-13" - | "2013-10-29" - | "2013-12-03" - | "2014-01-31" - | "2014-03-13" - | "2014-03-28" - | "2014-05-19" - | "2014-06-13" - | "2014-06-17" - | "2014-07-22" - | "2014-07-26" - | "2014-08-04" - | "2014-08-20" - | "2014-09-08" - | "2014-10-07" - | "2014-11-05" - | "2014-11-20" - | "2014-12-08" - | "2014-12-17" - | "2014-12-22" - | "2015-01-11" - | "2015-01-26" - | "2015-02-10" - | "2015-02-16" - | "2015-02-18" - | "2015-03-24" - | "2015-04-07" - | "2015-06-15" - | "2015-07-07" - | "2015-07-13" - | "2015-07-28" - | "2015-08-07" - | "2015-08-19" - | "2015-09-03" - | "2015-09-08" - | "2015-09-23" - | "2015-10-01" - | "2015-10-12" - | "2015-10-16" - | "2016-02-03" - | "2016-02-19" - | "2016-02-22" - | "2016-02-23" - | "2016-02-29" - | "2016-03-07" - | "2016-06-15" - | "2016-07-06" - | "2016-10-19" - | "2017-01-27" - | "2017-02-14" - | "2017-04-06" - | "2017-05-25" - | "2017-06-05" - | "2017-08-15" - | "2017-12-14" - | "2018-01-23" - | "2018-02-05" - | "2018-02-06" - | "2018-02-28" - | "2018-05-21" - | "2018-07-27" - | "2018-08-23" - | "2018-09-06" - | "2018-09-24" - | "2018-10-31" - | "2018-11-08" - | "2019-02-11" - | "2019-02-19" - | "2019-03-14" - | "2019-05-16" - | "2019-08-14" - | "2019-09-09" - | "2019-10-08" - | "2019-10-17" - | "2019-11-05" - | "2019-12-03" - | "2020-03-02" - | "2020-08-27" - | "2022-08-01" - | "2022-11-15" - | "2023-08-16" - | "2023-10-16" - | "2024-04-10" - | "2024-06-20" - | "2024-09-30.acacia" - | "2024-10-28.acacia" - | "2024-11-20.acacia" - connect?: boolean - description?: string | "" - enabled_events: ( - | "*" - | "account.application.authorized" - | "account.application.deauthorized" - | "account.external_account.created" - | "account.external_account.deleted" - | "account.external_account.updated" - | "account.updated" - | "application_fee.created" - | "application_fee.refund.updated" - | "application_fee.refunded" - | "balance.available" - | "billing.alert.triggered" - | "billing_portal.configuration.created" - | "billing_portal.configuration.updated" - | "billing_portal.session.created" - | "capability.updated" - | "cash_balance.funds_available" - | "charge.captured" - | "charge.dispute.closed" - | "charge.dispute.created" - | "charge.dispute.funds_reinstated" - | "charge.dispute.funds_withdrawn" - | "charge.dispute.updated" - | "charge.expired" - | "charge.failed" - | "charge.pending" - | "charge.refund.updated" - | "charge.refunded" - | "charge.succeeded" - | "charge.updated" - | "checkout.session.async_payment_failed" - | "checkout.session.async_payment_succeeded" - | "checkout.session.completed" - | "checkout.session.expired" - | "climate.order.canceled" - | "climate.order.created" - | "climate.order.delayed" - | "climate.order.delivered" - | "climate.order.product_substituted" - | "climate.product.created" - | "climate.product.pricing_updated" - | "coupon.created" - | "coupon.deleted" - | "coupon.updated" - | "credit_note.created" - | "credit_note.updated" - | "credit_note.voided" - | "customer.created" - | "customer.deleted" - | "customer.discount.created" - | "customer.discount.deleted" - | "customer.discount.updated" - | "customer.source.created" - | "customer.source.deleted" - | "customer.source.expiring" - | "customer.source.updated" - | "customer.subscription.created" - | "customer.subscription.deleted" - | "customer.subscription.paused" - | "customer.subscription.pending_update_applied" - | "customer.subscription.pending_update_expired" - | "customer.subscription.resumed" - | "customer.subscription.trial_will_end" - | "customer.subscription.updated" - | "customer.tax_id.created" - | "customer.tax_id.deleted" - | "customer.tax_id.updated" - | "customer.updated" - | "customer_cash_balance_transaction.created" - | "entitlements.active_entitlement_summary.updated" - | "file.created" - | "financial_connections.account.created" - | "financial_connections.account.deactivated" - | "financial_connections.account.disconnected" - | "financial_connections.account.reactivated" - | "financial_connections.account.refreshed_balance" - | "financial_connections.account.refreshed_ownership" - | "financial_connections.account.refreshed_transactions" - | "identity.verification_session.canceled" - | "identity.verification_session.created" - | "identity.verification_session.processing" - | "identity.verification_session.redacted" - | "identity.verification_session.requires_input" - | "identity.verification_session.verified" - | "invoice.created" - | "invoice.deleted" - | "invoice.finalization_failed" - | "invoice.finalized" - | "invoice.marked_uncollectible" - | "invoice.overdue" - | "invoice.paid" - | "invoice.payment_action_required" - | "invoice.payment_failed" - | "invoice.payment_succeeded" - | "invoice.sent" - | "invoice.upcoming" - | "invoice.updated" - | "invoice.voided" - | "invoice.will_be_due" - | "invoiceitem.created" - | "invoiceitem.deleted" - | "issuing_authorization.created" - | "issuing_authorization.request" - | "issuing_authorization.updated" - | "issuing_card.created" - | "issuing_card.updated" - | "issuing_cardholder.created" - | "issuing_cardholder.updated" - | "issuing_dispute.closed" - | "issuing_dispute.created" - | "issuing_dispute.funds_reinstated" - | "issuing_dispute.funds_rescinded" - | "issuing_dispute.submitted" - | "issuing_dispute.updated" - | "issuing_personalization_design.activated" - | "issuing_personalization_design.deactivated" - | "issuing_personalization_design.rejected" - | "issuing_personalization_design.updated" - | "issuing_token.created" - | "issuing_token.updated" - | "issuing_transaction.created" - | "issuing_transaction.purchase_details_receipt_updated" - | "issuing_transaction.updated" - | "mandate.updated" - | "payment_intent.amount_capturable_updated" - | "payment_intent.canceled" - | "payment_intent.created" - | "payment_intent.partially_funded" - | "payment_intent.payment_failed" - | "payment_intent.processing" - | "payment_intent.requires_action" - | "payment_intent.succeeded" - | "payment_link.created" - | "payment_link.updated" - | "payment_method.attached" - | "payment_method.automatically_updated" - | "payment_method.detached" - | "payment_method.updated" - | "payout.canceled" - | "payout.created" - | "payout.failed" - | "payout.paid" - | "payout.reconciliation_completed" - | "payout.updated" - | "person.created" - | "person.deleted" - | "person.updated" - | "plan.created" - | "plan.deleted" - | "plan.updated" - | "price.created" - | "price.deleted" - | "price.updated" - | "product.created" - | "product.deleted" - | "product.updated" - | "promotion_code.created" - | "promotion_code.updated" - | "quote.accepted" - | "quote.canceled" - | "quote.created" - | "quote.finalized" - | "radar.early_fraud_warning.created" - | "radar.early_fraud_warning.updated" - | "refund.created" - | "refund.failed" - | "refund.updated" - | "reporting.report_run.failed" - | "reporting.report_run.succeeded" - | "reporting.report_type.updated" - | "review.closed" - | "review.opened" - | "setup_intent.canceled" - | "setup_intent.created" - | "setup_intent.requires_action" - | "setup_intent.setup_failed" - | "setup_intent.succeeded" - | "sigma.scheduled_query_run.created" - | "source.canceled" - | "source.chargeable" - | "source.failed" - | "source.mandate_notification" - | "source.refund_attributes_required" - | "source.transaction.created" - | "source.transaction.updated" - | "subscription_schedule.aborted" - | "subscription_schedule.canceled" - | "subscription_schedule.completed" - | "subscription_schedule.created" - | "subscription_schedule.expiring" - | "subscription_schedule.released" - | "subscription_schedule.updated" - | "tax.settings.updated" - | "tax_rate.created" - | "tax_rate.updated" - | "terminal.reader.action_failed" - | "terminal.reader.action_succeeded" - | "test_helpers.test_clock.advancing" - | "test_helpers.test_clock.created" - | "test_helpers.test_clock.deleted" - | "test_helpers.test_clock.internal_failure" - | "test_helpers.test_clock.ready" - | "topup.canceled" - | "topup.created" - | "topup.failed" - | "topup.reversed" - | "topup.succeeded" - | "transfer.created" - | "transfer.reversed" - | "transfer.updated" - | "treasury.credit_reversal.created" - | "treasury.credit_reversal.posted" - | "treasury.debit_reversal.completed" - | "treasury.debit_reversal.created" - | "treasury.debit_reversal.initial_credit_granted" - | "treasury.financial_account.closed" - | "treasury.financial_account.created" - | "treasury.financial_account.features_status_updated" - | "treasury.inbound_transfer.canceled" - | "treasury.inbound_transfer.created" - | "treasury.inbound_transfer.failed" - | "treasury.inbound_transfer.succeeded" - | "treasury.outbound_payment.canceled" - | "treasury.outbound_payment.created" - | "treasury.outbound_payment.expected_arrival_date_updated" - | "treasury.outbound_payment.failed" - | "treasury.outbound_payment.posted" - | "treasury.outbound_payment.returned" - | "treasury.outbound_payment.tracking_details_updated" - | "treasury.outbound_transfer.canceled" - | "treasury.outbound_transfer.created" - | "treasury.outbound_transfer.expected_arrival_date_updated" - | "treasury.outbound_transfer.failed" - | "treasury.outbound_transfer.posted" - | "treasury.outbound_transfer.returned" - | "treasury.outbound_transfer.tracking_details_updated" - | "treasury.received_credit.created" - | "treasury.received_credit.failed" - | "treasury.received_credit.succeeded" - | "treasury.received_debit.created" - )[] - expand?: string[] + }) + } + + async postTreasuryOutboundTransfers( + p: { + requestBody: { + amount: number + currency: string + description?: string | undefined + destination_payment_method?: string | undefined + destination_payment_method_options?: + | { + us_bank_account?: + | ( + | { + network?: ("ach" | "us_domestic_wire") | undefined + } + | "" + ) + | undefined + } + | undefined + expand?: string[] | undefined + financial_account: string metadata?: | { [key: string]: string | undefined } - | "" - url: string + | undefined + statement_descriptor?: string | undefined + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/treasury/outbound_transfers` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getTreasuryOutboundTransfersOutboundTransfer( + p: { + expand?: string[] + outboundTransfer: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/treasury/outbound_transfers/${p["outboundTransfer"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postTreasuryOutboundTransfersOutboundTransferCancel( + p: { + outboundTransfer: string + requestBody?: { + expand?: string[] | undefined + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/treasury/outbound_transfers/${p["outboundTransfer"]}/cancel` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getTreasuryReceivedCredits( + p: { + endingBefore?: string + expand?: string[] + financialAccount: string + limit?: number + linkedFlows?: { + source_flow_type: + | "credit_reversal" + | "other" + | "outbound_payment" + | "payout" } + startingAfter?: string + status?: "failed" | "succeeded" + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_treasury_received_credit[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/treasury/received_credits` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + linked_flows: p["linkedFlows"], + starting_after: p["startingAfter"], + status: p["status"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getTreasuryReceivedCreditsId( + p: { + expand?: string[] + id: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/treasury/received_credits/${p["id"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getTreasuryReceivedDebits( + p: { + endingBefore?: string + expand?: string[] + financialAccount: string + limit?: number + startingAfter?: string + status?: "failed" | "succeeded" + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_treasury_received_debit[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/treasury/received_debits` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + starting_after: p["startingAfter"], + status: p["status"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getTreasuryReceivedDebitsId( + p: { + expand?: string[] + id: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/treasury/received_debits/${p["id"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getTreasuryTransactionEntries( + p: { + created?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + effectiveAt?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + endingBefore?: string + expand?: string[] + financialAccount: string + limit?: number + orderBy?: "created" | "effective_at" + startingAfter?: string + transaction?: string + requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/webhook_endpoints` + ): Promise< + AxiosResponse<{ + data: t_treasury_transaction_entry[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/treasury/transaction_entries` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ + created: p["created"], + effective_at: p["effectiveAt"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + transaction: p["transaction"], + }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "POST", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -39084,24 +44513,26 @@ export class StripeApi extends AbstractAxiosClient { }) } - async deleteWebhookEndpointsWebhookEndpoint( + async getTreasuryTransactionEntriesId( p: { - webhookEndpoint: string + expand?: string[] + id: string requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/webhook_endpoints/${p["webhookEndpoint"]}` + ): Promise> { + const url = `/v1/treasury/transaction_entries/${p["id"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, ) + const query = this._query({ expand: p["expand"] }) const body = JSON.stringify(p.requestBody) return this._request({ - url: url, - method: "DELETE", + url: url + query, + method: "GET", data: body, ...(timeout ? { timeout } : {}), ...opts, @@ -39109,16 +44540,86 @@ export class StripeApi extends AbstractAxiosClient { }) } - async getWebhookEndpointsWebhookEndpoint( + async getTreasuryTransactions( p: { + created?: + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + endingBefore?: string expand?: string[] - webhookEndpoint: string + financialAccount: string + limit?: number + orderBy?: "created" | "posted_at" + startingAfter?: string + status?: "open" | "posted" | "void" + statusTransitions?: { + posted_at?: + | ( + | { + gt?: number | undefined + gte?: number | undefined + lt?: number | undefined + lte?: number | undefined + } + | number + ) + | undefined + } requestBody?: EmptyObject }, timeout?: number, opts: AxiosRequestConfig = {}, - ): Promise> { - const url = `/v1/webhook_endpoints/${p["webhookEndpoint"]}` + ): Promise< + AxiosResponse<{ + data: t_treasury_transaction[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/treasury/transactions` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + created: p["created"], + ending_before: p["endingBefore"], + expand: p["expand"], + financial_account: p["financialAccount"], + limit: p["limit"], + order_by: p["orderBy"], + starting_after: p["startingAfter"], + status: p["status"], + status_transitions: p["statusTransitions"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getTreasuryTransactionsId( + p: { + expand?: string[] + id: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/treasury/transactions/${p["id"]}` const headers = this._headers( { "Content-Type": "application/x-www-form-urlencoded" }, opts.headers, @@ -39136,13 +44637,162 @@ export class StripeApi extends AbstractAxiosClient { }) } - async postWebhookEndpointsWebhookEndpoint( + async getWebhookEndpoints( p: { - webhookEndpoint: string - requestBody?: { - description?: string | "" - disabled?: boolean - enabled_events?: ( + endingBefore?: string + expand?: string[] + limit?: number + startingAfter?: string + requestBody?: EmptyObject + } = {}, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise< + AxiosResponse<{ + data: t_webhook_endpoint[] + has_more: boolean + object: "list" + url: string + }> + > { + const url = `/v1/webhook_endpoints` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ + ending_before: p["endingBefore"], + expand: p["expand"], + limit: p["limit"], + starting_after: p["startingAfter"], + }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postWebhookEndpoints( + p: { + requestBody: { + api_version?: + | ( + | "2011-01-01" + | "2011-06-21" + | "2011-06-28" + | "2011-08-01" + | "2011-09-15" + | "2011-11-17" + | "2012-02-23" + | "2012-03-25" + | "2012-06-18" + | "2012-06-28" + | "2012-07-09" + | "2012-09-24" + | "2012-10-26" + | "2012-11-07" + | "2013-02-11" + | "2013-02-13" + | "2013-07-05" + | "2013-08-12" + | "2013-08-13" + | "2013-10-29" + | "2013-12-03" + | "2014-01-31" + | "2014-03-13" + | "2014-03-28" + | "2014-05-19" + | "2014-06-13" + | "2014-06-17" + | "2014-07-22" + | "2014-07-26" + | "2014-08-04" + | "2014-08-20" + | "2014-09-08" + | "2014-10-07" + | "2014-11-05" + | "2014-11-20" + | "2014-12-08" + | "2014-12-17" + | "2014-12-22" + | "2015-01-11" + | "2015-01-26" + | "2015-02-10" + | "2015-02-16" + | "2015-02-18" + | "2015-03-24" + | "2015-04-07" + | "2015-06-15" + | "2015-07-07" + | "2015-07-13" + | "2015-07-28" + | "2015-08-07" + | "2015-08-19" + | "2015-09-03" + | "2015-09-08" + | "2015-09-23" + | "2015-10-01" + | "2015-10-12" + | "2015-10-16" + | "2016-02-03" + | "2016-02-19" + | "2016-02-22" + | "2016-02-23" + | "2016-02-29" + | "2016-03-07" + | "2016-06-15" + | "2016-07-06" + | "2016-10-19" + | "2017-01-27" + | "2017-02-14" + | "2017-04-06" + | "2017-05-25" + | "2017-06-05" + | "2017-08-15" + | "2017-12-14" + | "2018-01-23" + | "2018-02-05" + | "2018-02-06" + | "2018-02-28" + | "2018-05-21" + | "2018-07-27" + | "2018-08-23" + | "2018-09-06" + | "2018-09-24" + | "2018-10-31" + | "2018-11-08" + | "2019-02-11" + | "2019-02-19" + | "2019-03-14" + | "2019-05-16" + | "2019-08-14" + | "2019-09-09" + | "2019-10-08" + | "2019-10-17" + | "2019-11-05" + | "2019-12-03" + | "2020-03-02" + | "2020-08-27" + | "2022-08-01" + | "2022-11-15" + | "2023-08-16" + | "2023-10-16" + | "2024-04-10" + | "2024-06-20" + | "2024-09-30.acacia" + | "2024-10-28.acacia" + | "2024-11-20.acacia" + ) + | undefined + connect?: boolean | undefined + description?: (string | "") | undefined + enabled_events: ( | "*" | "account.application.authorized" | "account.application.deauthorized" @@ -39384,13 +45034,350 @@ export class StripeApi extends AbstractAxiosClient { | "treasury.received_credit.succeeded" | "treasury.received_debit.created" )[] - expand?: string[] + expand?: string[] | undefined metadata?: - | { - [key: string]: string | undefined - } - | "" - url?: string + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + url: string + } + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/webhook_endpoints` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "POST", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async deleteWebhookEndpointsWebhookEndpoint( + p: { + webhookEndpoint: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/webhook_endpoints/${p["webhookEndpoint"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url, + method: "DELETE", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async getWebhookEndpointsWebhookEndpoint( + p: { + expand?: string[] + webhookEndpoint: string + requestBody?: EmptyObject + }, + timeout?: number, + opts: AxiosRequestConfig = {}, + ): Promise> { + const url = `/v1/webhook_endpoints/${p["webhookEndpoint"]}` + const headers = this._headers( + { "Content-Type": "application/x-www-form-urlencoded" }, + opts.headers, + ) + const query = this._query({ expand: p["expand"] }) + const body = JSON.stringify(p.requestBody) + + return this._request({ + url: url + query, + method: "GET", + data: body, + ...(timeout ? { timeout } : {}), + ...opts, + headers, + }) + } + + async postWebhookEndpointsWebhookEndpoint( + p: { + webhookEndpoint: string + requestBody?: { + description?: (string | "") | undefined + disabled?: boolean | undefined + enabled_events?: + | ( + | "*" + | "account.application.authorized" + | "account.application.deauthorized" + | "account.external_account.created" + | "account.external_account.deleted" + | "account.external_account.updated" + | "account.updated" + | "application_fee.created" + | "application_fee.refund.updated" + | "application_fee.refunded" + | "balance.available" + | "billing.alert.triggered" + | "billing_portal.configuration.created" + | "billing_portal.configuration.updated" + | "billing_portal.session.created" + | "capability.updated" + | "cash_balance.funds_available" + | "charge.captured" + | "charge.dispute.closed" + | "charge.dispute.created" + | "charge.dispute.funds_reinstated" + | "charge.dispute.funds_withdrawn" + | "charge.dispute.updated" + | "charge.expired" + | "charge.failed" + | "charge.pending" + | "charge.refund.updated" + | "charge.refunded" + | "charge.succeeded" + | "charge.updated" + | "checkout.session.async_payment_failed" + | "checkout.session.async_payment_succeeded" + | "checkout.session.completed" + | "checkout.session.expired" + | "climate.order.canceled" + | "climate.order.created" + | "climate.order.delayed" + | "climate.order.delivered" + | "climate.order.product_substituted" + | "climate.product.created" + | "climate.product.pricing_updated" + | "coupon.created" + | "coupon.deleted" + | "coupon.updated" + | "credit_note.created" + | "credit_note.updated" + | "credit_note.voided" + | "customer.created" + | "customer.deleted" + | "customer.discount.created" + | "customer.discount.deleted" + | "customer.discount.updated" + | "customer.source.created" + | "customer.source.deleted" + | "customer.source.expiring" + | "customer.source.updated" + | "customer.subscription.created" + | "customer.subscription.deleted" + | "customer.subscription.paused" + | "customer.subscription.pending_update_applied" + | "customer.subscription.pending_update_expired" + | "customer.subscription.resumed" + | "customer.subscription.trial_will_end" + | "customer.subscription.updated" + | "customer.tax_id.created" + | "customer.tax_id.deleted" + | "customer.tax_id.updated" + | "customer.updated" + | "customer_cash_balance_transaction.created" + | "entitlements.active_entitlement_summary.updated" + | "file.created" + | "financial_connections.account.created" + | "financial_connections.account.deactivated" + | "financial_connections.account.disconnected" + | "financial_connections.account.reactivated" + | "financial_connections.account.refreshed_balance" + | "financial_connections.account.refreshed_ownership" + | "financial_connections.account.refreshed_transactions" + | "identity.verification_session.canceled" + | "identity.verification_session.created" + | "identity.verification_session.processing" + | "identity.verification_session.redacted" + | "identity.verification_session.requires_input" + | "identity.verification_session.verified" + | "invoice.created" + | "invoice.deleted" + | "invoice.finalization_failed" + | "invoice.finalized" + | "invoice.marked_uncollectible" + | "invoice.overdue" + | "invoice.paid" + | "invoice.payment_action_required" + | "invoice.payment_failed" + | "invoice.payment_succeeded" + | "invoice.sent" + | "invoice.upcoming" + | "invoice.updated" + | "invoice.voided" + | "invoice.will_be_due" + | "invoiceitem.created" + | "invoiceitem.deleted" + | "issuing_authorization.created" + | "issuing_authorization.request" + | "issuing_authorization.updated" + | "issuing_card.created" + | "issuing_card.updated" + | "issuing_cardholder.created" + | "issuing_cardholder.updated" + | "issuing_dispute.closed" + | "issuing_dispute.created" + | "issuing_dispute.funds_reinstated" + | "issuing_dispute.funds_rescinded" + | "issuing_dispute.submitted" + | "issuing_dispute.updated" + | "issuing_personalization_design.activated" + | "issuing_personalization_design.deactivated" + | "issuing_personalization_design.rejected" + | "issuing_personalization_design.updated" + | "issuing_token.created" + | "issuing_token.updated" + | "issuing_transaction.created" + | "issuing_transaction.purchase_details_receipt_updated" + | "issuing_transaction.updated" + | "mandate.updated" + | "payment_intent.amount_capturable_updated" + | "payment_intent.canceled" + | "payment_intent.created" + | "payment_intent.partially_funded" + | "payment_intent.payment_failed" + | "payment_intent.processing" + | "payment_intent.requires_action" + | "payment_intent.succeeded" + | "payment_link.created" + | "payment_link.updated" + | "payment_method.attached" + | "payment_method.automatically_updated" + | "payment_method.detached" + | "payment_method.updated" + | "payout.canceled" + | "payout.created" + | "payout.failed" + | "payout.paid" + | "payout.reconciliation_completed" + | "payout.updated" + | "person.created" + | "person.deleted" + | "person.updated" + | "plan.created" + | "plan.deleted" + | "plan.updated" + | "price.created" + | "price.deleted" + | "price.updated" + | "product.created" + | "product.deleted" + | "product.updated" + | "promotion_code.created" + | "promotion_code.updated" + | "quote.accepted" + | "quote.canceled" + | "quote.created" + | "quote.finalized" + | "radar.early_fraud_warning.created" + | "radar.early_fraud_warning.updated" + | "refund.created" + | "refund.failed" + | "refund.updated" + | "reporting.report_run.failed" + | "reporting.report_run.succeeded" + | "reporting.report_type.updated" + | "review.closed" + | "review.opened" + | "setup_intent.canceled" + | "setup_intent.created" + | "setup_intent.requires_action" + | "setup_intent.setup_failed" + | "setup_intent.succeeded" + | "sigma.scheduled_query_run.created" + | "source.canceled" + | "source.chargeable" + | "source.failed" + | "source.mandate_notification" + | "source.refund_attributes_required" + | "source.transaction.created" + | "source.transaction.updated" + | "subscription_schedule.aborted" + | "subscription_schedule.canceled" + | "subscription_schedule.completed" + | "subscription_schedule.created" + | "subscription_schedule.expiring" + | "subscription_schedule.released" + | "subscription_schedule.updated" + | "tax.settings.updated" + | "tax_rate.created" + | "tax_rate.updated" + | "terminal.reader.action_failed" + | "terminal.reader.action_succeeded" + | "test_helpers.test_clock.advancing" + | "test_helpers.test_clock.created" + | "test_helpers.test_clock.deleted" + | "test_helpers.test_clock.internal_failure" + | "test_helpers.test_clock.ready" + | "topup.canceled" + | "topup.created" + | "topup.failed" + | "topup.reversed" + | "topup.succeeded" + | "transfer.created" + | "transfer.reversed" + | "transfer.updated" + | "treasury.credit_reversal.created" + | "treasury.credit_reversal.posted" + | "treasury.debit_reversal.completed" + | "treasury.debit_reversal.created" + | "treasury.debit_reversal.initial_credit_granted" + | "treasury.financial_account.closed" + | "treasury.financial_account.created" + | "treasury.financial_account.features_status_updated" + | "treasury.inbound_transfer.canceled" + | "treasury.inbound_transfer.created" + | "treasury.inbound_transfer.failed" + | "treasury.inbound_transfer.succeeded" + | "treasury.outbound_payment.canceled" + | "treasury.outbound_payment.created" + | "treasury.outbound_payment.expected_arrival_date_updated" + | "treasury.outbound_payment.failed" + | "treasury.outbound_payment.posted" + | "treasury.outbound_payment.returned" + | "treasury.outbound_payment.tracking_details_updated" + | "treasury.outbound_transfer.canceled" + | "treasury.outbound_transfer.created" + | "treasury.outbound_transfer.expected_arrival_date_updated" + | "treasury.outbound_transfer.failed" + | "treasury.outbound_transfer.posted" + | "treasury.outbound_transfer.returned" + | "treasury.outbound_transfer.tracking_details_updated" + | "treasury.received_credit.created" + | "treasury.received_credit.failed" + | "treasury.received_credit.succeeded" + | "treasury.received_debit.created" + )[] + | undefined + expand?: string[] | undefined + metadata?: + | ( + | { + [key: string]: string | undefined + } + | "" + ) + | undefined + url?: string | undefined } }, timeout?: number, diff --git a/integration-tests/typescript-axios/src/generated/stripe.yaml/models.ts b/integration-tests/typescript-axios/src/generated/stripe.yaml/models.ts index 554da0c6..f3f35b56 100644 --- a/integration-tests/typescript-axios/src/generated/stripe.yaml/models.ts +++ b/integration-tests/typescript-axios/src/generated/stripe.yaml/models.ts @@ -5,147 +5,151 @@ export type EmptyObject = { [key: string]: never } export type t_account = { - business_profile?: t_account_business_profile | null + business_profile?: (t_account_business_profile | null) | undefined business_type?: - | "company" - | "government_entity" - | "individual" - | "non_profit" - | null - capabilities?: t_account_capabilities - charges_enabled?: boolean - company?: t_legal_entity_company - controller?: t_account_unification_account_controller - country?: string - created?: number - default_currency?: string - details_submitted?: boolean - email?: string | null - external_accounts?: { - data: (t_bank_account | t_card)[] - has_more: boolean - object: "list" - url: string - } - future_requirements?: t_account_future_requirements - groups?: t_account_group_membership | null - id: string - individual?: t_person - metadata?: { - [key: string]: string | undefined - } + | ("company" | "government_entity" | "individual" | "non_profit" | null) + | undefined + capabilities?: t_account_capabilities | undefined + charges_enabled?: boolean | undefined + company?: t_legal_entity_company | undefined + controller?: t_account_unification_account_controller | undefined + country?: string | undefined + created?: number | undefined + default_currency?: string | undefined + details_submitted?: boolean | undefined + email?: (string | null) | undefined + external_accounts?: + | { + data: (t_bank_account | t_card)[] + has_more: boolean + object: "list" + url: string + } + | undefined + future_requirements?: t_account_future_requirements | undefined + groups?: (t_account_group_membership | null) | undefined + id: string + individual?: t_person | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined object: "account" - payouts_enabled?: boolean - requirements?: t_account_requirements - settings?: t_account_settings | null - tos_acceptance?: t_account_tos_acceptance - type?: "custom" | "express" | "none" | "standard" + payouts_enabled?: boolean | undefined + requirements?: t_account_requirements | undefined + settings?: (t_account_settings | null) | undefined + tos_acceptance?: t_account_tos_acceptance | undefined + type?: ("custom" | "express" | "none" | "standard") | undefined } export type t_account_annual_revenue = { - amount?: number | null - currency?: string | null - fiscal_year_end?: string | null + amount?: (number | null) | undefined + currency?: (string | null) | undefined + fiscal_year_end?: (string | null) | undefined } export type t_account_bacs_debit_payments_settings = { - display_name?: string | null - service_user_number?: string | null + display_name?: (string | null) | undefined + service_user_number?: (string | null) | undefined } export type t_account_branding_settings = { - icon?: string | t_file | null - logo?: string | t_file | null - primary_color?: string | null - secondary_color?: string | null + icon?: (string | t_file | null) | undefined + logo?: (string | t_file | null) | undefined + primary_color?: (string | null) | undefined + secondary_color?: (string | null) | undefined } export type t_account_business_profile = { - annual_revenue?: t_account_annual_revenue | null - estimated_worker_count?: number | null - mcc?: string | null - monthly_estimated_revenue?: t_account_monthly_estimated_revenue - name?: string | null - product_description?: string | null - support_address?: t_address | null - support_email?: string | null - support_phone?: string | null - support_url?: string | null - url?: string | null + annual_revenue?: (t_account_annual_revenue | null) | undefined + estimated_worker_count?: (number | null) | undefined + mcc?: (string | null) | undefined + monthly_estimated_revenue?: t_account_monthly_estimated_revenue | undefined + name?: (string | null) | undefined + product_description?: (string | null) | undefined + support_address?: (t_address | null) | undefined + support_email?: (string | null) | undefined + support_phone?: (string | null) | undefined + support_url?: (string | null) | undefined + url?: (string | null) | undefined } export type t_account_capabilities = { - acss_debit_payments?: "active" | "inactive" | "pending" - affirm_payments?: "active" | "inactive" | "pending" - afterpay_clearpay_payments?: "active" | "inactive" | "pending" - alma_payments?: "active" | "inactive" | "pending" - amazon_pay_payments?: "active" | "inactive" | "pending" - au_becs_debit_payments?: "active" | "inactive" | "pending" - bacs_debit_payments?: "active" | "inactive" | "pending" - bancontact_payments?: "active" | "inactive" | "pending" - bank_transfer_payments?: "active" | "inactive" | "pending" - blik_payments?: "active" | "inactive" | "pending" - boleto_payments?: "active" | "inactive" | "pending" - card_issuing?: "active" | "inactive" | "pending" - card_payments?: "active" | "inactive" | "pending" - cartes_bancaires_payments?: "active" | "inactive" | "pending" - cashapp_payments?: "active" | "inactive" | "pending" - eps_payments?: "active" | "inactive" | "pending" - fpx_payments?: "active" | "inactive" | "pending" - gb_bank_transfer_payments?: "active" | "inactive" | "pending" - giropay_payments?: "active" | "inactive" | "pending" - grabpay_payments?: "active" | "inactive" | "pending" - ideal_payments?: "active" | "inactive" | "pending" - india_international_payments?: "active" | "inactive" | "pending" - jcb_payments?: "active" | "inactive" | "pending" - jp_bank_transfer_payments?: "active" | "inactive" | "pending" - kakao_pay_payments?: "active" | "inactive" | "pending" - klarna_payments?: "active" | "inactive" | "pending" - konbini_payments?: "active" | "inactive" | "pending" - kr_card_payments?: "active" | "inactive" | "pending" - legacy_payments?: "active" | "inactive" | "pending" - link_payments?: "active" | "inactive" | "pending" - mobilepay_payments?: "active" | "inactive" | "pending" - multibanco_payments?: "active" | "inactive" | "pending" - mx_bank_transfer_payments?: "active" | "inactive" | "pending" - naver_pay_payments?: "active" | "inactive" | "pending" - oxxo_payments?: "active" | "inactive" | "pending" - p24_payments?: "active" | "inactive" | "pending" - payco_payments?: "active" | "inactive" | "pending" - paynow_payments?: "active" | "inactive" | "pending" - promptpay_payments?: "active" | "inactive" | "pending" - revolut_pay_payments?: "active" | "inactive" | "pending" - samsung_pay_payments?: "active" | "inactive" | "pending" - sepa_bank_transfer_payments?: "active" | "inactive" | "pending" - sepa_debit_payments?: "active" | "inactive" | "pending" - sofort_payments?: "active" | "inactive" | "pending" - swish_payments?: "active" | "inactive" | "pending" - tax_reporting_us_1099_k?: "active" | "inactive" | "pending" - tax_reporting_us_1099_misc?: "active" | "inactive" | "pending" - transfers?: "active" | "inactive" | "pending" - treasury?: "active" | "inactive" | "pending" - twint_payments?: "active" | "inactive" | "pending" - us_bank_account_ach_payments?: "active" | "inactive" | "pending" - us_bank_transfer_payments?: "active" | "inactive" | "pending" - zip_payments?: "active" | "inactive" | "pending" + acss_debit_payments?: ("active" | "inactive" | "pending") | undefined + affirm_payments?: ("active" | "inactive" | "pending") | undefined + afterpay_clearpay_payments?: ("active" | "inactive" | "pending") | undefined + alma_payments?: ("active" | "inactive" | "pending") | undefined + amazon_pay_payments?: ("active" | "inactive" | "pending") | undefined + au_becs_debit_payments?: ("active" | "inactive" | "pending") | undefined + bacs_debit_payments?: ("active" | "inactive" | "pending") | undefined + bancontact_payments?: ("active" | "inactive" | "pending") | undefined + bank_transfer_payments?: ("active" | "inactive" | "pending") | undefined + blik_payments?: ("active" | "inactive" | "pending") | undefined + boleto_payments?: ("active" | "inactive" | "pending") | undefined + card_issuing?: ("active" | "inactive" | "pending") | undefined + card_payments?: ("active" | "inactive" | "pending") | undefined + cartes_bancaires_payments?: ("active" | "inactive" | "pending") | undefined + cashapp_payments?: ("active" | "inactive" | "pending") | undefined + eps_payments?: ("active" | "inactive" | "pending") | undefined + fpx_payments?: ("active" | "inactive" | "pending") | undefined + gb_bank_transfer_payments?: ("active" | "inactive" | "pending") | undefined + giropay_payments?: ("active" | "inactive" | "pending") | undefined + grabpay_payments?: ("active" | "inactive" | "pending") | undefined + ideal_payments?: ("active" | "inactive" | "pending") | undefined + india_international_payments?: ("active" | "inactive" | "pending") | undefined + jcb_payments?: ("active" | "inactive" | "pending") | undefined + jp_bank_transfer_payments?: ("active" | "inactive" | "pending") | undefined + kakao_pay_payments?: ("active" | "inactive" | "pending") | undefined + klarna_payments?: ("active" | "inactive" | "pending") | undefined + konbini_payments?: ("active" | "inactive" | "pending") | undefined + kr_card_payments?: ("active" | "inactive" | "pending") | undefined + legacy_payments?: ("active" | "inactive" | "pending") | undefined + link_payments?: ("active" | "inactive" | "pending") | undefined + mobilepay_payments?: ("active" | "inactive" | "pending") | undefined + multibanco_payments?: ("active" | "inactive" | "pending") | undefined + mx_bank_transfer_payments?: ("active" | "inactive" | "pending") | undefined + naver_pay_payments?: ("active" | "inactive" | "pending") | undefined + oxxo_payments?: ("active" | "inactive" | "pending") | undefined + p24_payments?: ("active" | "inactive" | "pending") | undefined + payco_payments?: ("active" | "inactive" | "pending") | undefined + paynow_payments?: ("active" | "inactive" | "pending") | undefined + promptpay_payments?: ("active" | "inactive" | "pending") | undefined + revolut_pay_payments?: ("active" | "inactive" | "pending") | undefined + samsung_pay_payments?: ("active" | "inactive" | "pending") | undefined + sepa_bank_transfer_payments?: ("active" | "inactive" | "pending") | undefined + sepa_debit_payments?: ("active" | "inactive" | "pending") | undefined + sofort_payments?: ("active" | "inactive" | "pending") | undefined + swish_payments?: ("active" | "inactive" | "pending") | undefined + tax_reporting_us_1099_k?: ("active" | "inactive" | "pending") | undefined + tax_reporting_us_1099_misc?: ("active" | "inactive" | "pending") | undefined + transfers?: ("active" | "inactive" | "pending") | undefined + treasury?: ("active" | "inactive" | "pending") | undefined + twint_payments?: ("active" | "inactive" | "pending") | undefined + us_bank_account_ach_payments?: ("active" | "inactive" | "pending") | undefined + us_bank_transfer_payments?: ("active" | "inactive" | "pending") | undefined + zip_payments?: ("active" | "inactive" | "pending") | undefined } export type t_account_capability_future_requirements = { - alternatives?: t_account_requirements_alternative[] | null - current_deadline?: number | null + alternatives?: (t_account_requirements_alternative[] | null) | undefined + current_deadline?: (number | null) | undefined currently_due: string[] disabled_reason?: - | "other" - | "paused.inactivity" - | "pending.onboarding" - | "pending.review" - | "platform_disabled" - | "platform_paused" - | "rejected.inactivity" - | "rejected.other" - | "rejected.unsupported_business" - | "requirements.fields_needed" - | null + | ( + | "other" + | "paused.inactivity" + | "pending.onboarding" + | "pending.review" + | "platform_disabled" + | "platform_paused" + | "rejected.inactivity" + | "rejected.other" + | "rejected.unsupported_business" + | "requirements.fields_needed" + | null + ) + | undefined errors: t_account_requirements_error[] eventually_due: string[] past_due: string[] @@ -153,21 +157,24 @@ export type t_account_capability_future_requirements = { } export type t_account_capability_requirements = { - alternatives?: t_account_requirements_alternative[] | null - current_deadline?: number | null + alternatives?: (t_account_requirements_alternative[] | null) | undefined + current_deadline?: (number | null) | undefined currently_due: string[] disabled_reason?: - | "other" - | "paused.inactivity" - | "pending.onboarding" - | "pending.review" - | "platform_disabled" - | "platform_paused" - | "rejected.inactivity" - | "rejected.other" - | "rejected.unsupported_business" - | "requirements.fields_needed" - | null + | ( + | "other" + | "paused.inactivity" + | "pending.onboarding" + | "pending.review" + | "platform_disabled" + | "platform_paused" + | "rejected.inactivity" + | "rejected.other" + | "rejected.unsupported_business" + | "requirements.fields_needed" + | null + ) + | undefined errors: t_account_requirements_error[] eventually_due: string[] past_due: string[] @@ -175,19 +182,19 @@ export type t_account_capability_requirements = { } export type t_account_card_issuing_settings = { - tos_acceptance?: t_card_issuing_account_terms_of_service + tos_acceptance?: t_card_issuing_account_terms_of_service | undefined } export type t_account_card_payments_settings = { - decline_on?: t_account_decline_charge_on - statement_descriptor_prefix?: string | null - statement_descriptor_prefix_kana?: string | null - statement_descriptor_prefix_kanji?: string | null + decline_on?: t_account_decline_charge_on | undefined + statement_descriptor_prefix?: (string | null) | undefined + statement_descriptor_prefix_kana?: (string | null) | undefined + statement_descriptor_prefix_kanji?: (string | null) | undefined } export type t_account_dashboard_settings = { - display_name?: string | null - timezone?: string | null + display_name?: (string | null) | undefined + timezone?: (string | null) | undefined } export type t_account_decline_charge_on = { @@ -196,38 +203,41 @@ export type t_account_decline_charge_on = { } export type t_account_future_requirements = { - alternatives?: t_account_requirements_alternative[] | null - current_deadline?: number | null - currently_due?: string[] | null + alternatives?: (t_account_requirements_alternative[] | null) | undefined + current_deadline?: (number | null) | undefined + currently_due?: (string[] | null) | undefined disabled_reason?: - | "action_required.requested_capabilities" - | "listed" - | "other" - | "platform_paused" - | "rejected.fraud" - | "rejected.incomplete_verification" - | "rejected.listed" - | "rejected.other" - | "rejected.platform_fraud" - | "rejected.platform_other" - | "rejected.platform_terms_of_service" - | "rejected.terms_of_service" - | "requirements.past_due" - | "requirements.pending_verification" - | "under_review" - | null - errors?: t_account_requirements_error[] | null - eventually_due?: string[] | null - past_due?: string[] | null - pending_verification?: string[] | null + | ( + | "action_required.requested_capabilities" + | "listed" + | "other" + | "platform_paused" + | "rejected.fraud" + | "rejected.incomplete_verification" + | "rejected.listed" + | "rejected.other" + | "rejected.platform_fraud" + | "rejected.platform_other" + | "rejected.platform_terms_of_service" + | "rejected.terms_of_service" + | "requirements.past_due" + | "requirements.pending_verification" + | "under_review" + | null + ) + | undefined + errors?: (t_account_requirements_error[] | null) | undefined + eventually_due?: (string[] | null) | undefined + past_due?: (string[] | null) | undefined + pending_verification?: (string[] | null) | undefined } export type t_account_group_membership = { - payments_pricing?: string | null + payments_pricing?: (string | null) | undefined } export type t_account_invoices_settings = { - default_account_tax_ids?: (string | t_tax_id)[] | null + default_account_tax_ids?: ((string | t_tax_id)[] | null) | undefined } export type t_account_link = { @@ -243,44 +253,47 @@ export type t_account_monthly_estimated_revenue = { } export type t_account_payments_settings = { - statement_descriptor?: string | null - statement_descriptor_kana?: string | null - statement_descriptor_kanji?: string | null - statement_descriptor_prefix_kana?: string | null - statement_descriptor_prefix_kanji?: string | null + statement_descriptor?: (string | null) | undefined + statement_descriptor_kana?: (string | null) | undefined + statement_descriptor_kanji?: (string | null) | undefined + statement_descriptor_prefix_kana?: (string | null) | undefined + statement_descriptor_prefix_kanji?: (string | null) | undefined } export type t_account_payout_settings = { debit_negative_balances: boolean schedule: t_transfer_schedule - statement_descriptor?: string | null + statement_descriptor?: (string | null) | undefined } export type t_account_requirements = { - alternatives?: t_account_requirements_alternative[] | null - current_deadline?: number | null - currently_due?: string[] | null + alternatives?: (t_account_requirements_alternative[] | null) | undefined + current_deadline?: (number | null) | undefined + currently_due?: (string[] | null) | undefined disabled_reason?: - | "action_required.requested_capabilities" - | "listed" - | "other" - | "platform_paused" - | "rejected.fraud" - | "rejected.incomplete_verification" - | "rejected.listed" - | "rejected.other" - | "rejected.platform_fraud" - | "rejected.platform_other" - | "rejected.platform_terms_of_service" - | "rejected.terms_of_service" - | "requirements.past_due" - | "requirements.pending_verification" - | "under_review" - | null - errors?: t_account_requirements_error[] | null - eventually_due?: string[] | null - past_due?: string[] | null - pending_verification?: string[] | null + | ( + | "action_required.requested_capabilities" + | "listed" + | "other" + | "platform_paused" + | "rejected.fraud" + | "rejected.incomplete_verification" + | "rejected.listed" + | "rejected.other" + | "rejected.platform_fraud" + | "rejected.platform_other" + | "rejected.platform_terms_of_service" + | "rejected.terms_of_service" + | "requirements.past_due" + | "requirements.pending_verification" + | "under_review" + | null + ) + | undefined + errors?: (t_account_requirements_error[] | null) | undefined + eventually_due?: (string[] | null) | undefined + past_due?: (string[] | null) | undefined + pending_verification?: (string[] | null) | undefined } export type t_account_requirements_alternative = { @@ -384,7 +397,7 @@ export type t_account_requirements_error = { } export type t_account_sepa_debit_payments_settings = { - creditor_id?: string + creditor_id?: string | undefined } export type t_account_session = { @@ -397,41 +410,43 @@ export type t_account_session = { } export type t_account_settings = { - bacs_debit_payments?: t_account_bacs_debit_payments_settings + bacs_debit_payments?: t_account_bacs_debit_payments_settings | undefined branding: t_account_branding_settings - card_issuing?: t_account_card_issuing_settings + card_issuing?: t_account_card_issuing_settings | undefined card_payments: t_account_card_payments_settings dashboard: t_account_dashboard_settings - invoices?: t_account_invoices_settings + invoices?: t_account_invoices_settings | undefined payments: t_account_payments_settings - payouts?: t_account_payout_settings - sepa_debit_payments?: t_account_sepa_debit_payments_settings - treasury?: t_account_treasury_settings + payouts?: t_account_payout_settings | undefined + sepa_debit_payments?: t_account_sepa_debit_payments_settings | undefined + treasury?: t_account_treasury_settings | undefined } export type t_account_terms_of_service = { - date?: number | null - ip?: string | null - user_agent?: string + date?: (number | null) | undefined + ip?: (string | null) | undefined + user_agent?: string | undefined } export type t_account_tos_acceptance = { - date?: number | null - ip?: string | null - service_agreement?: string - user_agent?: string | null + date?: (number | null) | undefined + ip?: (string | null) | undefined + service_agreement?: string | undefined + user_agent?: (string | null) | undefined } export type t_account_treasury_settings = { - tos_acceptance?: t_account_terms_of_service + tos_acceptance?: t_account_terms_of_service | undefined } export type t_account_unification_account_controller = { - fees?: t_account_unification_account_controller_fees - is_controller?: boolean - losses?: t_account_unification_account_controller_losses - requirement_collection?: "application" | "stripe" - stripe_dashboard?: t_account_unification_account_controller_stripe_dashboard + fees?: t_account_unification_account_controller_fees | undefined + is_controller?: boolean | undefined + losses?: t_account_unification_account_controller_losses | undefined + requirement_collection?: ("application" | "stripe") | undefined + stripe_dashboard?: + | t_account_unification_account_controller_stripe_dashboard + | undefined type: "account" | "application" } @@ -452,27 +467,27 @@ export type t_account_unification_account_controller_stripe_dashboard = { } export type t_address = { - city?: string | null - country?: string | null - line1?: string | null - line2?: string | null - postal_code?: string | null - state?: string | null + city?: (string | null) | undefined + country?: (string | null) | undefined + line1?: (string | null) | undefined + line2?: (string | null) | undefined + postal_code?: (string | null) | undefined + state?: (string | null) | undefined } export type t_api_errors = { - charge?: string - code?: string - decline_code?: string - doc_url?: string - message?: string - param?: string - payment_intent?: t_payment_intent - payment_method?: t_payment_method - payment_method_type?: string - request_log_url?: string - setup_intent?: t_setup_intent - source?: t_bank_account | t_card | t_source + charge?: string | undefined + code?: string | undefined + decline_code?: string | undefined + doc_url?: string | undefined + message?: string | undefined + param?: string | undefined + payment_intent?: t_payment_intent | undefined + payment_method?: t_payment_method | undefined + payment_method_type?: string | undefined + request_log_url?: string | undefined + setup_intent?: t_setup_intent | undefined + source?: (t_bank_account | t_card | t_source) | undefined type: | "api_error" | "card_error" @@ -490,7 +505,7 @@ export type t_apple_pay_domain = { export type t_application = { id: string - name?: string | null + name?: (string | null) | undefined object: "application" } @@ -499,15 +514,15 @@ export type t_application_fee = { amount: number amount_refunded: number application: string | t_application - balance_transaction?: string | t_balance_transaction | null + balance_transaction?: (string | t_balance_transaction | null) | undefined charge: string | t_charge created: number currency: string - fee_source?: t_platform_earning_fee_source | null + fee_source?: (t_platform_earning_fee_source | null) | undefined id: string livemode: boolean object: "application_fee" - originating_transaction?: string | t_charge | null + originating_transaction?: (string | t_charge | null) | undefined refunded: boolean refunds: { data: t_fee_refund[] @@ -519,27 +534,29 @@ export type t_application_fee = { export type t_apps_secret = { created: number - deleted?: boolean - expires_at?: number | null + deleted?: boolean | undefined + expires_at?: (number | null) | undefined id: string livemode: boolean name: string object: "apps.secret" - payload?: string | null + payload?: (string | null) | undefined scope: t_secret_service_resource_scope } export type t_automatic_tax = { enabled: boolean - liability?: t_connect_account_reference | null - status?: "complete" | "failed" | "requires_location_inputs" | null + liability?: (t_connect_account_reference | null) | undefined + status?: + | ("complete" | "failed" | "requires_location_inputs" | null) + | undefined } export type t_balance = { available: t_balance_amount[] - connect_reserved?: t_balance_amount[] - instant_available?: t_balance_amount_net[] - issuing?: t_balance_detail + connect_reserved?: t_balance_amount[] | undefined + instant_available?: t_balance_amount_net[] | undefined + issuing?: t_balance_detail | undefined livemode: boolean object: "balance" pending: t_balance_amount[] @@ -548,20 +565,20 @@ export type t_balance = { export type t_balance_amount = { amount: number currency: string - source_types?: t_balance_amount_by_source_type + source_types?: t_balance_amount_by_source_type | undefined } export type t_balance_amount_by_source_type = { - bank_account?: number - card?: number - fpx?: number + bank_account?: number | undefined + card?: number | undefined + fpx?: number | undefined } export type t_balance_amount_net = { amount: number currency: string - net_available?: t_balance_net_available[] - source_types?: t_balance_amount_by_source_type + net_available?: t_balance_net_available[] | undefined + source_types?: t_balance_amount_by_source_type | undefined } export type t_balance_detail = { @@ -571,7 +588,7 @@ export type t_balance_detail = { export type t_balance_net_available = { amount: number destination: string - source_types?: t_balance_amount_by_source_type + source_types?: t_balance_amount_by_source_type | undefined } export type t_balance_transaction = { @@ -579,8 +596,8 @@ export type t_balance_transaction = { available_on: number created: number currency: string - description?: string | null - exchange_rate?: number | null + description?: (string | null) | undefined + exchange_rate?: (number | null) | undefined fee: number fee_details: t_fee[] id: string @@ -588,24 +605,27 @@ export type t_balance_transaction = { object: "balance_transaction" reporting_category: string source?: - | string - | t_application_fee - | t_charge - | t_connect_collection_transfer - | t_customer_cash_balance_transaction - | t_dispute - | t_fee_refund - | t_issuing_authorization - | t_issuing_dispute - | t_issuing_transaction - | t_payout - | t_refund - | t_reserve_transaction - | t_tax_deducted_at_source - | t_topup - | t_transfer - | t_transfer_reversal - | null + | ( + | string + | t_application_fee + | t_charge + | t_connect_collection_transfer + | t_customer_cash_balance_transaction + | t_dispute + | t_fee_refund + | t_issuing_authorization + | t_issuing_dispute + | t_issuing_transaction + | t_payout + | t_refund + | t_reserve_transaction + | t_tax_deducted_at_source + | t_topup + | t_transfer + | t_transfer_reversal + | null + ) + | undefined status: string type: | "adjustment" @@ -651,39 +671,45 @@ export type t_balance_transaction = { } export type t_bank_account = { - account?: string | t_account | null - account_holder_name?: string | null - account_holder_type?: string | null - account_type?: string | null - available_payout_methods?: ("instant" | "standard")[] | null - bank_name?: string | null + account?: (string | t_account | null) | undefined + account_holder_name?: (string | null) | undefined + account_holder_type?: (string | null) | undefined + account_type?: (string | null) | undefined + available_payout_methods?: (("instant" | "standard")[] | null) | undefined + bank_name?: (string | null) | undefined country: string currency: string - customer?: string | t_customer | t_deleted_customer | null - default_for_currency?: boolean | null - fingerprint?: string | null - future_requirements?: t_external_account_requirements | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + default_for_currency?: (boolean | null) | undefined + fingerprint?: (string | null) | undefined + future_requirements?: (t_external_account_requirements | null) | undefined id: string last4: string - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "bank_account" - requirements?: t_external_account_requirements | null - routing_number?: string | null + requirements?: (t_external_account_requirements | null) | undefined + routing_number?: (string | null) | undefined status: string } export type t_bank_connections_resource_accountholder = { - account?: string | t_account - customer?: string | t_customer + account?: (string | t_account) | undefined + customer?: (string | t_customer) | undefined type: "account" | "customer" } export type t_bank_connections_resource_balance = { as_of: number - cash?: t_bank_connections_resource_balance_api_resource_cash_balance - credit?: t_bank_connections_resource_balance_api_resource_credit_balance + cash?: + | t_bank_connections_resource_balance_api_resource_cash_balance + | undefined + credit?: + | t_bank_connections_resource_balance_api_resource_credit_balance + | undefined current: { [key: string]: number | undefined } @@ -691,47 +717,60 @@ export type t_bank_connections_resource_balance = { } export type t_bank_connections_resource_balance_api_resource_cash_balance = { - available?: { - [key: string]: number | undefined - } | null + available?: + | ({ + [key: string]: number | undefined + } | null) + | undefined } export type t_bank_connections_resource_balance_api_resource_credit_balance = { - used?: { - [key: string]: number | undefined - } | null + used?: + | ({ + [key: string]: number | undefined + } | null) + | undefined } export type t_bank_connections_resource_balance_refresh = { last_attempted_at: number - next_refresh_available_at?: number | null + next_refresh_available_at?: (number | null) | undefined status: "failed" | "pending" | "succeeded" } export type t_bank_connections_resource_link_account_session_filters = { account_subcategories?: - | ("checking" | "credit_card" | "line_of_credit" | "mortgage" | "savings")[] - | null - countries?: string[] | null + | ( + | ( + | "checking" + | "credit_card" + | "line_of_credit" + | "mortgage" + | "savings" + )[] + | null + ) + | undefined + countries?: (string[] | null) | undefined } export type t_bank_connections_resource_ownership_refresh = { last_attempted_at: number - next_refresh_available_at?: number | null + next_refresh_available_at?: (number | null) | undefined status: "failed" | "pending" | "succeeded" } export type t_bank_connections_resource_transaction_refresh = { id: string last_attempted_at: number - next_refresh_available_at?: number | null + next_refresh_available_at?: (number | null) | undefined status: "failed" | "pending" | "succeeded" } export type t_bank_connections_resource_transaction_resource_status_transitions = { - posted_at?: number | null - void_at?: number | null + posted_at?: (number | null) | undefined + void_at?: (number | null) | undefined } export type t_billing_alert = { @@ -739,9 +778,11 @@ export type t_billing_alert = { id: string livemode: boolean object: "billing.alert" - status?: "active" | "archived" | "inactive" | null + status?: ("active" | "archived" | "inactive" | null) | undefined title: string - usage_threshold?: t_thresholds_resource_usage_threshold_config | null + usage_threshold?: + | (t_thresholds_resource_usage_threshold_config | null) + | undefined } export type t_billing_credit_balance_summary = { @@ -753,15 +794,15 @@ export type t_billing_credit_balance_summary = { export type t_billing_credit_balance_transaction = { created: number - credit?: t_billing_credit_grants_resource_balance_credit | null + credit?: (t_billing_credit_grants_resource_balance_credit | null) | undefined credit_grant: string | t_billing_credit_grant - debit?: t_billing_credit_grants_resource_balance_debit | null + debit?: (t_billing_credit_grants_resource_balance_debit | null) | undefined effective_at: number id: string livemode: boolean object: "billing.credit_balance_transaction" - test_clock?: string | t_test_helpers_test_clock | null - type?: "credit" | "debit" | null + test_clock?: (string | t_test_helpers_test_clock | null) | undefined + type?: ("credit" | "debit" | null) | undefined } export type t_billing_credit_grant = { @@ -770,18 +811,18 @@ export type t_billing_credit_grant = { category: "paid" | "promotional" created: number customer: string | t_customer | t_deleted_customer - effective_at?: number | null - expires_at?: number | null + effective_at?: (number | null) | undefined + expires_at?: (number | null) | undefined id: string livemode: boolean metadata: { [key: string]: string | undefined } - name?: string | null + name?: (string | null) | undefined object: "billing.credit_grant" - test_clock?: string | t_test_helpers_test_clock | null + test_clock?: (string | t_test_helpers_test_clock | null) | undefined updated: number - voided_at?: number | null + voided_at?: (number | null) | undefined } export type t_billing_meter = { @@ -790,7 +831,7 @@ export type t_billing_meter = { default_aggregation: t_billing_meter_resource_aggregation_settings display_name: string event_name: string - event_time_window?: "day" | "hour" | null + event_time_window?: ("day" | "hour" | null) | undefined id: string livemode: boolean object: "billing.meter" @@ -813,7 +854,9 @@ export type t_billing_meter_event = { } export type t_billing_meter_event_adjustment = { - cancel?: t_billing_meter_resource_billing_meter_event_adjustment_cancel | null + cancel?: + | (t_billing_meter_resource_billing_meter_event_adjustment_cancel | null) + | undefined event_name: string livemode: boolean object: "billing.meter_event_adjustment" @@ -837,11 +880,15 @@ export type t_billing_clocks_resource_status_details_advancing_status_details = } export type t_billing_clocks_resource_status_details_status_details = { - advancing?: t_billing_clocks_resource_status_details_advancing_status_details + advancing?: + | t_billing_clocks_resource_status_details_advancing_status_details + | undefined } export type t_billing_credit_grants_resource_amount = { - monetary?: t_billing_credit_grants_resource_monetary_amount | null + monetary?: + | (t_billing_credit_grants_resource_monetary_amount | null) + | undefined type: "monetary" } @@ -861,7 +908,9 @@ export type t_billing_credit_grants_resource_balance_credits_applied = { export type t_billing_credit_grants_resource_balance_debit = { amount: t_billing_credit_grants_resource_amount - credits_applied?: t_billing_credit_grants_resource_balance_credits_applied | null + credits_applied?: + | (t_billing_credit_grants_resource_balance_credits_applied | null) + | undefined type: "credits_applied" | "credits_expired" | "credits_voided" } @@ -875,10 +924,10 @@ export type t_billing_credit_grants_resource_scope = { } export type t_billing_details = { - address?: t_address | null - email?: string | null - name?: string | null - phone?: string | null + address?: (t_address | null) | undefined + email?: (string | null) | undefined + name?: (string | null) | undefined + phone?: (string | null) | undefined } export type t_billing_meter_resource_aggregation_settings = { @@ -886,11 +935,11 @@ export type t_billing_meter_resource_aggregation_settings = { } export type t_billing_meter_resource_billing_meter_event_adjustment_cancel = { - identifier?: string | null + identifier?: (string | null) | undefined } export type t_billing_meter_resource_billing_meter_status_transitions = { - deactivated_at?: number | null + deactivated_at?: (number | null) | undefined } export type t_billing_meter_resource_billing_meter_value = { @@ -904,18 +953,22 @@ export type t_billing_meter_resource_customer_mapping_settings = { export type t_billing_portal_configuration = { active: boolean - application?: string | t_application | t_deleted_application | null + application?: + | (string | t_application | t_deleted_application | null) + | undefined business_profile: t_portal_business_profile created: number - default_return_url?: string | null + default_return_url?: (string | null) | undefined features: t_portal_features id: string is_default: boolean livemode: boolean login_page: t_portal_login_page - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "billing_portal.configuration" updated: number } @@ -924,145 +977,153 @@ export type t_billing_portal_session = { configuration: string | t_billing_portal_configuration created: number customer: string - flow?: t_portal_flows_flow | null + flow?: (t_portal_flows_flow | null) | undefined id: string livemode: boolean 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" - | null + | ( + | "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" + | null + ) + | undefined object: "billing_portal.session" - on_behalf_of?: string | null - return_url?: string | null + on_behalf_of?: (string | null) | undefined + return_url?: (string | null) | undefined url: string } export type t_cancellation_details = { - comment?: string | null + comment?: (string | null) | undefined feedback?: - | "customer_service" - | "low_quality" - | "missing_features" - | "other" - | "switched_service" - | "too_complex" - | "too_expensive" - | "unused" - | null + | ( + | "customer_service" + | "low_quality" + | "missing_features" + | "other" + | "switched_service" + | "too_complex" + | "too_expensive" + | "unused" + | null + ) + | undefined reason?: - | "cancellation_requested" - | "payment_disputed" - | "payment_failed" - | null + | ("cancellation_requested" | "payment_disputed" | "payment_failed" | null) + | undefined } export type t_capability = { account: string | t_account - future_requirements?: t_account_capability_future_requirements + future_requirements?: t_account_capability_future_requirements | undefined id: string object: "capability" requested: boolean - requested_at?: number | null - requirements?: t_account_capability_requirements + requested_at?: (number | null) | undefined + requirements?: t_account_capability_requirements | undefined status: "active" | "disabled" | "inactive" | "pending" | "unrequested" } export type t_card = { - account?: string | t_account | null - address_city?: string | null - address_country?: string | null - address_line1?: string | null - address_line1_check?: string | null - address_line2?: string | null - address_state?: string | null - address_zip?: string | null - address_zip_check?: string | null - available_payout_methods?: ("instant" | "standard")[] | null + account?: (string | t_account | null) | undefined + address_city?: (string | null) | undefined + address_country?: (string | null) | undefined + address_line1?: (string | null) | undefined + address_line1_check?: (string | null) | undefined + address_line2?: (string | null) | undefined + address_state?: (string | null) | undefined + address_zip?: (string | null) | undefined + address_zip_check?: (string | null) | undefined + available_payout_methods?: (("instant" | "standard")[] | null) | undefined brand: string - country?: string | null - currency?: string | null - customer?: string | t_customer | t_deleted_customer | null - cvc_check?: string | null - default_for_currency?: boolean | null - dynamic_last4?: string | null + country?: (string | null) | undefined + currency?: (string | null) | undefined + customer?: (string | t_customer | t_deleted_customer | null) | undefined + cvc_check?: (string | null) | undefined + default_for_currency?: (boolean | null) | undefined + dynamic_last4?: (string | null) | undefined exp_month: number exp_year: number - fingerprint?: string | null + fingerprint?: (string | null) | undefined funding: string id: string last4: string - metadata?: { - [key: string]: string | undefined - } | null - name?: string | null - networks?: t_token_card_networks + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + name?: (string | null) | undefined + networks?: t_token_card_networks | undefined object: "card" - status?: string | null - tokenization_method?: string | null + status?: (string | null) | undefined + tokenization_method?: (string | null) | undefined } export type t_card_generated_from_payment_method_details = { - card_present?: t_payment_method_details_card_present + card_present?: t_payment_method_details_card_present | undefined type: string } export type t_card_issuing_account_terms_of_service = { - date?: number | null - ip?: string | null - user_agent?: string + date?: (number | null) | undefined + ip?: (string | null) | undefined + user_agent?: string | undefined } export type t_card_mandate_payment_method_details = EmptyObject export type t_cash_balance = { - available?: { - [key: string]: number | undefined - } | null + available?: + | ({ + [key: string]: number | undefined + } | null) + | undefined customer: string livemode: boolean object: "cash_balance" @@ -1073,346 +1134,390 @@ export type t_charge = { amount: number amount_captured: number amount_refunded: number - application?: string | t_application | null - application_fee?: string | t_application_fee | null - application_fee_amount?: number | null - balance_transaction?: string | t_balance_transaction | null + application?: (string | t_application | null) | undefined + application_fee?: (string | t_application_fee | null) | undefined + application_fee_amount?: (number | null) | undefined + balance_transaction?: (string | t_balance_transaction | null) | undefined billing_details: t_billing_details - calculated_statement_descriptor?: string | null + calculated_statement_descriptor?: (string | null) | undefined captured: boolean created: number currency: string - customer?: string | t_customer | t_deleted_customer | null - description?: string | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + description?: (string | null) | undefined disputed: boolean - failure_balance_transaction?: string | t_balance_transaction | null - failure_code?: string | null - failure_message?: string | null - fraud_details?: t_charge_fraud_details | null - id: string - invoice?: string | t_invoice | null + failure_balance_transaction?: + | (string | t_balance_transaction | null) + | undefined + failure_code?: (string | null) | undefined + failure_message?: (string | null) | undefined + fraud_details?: (t_charge_fraud_details | null) | undefined + id: string + invoice?: (string | t_invoice | null) | undefined livemode: boolean metadata: { [key: string]: string | undefined } object: "charge" - on_behalf_of?: string | t_account | null - outcome?: t_charge_outcome | null + on_behalf_of?: (string | t_account | null) | undefined + outcome?: (t_charge_outcome | null) | undefined paid: boolean - payment_intent?: string | t_payment_intent | null - payment_method?: string | null - payment_method_details?: t_payment_method_details | null - radar_options?: t_radar_radar_options - receipt_email?: string | null - receipt_number?: string | null - receipt_url?: string | null + payment_intent?: (string | t_payment_intent | null) | undefined + payment_method?: (string | null) | undefined + payment_method_details?: (t_payment_method_details | null) | undefined + radar_options?: t_radar_radar_options | undefined + receipt_email?: (string | null) | undefined + receipt_number?: (string | null) | undefined + receipt_url?: (string | null) | undefined refunded: boolean - refunds?: { - data: t_refund[] - has_more: boolean - object: "list" - url: string - } | null - review?: string | t_review | null - shipping?: t_shipping | null - source_transfer?: string | t_transfer | null - statement_descriptor?: string | null - statement_descriptor_suffix?: string | null + refunds?: + | ({ + data: t_refund[] + has_more: boolean + object: "list" + url: string + } | null) + | undefined + review?: (string | t_review | null) | undefined + shipping?: (t_shipping | null) | undefined + source_transfer?: (string | t_transfer | null) | undefined + statement_descriptor?: (string | null) | undefined + statement_descriptor_suffix?: (string | null) | undefined status: "failed" | "pending" | "succeeded" - transfer?: string | t_transfer - transfer_data?: t_charge_transfer_data | null - transfer_group?: string | null + transfer?: (string | t_transfer) | undefined + transfer_data?: (t_charge_transfer_data | null) | undefined + transfer_group?: (string | null) | undefined } export type t_charge_fraud_details = { - stripe_report?: string - user_report?: string + stripe_report?: string | undefined + user_report?: string | undefined } export type t_charge_outcome = { - network_status?: string | null - reason?: string | null - risk_level?: string - risk_score?: number - rule?: string | t_rule - seller_message?: string | null + network_status?: (string | null) | undefined + reason?: (string | null) | undefined + risk_level?: string | undefined + risk_score?: number | undefined + rule?: (string | t_rule) | undefined + seller_message?: (string | null) | undefined type: string } export type t_charge_transfer_data = { - amount?: number | null + amount?: (number | null) | undefined destination: string | t_account } export type t_checkout_session = { - adaptive_pricing?: t_payment_pages_checkout_session_adaptive_pricing | null - after_expiration?: t_payment_pages_checkout_session_after_expiration | null - allow_promotion_codes?: boolean | null - amount_subtotal?: number | null - amount_total?: number | null + adaptive_pricing?: + | (t_payment_pages_checkout_session_adaptive_pricing | null) + | undefined + after_expiration?: + | (t_payment_pages_checkout_session_after_expiration | null) + | undefined + allow_promotion_codes?: (boolean | null) | undefined + amount_subtotal?: (number | null) | undefined + amount_total?: (number | null) | undefined automatic_tax: t_payment_pages_checkout_session_automatic_tax - billing_address_collection?: "auto" | "required" | null - cancel_url?: string | null - client_reference_id?: string | null - client_secret?: string | null - consent?: t_payment_pages_checkout_session_consent | null - consent_collection?: t_payment_pages_checkout_session_consent_collection | null + billing_address_collection?: ("auto" | "required" | null) | undefined + cancel_url?: (string | null) | undefined + client_reference_id?: (string | null) | undefined + client_secret?: (string | null) | undefined + consent?: (t_payment_pages_checkout_session_consent | null) | undefined + consent_collection?: + | (t_payment_pages_checkout_session_consent_collection | null) + | undefined created: number - currency?: string | null - currency_conversion?: t_payment_pages_checkout_session_currency_conversion | null + currency?: (string | null) | undefined + currency_conversion?: + | (t_payment_pages_checkout_session_currency_conversion | null) + | undefined custom_fields: t_payment_pages_checkout_session_custom_fields[] custom_text: t_payment_pages_checkout_session_custom_text - customer?: string | t_customer | t_deleted_customer | null - customer_creation?: "always" | "if_required" | null - customer_details?: t_payment_pages_checkout_session_customer_details | null - customer_email?: string | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + customer_creation?: ("always" | "if_required" | null) | undefined + customer_details?: + | (t_payment_pages_checkout_session_customer_details | null) + | undefined + customer_email?: (string | null) | undefined expires_at: number id: string - invoice?: string | t_invoice | null - invoice_creation?: t_payment_pages_checkout_session_invoice_creation | null - line_items?: { - data: t_item[] - has_more: boolean - object: "list" - url: string - } + invoice?: (string | t_invoice | null) | undefined + invoice_creation?: + | (t_payment_pages_checkout_session_invoice_creation | null) + | undefined + line_items?: + | { + data: t_item[] + has_more: boolean + object: "list" + url: string + } + | undefined livemode: boolean locale?: - | "auto" - | "bg" - | "cs" - | "da" - | "de" - | "el" - | "en" - | "en-GB" - | "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" - | null - metadata?: { - [key: string]: string | undefined - } | null + | ( + | "auto" + | "bg" + | "cs" + | "da" + | "de" + | "el" + | "en" + | "en-GB" + | "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" + | null + ) + | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined mode: "payment" | "setup" | "subscription" object: "checkout.session" - payment_intent?: string | t_payment_intent | null - payment_link?: string | t_payment_link | null - payment_method_collection?: "always" | "if_required" | null - payment_method_configuration_details?: t_payment_method_config_biz_payment_method_configuration_details | null - payment_method_options?: t_checkout_session_payment_method_options | null + payment_intent?: (string | t_payment_intent | null) | undefined + payment_link?: (string | t_payment_link | null) | undefined + payment_method_collection?: ("always" | "if_required" | null) | undefined + payment_method_configuration_details?: + | (t_payment_method_config_biz_payment_method_configuration_details | null) + | undefined + payment_method_options?: + | (t_checkout_session_payment_method_options | null) + | undefined payment_method_types: string[] payment_status: "no_payment_required" | "paid" | "unpaid" - phone_number_collection?: t_payment_pages_checkout_session_phone_number_collection - recovered_from?: string | null - redirect_on_completion?: "always" | "if_required" | "never" - return_url?: string - saved_payment_method_options?: t_payment_pages_checkout_session_saved_payment_method_options | null - setup_intent?: string | t_setup_intent | null - shipping_address_collection?: t_payment_pages_checkout_session_shipping_address_collection | null - shipping_cost?: t_payment_pages_checkout_session_shipping_cost | null - shipping_details?: t_shipping | null + phone_number_collection?: + | t_payment_pages_checkout_session_phone_number_collection + | undefined + recovered_from?: (string | null) | undefined + redirect_on_completion?: ("always" | "if_required" | "never") | undefined + return_url?: string | undefined + saved_payment_method_options?: + | (t_payment_pages_checkout_session_saved_payment_method_options | null) + | undefined + setup_intent?: (string | t_setup_intent | null) | undefined + shipping_address_collection?: + | (t_payment_pages_checkout_session_shipping_address_collection | null) + | undefined + shipping_cost?: + | (t_payment_pages_checkout_session_shipping_cost | null) + | undefined + shipping_details?: (t_shipping | null) | undefined shipping_options: t_payment_pages_checkout_session_shipping_option[] - status?: "complete" | "expired" | "open" | null - submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null - subscription?: string | t_subscription | null - success_url?: string | null - tax_id_collection?: t_payment_pages_checkout_session_tax_id_collection - total_details?: t_payment_pages_checkout_session_total_details | null - ui_mode?: "embedded" | "hosted" | null - url?: string | null + status?: ("complete" | "expired" | "open" | null) | undefined + submit_type?: + | ("auto" | "book" | "donate" | "pay" | "subscribe" | null) + | undefined + subscription?: (string | t_subscription | null) | undefined + success_url?: (string | null) | undefined + tax_id_collection?: + | t_payment_pages_checkout_session_tax_id_collection + | undefined + total_details?: + | (t_payment_pages_checkout_session_total_details | null) + | undefined + ui_mode?: ("embedded" | "hosted" | null) | undefined + url?: (string | null) | undefined } export type t_checkout_acss_debit_mandate_options = { - custom_mandate_url?: string - default_for?: ("invoice" | "subscription")[] - interval_description?: string | null - payment_schedule?: "combined" | "interval" | "sporadic" | null - transaction_type?: "business" | "personal" | null + custom_mandate_url?: string | undefined + default_for?: ("invoice" | "subscription")[] | undefined + interval_description?: (string | null) | undefined + payment_schedule?: ("combined" | "interval" | "sporadic" | null) | undefined + transaction_type?: ("business" | "personal" | null) | undefined } export type t_checkout_acss_debit_payment_method_options = { - currency?: "cad" | "usd" - mandate_options?: t_checkout_acss_debit_mandate_options - setup_future_usage?: "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" + currency?: ("cad" | "usd") | undefined + mandate_options?: t_checkout_acss_debit_mandate_options | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_checkout_affirm_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_afterpay_clearpay_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_alipay_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_amazon_pay_payment_method_options = { - setup_future_usage?: "none" | "off_session" + setup_future_usage?: ("none" | "off_session") | undefined } export type t_checkout_au_becs_debit_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_bacs_debit_payment_method_options = { - mandate_options?: t_checkout_payment_method_options_mandate_options_bacs_debit - setup_future_usage?: "none" | "off_session" | "on_session" + mandate_options?: + | t_checkout_payment_method_options_mandate_options_bacs_debit + | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_checkout_bancontact_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_boleto_payment_method_options = { expires_after_days: number - setup_future_usage?: "none" | "off_session" | "on_session" + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_checkout_card_installments_options = { - enabled?: boolean + enabled?: boolean | undefined } export type t_checkout_card_payment_method_options = { - installments?: t_checkout_card_installments_options - request_extended_authorization?: "if_available" | "never" - request_incremental_authorization?: "if_available" | "never" - request_multicapture?: "if_available" | "never" - request_overcapture?: "if_available" | "never" + installments?: t_checkout_card_installments_options | undefined + request_extended_authorization?: ("if_available" | "never") | undefined + request_incremental_authorization?: ("if_available" | "never") | undefined + request_multicapture?: ("if_available" | "never") | undefined + request_overcapture?: ("if_available" | "never") | undefined request_three_d_secure: "any" | "automatic" | "challenge" - setup_future_usage?: "none" | "off_session" | "on_session" - statement_descriptor_suffix_kana?: string - statement_descriptor_suffix_kanji?: string + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined + statement_descriptor_suffix_kana?: string | undefined + statement_descriptor_suffix_kanji?: string | undefined } export type t_checkout_cashapp_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_customer_balance_bank_transfer_payment_method_options = { - eu_bank_transfer?: t_payment_method_options_customer_balance_eu_bank_account - requested_address_types?: ( - | "aba" - | "iban" - | "sepa" - | "sort_code" - | "spei" - | "swift" - | "zengin" - )[] + eu_bank_transfer?: + | t_payment_method_options_customer_balance_eu_bank_account + | undefined + requested_address_types?: + | ("aba" | "iban" | "sepa" | "sort_code" | "spei" | "swift" | "zengin")[] + | undefined type?: - | "eu_bank_transfer" - | "gb_bank_transfer" - | "jp_bank_transfer" - | "mx_bank_transfer" - | "us_bank_transfer" - | null + | ( + | "eu_bank_transfer" + | "gb_bank_transfer" + | "jp_bank_transfer" + | "mx_bank_transfer" + | "us_bank_transfer" + | null + ) + | undefined } export type t_checkout_customer_balance_payment_method_options = { - bank_transfer?: t_checkout_customer_balance_bank_transfer_payment_method_options - funding_type?: "bank_transfer" | null - setup_future_usage?: "none" + bank_transfer?: + | t_checkout_customer_balance_bank_transfer_payment_method_options + | undefined + funding_type?: ("bank_transfer" | null) | undefined + setup_future_usage?: "none" | undefined } export type t_checkout_eps_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_fpx_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_giropay_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_grab_pay_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_ideal_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_kakao_pay_payment_method_options = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_checkout_klarna_payment_method_options = { - setup_future_usage?: "none" | "off_session" | "on_session" + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_checkout_konbini_payment_method_options = { - expires_after_days?: number | null - setup_future_usage?: "none" + expires_after_days?: (number | null) | undefined + setup_future_usage?: "none" | undefined } export type t_checkout_kr_card_payment_method_options = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_checkout_link_payment_method_options = { - setup_future_usage?: "none" | "off_session" + setup_future_usage?: ("none" | "off_session") | undefined } export type t_checkout_mobilepay_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_multibanco_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_naver_pay_payment_method_options = { - capture_method?: "manual" + capture_method?: "manual" | undefined } export type t_checkout_oxxo_payment_method_options = { expires_after_days: number - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_p24_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_payco_payment_method_options = { - capture_method?: "manual" + capture_method?: "manual" | undefined } export type t_checkout_payment_method_options_mandate_options_bacs_debit = @@ -1422,100 +1527,110 @@ export type t_checkout_payment_method_options_mandate_options_sepa_debit = EmptyObject export type t_checkout_paynow_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_paypal_payment_method_options = { - capture_method?: "manual" - preferred_locale?: string | null - reference?: string | null - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + preferred_locale?: (string | null) | undefined + reference?: (string | null) | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_checkout_pix_payment_method_options = { - expires_after_seconds?: number | null + expires_after_seconds?: (number | null) | undefined } export type t_checkout_revolut_pay_payment_method_options = { - setup_future_usage?: "none" | "off_session" + setup_future_usage?: ("none" | "off_session") | undefined } export type t_checkout_samsung_pay_payment_method_options = { - capture_method?: "manual" + capture_method?: "manual" | undefined } export type t_checkout_sepa_debit_payment_method_options = { - mandate_options?: t_checkout_payment_method_options_mandate_options_sepa_debit - setup_future_usage?: "none" | "off_session" | "on_session" + mandate_options?: + | t_checkout_payment_method_options_mandate_options_sepa_debit + | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_checkout_session_payment_method_options = { - acss_debit?: t_checkout_acss_debit_payment_method_options - affirm?: t_checkout_affirm_payment_method_options - afterpay_clearpay?: t_checkout_afterpay_clearpay_payment_method_options - alipay?: t_checkout_alipay_payment_method_options - amazon_pay?: t_checkout_amazon_pay_payment_method_options - au_becs_debit?: t_checkout_au_becs_debit_payment_method_options - bacs_debit?: t_checkout_bacs_debit_payment_method_options - bancontact?: t_checkout_bancontact_payment_method_options - boleto?: t_checkout_boleto_payment_method_options - card?: t_checkout_card_payment_method_options - cashapp?: t_checkout_cashapp_payment_method_options - customer_balance?: t_checkout_customer_balance_payment_method_options - eps?: t_checkout_eps_payment_method_options - fpx?: t_checkout_fpx_payment_method_options - giropay?: t_checkout_giropay_payment_method_options - grabpay?: t_checkout_grab_pay_payment_method_options - ideal?: t_checkout_ideal_payment_method_options - kakao_pay?: t_checkout_kakao_pay_payment_method_options - klarna?: t_checkout_klarna_payment_method_options - konbini?: t_checkout_konbini_payment_method_options - kr_card?: t_checkout_kr_card_payment_method_options - link?: t_checkout_link_payment_method_options - mobilepay?: t_checkout_mobilepay_payment_method_options - multibanco?: t_checkout_multibanco_payment_method_options - naver_pay?: t_checkout_naver_pay_payment_method_options - oxxo?: t_checkout_oxxo_payment_method_options - p24?: t_checkout_p24_payment_method_options - payco?: t_checkout_payco_payment_method_options - paynow?: t_checkout_paynow_payment_method_options - paypal?: t_checkout_paypal_payment_method_options - pix?: t_checkout_pix_payment_method_options - revolut_pay?: t_checkout_revolut_pay_payment_method_options - samsung_pay?: t_checkout_samsung_pay_payment_method_options - sepa_debit?: t_checkout_sepa_debit_payment_method_options - sofort?: t_checkout_sofort_payment_method_options - swish?: t_checkout_swish_payment_method_options - us_bank_account?: t_checkout_us_bank_account_payment_method_options + acss_debit?: t_checkout_acss_debit_payment_method_options | undefined + affirm?: t_checkout_affirm_payment_method_options | undefined + afterpay_clearpay?: + | t_checkout_afterpay_clearpay_payment_method_options + | undefined + alipay?: t_checkout_alipay_payment_method_options | undefined + amazon_pay?: t_checkout_amazon_pay_payment_method_options | undefined + au_becs_debit?: t_checkout_au_becs_debit_payment_method_options | undefined + bacs_debit?: t_checkout_bacs_debit_payment_method_options | undefined + bancontact?: t_checkout_bancontact_payment_method_options | undefined + boleto?: t_checkout_boleto_payment_method_options | undefined + card?: t_checkout_card_payment_method_options | undefined + cashapp?: t_checkout_cashapp_payment_method_options | undefined + customer_balance?: + | t_checkout_customer_balance_payment_method_options + | undefined + eps?: t_checkout_eps_payment_method_options | undefined + fpx?: t_checkout_fpx_payment_method_options | undefined + giropay?: t_checkout_giropay_payment_method_options | undefined + grabpay?: t_checkout_grab_pay_payment_method_options | undefined + ideal?: t_checkout_ideal_payment_method_options | undefined + kakao_pay?: t_checkout_kakao_pay_payment_method_options | undefined + klarna?: t_checkout_klarna_payment_method_options | undefined + konbini?: t_checkout_konbini_payment_method_options | undefined + kr_card?: t_checkout_kr_card_payment_method_options | undefined + link?: t_checkout_link_payment_method_options | undefined + mobilepay?: t_checkout_mobilepay_payment_method_options | undefined + multibanco?: t_checkout_multibanco_payment_method_options | undefined + naver_pay?: t_checkout_naver_pay_payment_method_options | undefined + oxxo?: t_checkout_oxxo_payment_method_options | undefined + p24?: t_checkout_p24_payment_method_options | undefined + payco?: t_checkout_payco_payment_method_options | undefined + paynow?: t_checkout_paynow_payment_method_options | undefined + paypal?: t_checkout_paypal_payment_method_options | undefined + pix?: t_checkout_pix_payment_method_options | undefined + revolut_pay?: t_checkout_revolut_pay_payment_method_options | undefined + samsung_pay?: t_checkout_samsung_pay_payment_method_options | undefined + sepa_debit?: t_checkout_sepa_debit_payment_method_options | undefined + sofort?: t_checkout_sofort_payment_method_options | undefined + swish?: t_checkout_swish_payment_method_options | undefined + us_bank_account?: + | t_checkout_us_bank_account_payment_method_options + | undefined } export type t_checkout_sofort_payment_method_options = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_checkout_swish_payment_method_options = { - reference?: string | null + reference?: (string | null) | undefined } export type t_checkout_us_bank_account_payment_method_options = { - financial_connections?: t_linked_account_options_us_bank_account - setup_future_usage?: "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" + financial_connections?: t_linked_account_options_us_bank_account | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined + verification_method?: ("automatic" | "instant") | undefined } export type t_climate_order = { amount_fees: number amount_subtotal: number amount_total: number - beneficiary?: t_climate_removals_beneficiary - canceled_at?: number | null - cancellation_reason?: "expired" | "product_unavailable" | "requested" | null - certificate?: string | null - confirmed_at?: number | null + beneficiary?: t_climate_removals_beneficiary | undefined + canceled_at?: (number | null) | undefined + cancellation_reason?: + | ("expired" | "product_unavailable" | "requested" | null) + | undefined + certificate?: (string | null) | undefined + confirmed_at?: (number | null) | undefined created: number currency: string - delayed_at?: number | null - delivered_at?: number | null + delayed_at?: (number | null) | undefined + delivered_at?: (number | null) | undefined delivery_details: t_climate_removals_order_deliveries[] expected_delivery_year: number id: string @@ -1526,7 +1641,7 @@ export type t_climate_order = { metric_tons: string object: "climate.order" product: string | t_climate_product - product_substituted_at?: number | null + product_substituted_at?: (number | null) | undefined status: "awaiting_funds" | "canceled" | "confirmed" | "delivered" | "open" } @@ -1535,7 +1650,7 @@ export type t_climate_product = { current_prices_per_metric_ton: { [key: string]: t_climate_removals_products_price | undefined } - delivery_year?: number | null + delivery_year?: (number | null) | undefined id: string livemode: boolean metric_tons_available: string @@ -1562,18 +1677,18 @@ export type t_climate_removals_beneficiary = { } export type t_climate_removals_location = { - city?: string | null + city?: (string | null) | undefined country: string - latitude?: number | null - longitude?: number | null - region?: string | null + latitude?: (number | null) | undefined + longitude?: (number | null) | undefined + region?: (string | null) | undefined } export type t_climate_removals_order_deliveries = { delivered_at: number - location?: t_climate_removals_location | null + location?: (t_climate_removals_location | null) | undefined metric_tons: string - registry_url?: string | null + registry_url?: (string | null) | undefined supplier: t_climate_supplier } @@ -1585,18 +1700,24 @@ export type t_climate_removals_products_price = { export type t_confirmation_token = { created: number - expires_at?: number | null + expires_at?: (number | null) | undefined id: string livemode: boolean - mandate_data?: t_confirmation_tokens_resource_mandate_data | null + mandate_data?: + | (t_confirmation_tokens_resource_mandate_data | null) + | undefined object: "confirmation_token" - payment_intent?: string | null - payment_method_options?: t_confirmation_tokens_resource_payment_method_options | null - payment_method_preview?: t_confirmation_tokens_resource_payment_method_preview | null - return_url?: string | null - setup_future_usage?: "off_session" | "on_session" | null - setup_intent?: string | null - shipping?: t_confirmation_tokens_resource_shipping | null + payment_intent?: (string | null) | undefined + payment_method_options?: + | (t_confirmation_tokens_resource_payment_method_options | null) + | undefined + payment_method_preview?: + | (t_confirmation_tokens_resource_payment_method_preview | null) + | undefined + return_url?: (string | null) | undefined + setup_future_usage?: ("off_session" | "on_session" | null) | undefined + setup_intent?: (string | null) | undefined + shipping?: (t_confirmation_tokens_resource_shipping | null) | undefined use_stripe_sdk: boolean } @@ -1606,71 +1727,75 @@ export type t_confirmation_tokens_resource_mandate_data = { export type t_confirmation_tokens_resource_mandate_data_resource_customer_acceptance = { - online?: t_confirmation_tokens_resource_mandate_data_resource_customer_acceptance_resource_online | null + online?: + | (t_confirmation_tokens_resource_mandate_data_resource_customer_acceptance_resource_online | null) + | undefined type: string } export type t_confirmation_tokens_resource_mandate_data_resource_customer_acceptance_resource_online = { - ip_address?: string | null - user_agent?: string | null + ip_address?: (string | null) | undefined + user_agent?: (string | null) | undefined } export type t_confirmation_tokens_resource_payment_method_options = { - card?: t_confirmation_tokens_resource_payment_method_options_resource_card | null + card?: + | (t_confirmation_tokens_resource_payment_method_options_resource_card | null) + | undefined } export type t_confirmation_tokens_resource_payment_method_options_resource_card = { - cvc_token?: string | null + cvc_token?: (string | null) | undefined } export type t_confirmation_tokens_resource_payment_method_preview = { - acss_debit?: t_payment_method_acss_debit - affirm?: t_payment_method_affirm - afterpay_clearpay?: t_payment_method_afterpay_clearpay - alipay?: t_payment_flows_private_payment_methods_alipay - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: t_payment_method_alma - amazon_pay?: t_payment_method_amazon_pay - au_becs_debit?: t_payment_method_au_becs_debit - bacs_debit?: t_payment_method_bacs_debit - bancontact?: t_payment_method_bancontact + acss_debit?: t_payment_method_acss_debit | undefined + affirm?: t_payment_method_affirm | undefined + afterpay_clearpay?: t_payment_method_afterpay_clearpay | undefined + alipay?: t_payment_flows_private_payment_methods_alipay | undefined + allow_redisplay?: ("always" | "limited" | "unspecified") | undefined + alma?: t_payment_method_alma | undefined + amazon_pay?: t_payment_method_amazon_pay | undefined + au_becs_debit?: t_payment_method_au_becs_debit | undefined + bacs_debit?: t_payment_method_bacs_debit | undefined + bancontact?: t_payment_method_bancontact | undefined billing_details: t_billing_details - blik?: t_payment_method_blik - boleto?: t_payment_method_boleto - card?: t_payment_method_card - card_present?: t_payment_method_card_present - cashapp?: t_payment_method_cashapp - customer?: string | t_customer | null - customer_balance?: t_payment_method_customer_balance - eps?: t_payment_method_eps - fpx?: t_payment_method_fpx - giropay?: t_payment_method_giropay - grabpay?: t_payment_method_grabpay - ideal?: t_payment_method_ideal - interac_present?: t_payment_method_interac_present - kakao_pay?: t_payment_method_kakao_pay - klarna?: t_payment_method_klarna - konbini?: t_payment_method_konbini - kr_card?: t_payment_method_kr_card - link?: t_payment_method_link - mobilepay?: t_payment_method_mobilepay - multibanco?: t_payment_method_multibanco - naver_pay?: t_payment_method_naver_pay - oxxo?: t_payment_method_oxxo - p24?: t_payment_method_p24 - payco?: t_payment_method_payco - paynow?: t_payment_method_paynow - paypal?: t_payment_method_paypal - pix?: t_payment_method_pix - promptpay?: t_payment_method_promptpay - revolut_pay?: t_payment_method_revolut_pay - samsung_pay?: t_payment_method_samsung_pay - sepa_debit?: t_payment_method_sepa_debit - sofort?: t_payment_method_sofort - swish?: t_payment_method_swish - twint?: t_payment_method_twint + blik?: t_payment_method_blik | undefined + boleto?: t_payment_method_boleto | undefined + card?: t_payment_method_card | undefined + card_present?: t_payment_method_card_present | undefined + cashapp?: t_payment_method_cashapp | undefined + customer?: (string | t_customer | null) | undefined + customer_balance?: t_payment_method_customer_balance | undefined + eps?: t_payment_method_eps | undefined + fpx?: t_payment_method_fpx | undefined + giropay?: t_payment_method_giropay | undefined + grabpay?: t_payment_method_grabpay | undefined + ideal?: t_payment_method_ideal | undefined + interac_present?: t_payment_method_interac_present | undefined + kakao_pay?: t_payment_method_kakao_pay | undefined + klarna?: t_payment_method_klarna | undefined + konbini?: t_payment_method_konbini | undefined + kr_card?: t_payment_method_kr_card | undefined + link?: t_payment_method_link | undefined + mobilepay?: t_payment_method_mobilepay | undefined + multibanco?: t_payment_method_multibanco | undefined + naver_pay?: t_payment_method_naver_pay | undefined + oxxo?: t_payment_method_oxxo | undefined + p24?: t_payment_method_p24 | undefined + payco?: t_payment_method_payco | undefined + paynow?: t_payment_method_paynow | undefined + paypal?: t_payment_method_paypal | undefined + pix?: t_payment_method_pix | undefined + promptpay?: t_payment_method_promptpay | undefined + revolut_pay?: t_payment_method_revolut_pay | undefined + samsung_pay?: t_payment_method_samsung_pay | undefined + sepa_debit?: t_payment_method_sepa_debit | undefined + sofort?: t_payment_method_sofort | undefined + swish?: t_payment_method_swish | undefined + twint?: t_payment_method_twint | undefined type: | "acss_debit" | "affirm" @@ -1717,19 +1842,19 @@ export type t_confirmation_tokens_resource_payment_method_preview = { | "us_bank_account" | "wechat_pay" | "zip" - us_bank_account?: t_payment_method_us_bank_account - wechat_pay?: t_payment_method_wechat_pay - zip?: t_payment_method_zip + us_bank_account?: t_payment_method_us_bank_account | undefined + wechat_pay?: t_payment_method_wechat_pay | undefined + zip?: t_payment_method_zip | undefined } export type t_confirmation_tokens_resource_shipping = { address: t_address name: string - phone?: string | null + phone?: (string | null) | undefined } export type t_connect_account_reference = { - account?: string | t_account + account?: (string | t_account) | undefined type: "account" | "self" } @@ -1822,25 +1947,29 @@ export type t_country_spec_verification_fields = { } export type t_coupon = { - amount_off?: number | null - applies_to?: t_coupon_applies_to + amount_off?: (number | null) | undefined + applies_to?: t_coupon_applies_to | undefined created: number - currency?: string | null - currency_options?: { - [key: string]: t_coupon_currency_option | undefined - } + currency?: (string | null) | undefined + currency_options?: + | { + [key: string]: t_coupon_currency_option | undefined + } + | undefined duration: "forever" | "once" | "repeating" - duration_in_months?: number | null + duration_in_months?: (number | null) | undefined id: string livemode: boolean - max_redemptions?: number | null - metadata?: { - [key: string]: string | undefined - } | null - name?: string | null + max_redemptions?: (number | null) | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + name?: (string | null) | undefined object: "coupon" - percent_off?: number | null - redeem_by?: number | null + percent_off?: (number | null) | undefined + redeem_by?: (number | null) | undefined times_redeemed: number valid: boolean } @@ -1864,10 +1993,12 @@ export type t_credit_note = { created: number currency: string customer: string | t_customer | t_deleted_customer - customer_balance_transaction?: string | t_customer_balance_transaction | null + customer_balance_transaction?: + | (string | t_customer_balance_transaction | null) + | undefined discount_amount: number discount_amounts: t_discounts_resource_discount_amount[] - effective_at?: number | null + effective_at?: (number | null) | undefined id: string invoice: string | t_invoice lines: { @@ -1877,51 +2008,56 @@ export type t_credit_note = { url: string } livemode: boolean - memo?: string | null - metadata?: { - [key: string]: string | undefined - } | null + memo?: (string | null) | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined number: string object: "credit_note" - out_of_band_amount?: number | null + out_of_band_amount?: (number | null) | undefined pdf: string - pretax_credit_amounts?: t_credit_notes_pretax_credit_amount[] + pretax_credit_amounts?: t_credit_notes_pretax_credit_amount[] | undefined reason?: - | "duplicate" - | "fraudulent" - | "order_change" - | "product_unsatisfactory" - | null - refund?: string | t_refund | null - shipping_cost?: t_invoices_resource_shipping_cost | null + | ( + | "duplicate" + | "fraudulent" + | "order_change" + | "product_unsatisfactory" + | null + ) + | undefined + refund?: (string | t_refund | null) | undefined + shipping_cost?: (t_invoices_resource_shipping_cost | null) | undefined status: "issued" | "void" subtotal: number - subtotal_excluding_tax?: number | null + subtotal_excluding_tax?: (number | null) | undefined tax_amounts: t_credit_note_tax_amount[] total: number - total_excluding_tax?: number | null + total_excluding_tax?: (number | null) | undefined type: "post_payment" | "pre_payment" - voided_at?: number | null + voided_at?: (number | null) | undefined } export type t_credit_note_line_item = { amount: number - amount_excluding_tax?: number | null - description?: string | null + amount_excluding_tax?: (number | null) | undefined + description?: (string | null) | undefined discount_amount: number discount_amounts: t_discounts_resource_discount_amount[] id: string - invoice_line_item?: string + invoice_line_item?: string | undefined livemode: boolean object: "credit_note_line_item" - pretax_credit_amounts?: t_credit_notes_pretax_credit_amount[] - quantity?: number | null + pretax_credit_amounts?: t_credit_notes_pretax_credit_amount[] | undefined + quantity?: (number | null) | undefined tax_amounts: t_credit_note_tax_amount[] tax_rates: t_tax_rate[] type: "custom_line_item" | "invoice_line_item" - unit_amount?: number | null - unit_amount_decimal?: string | null - unit_amount_excluding_tax?: string | null + unit_amount?: (number | null) | undefined + unit_amount_decimal?: (string | null) | undefined + unit_amount_excluding_tax?: (string | null) | undefined } export type t_credit_note_tax_amount = { @@ -1929,100 +2065,117 @@ export type t_credit_note_tax_amount = { inclusive: boolean tax_rate: string | t_tax_rate taxability_reason?: - | "customer_exempt" - | "not_collecting" - | "not_subject_to_tax" - | "not_supported" - | "portion_product_exempt" - | "portion_reduced_rated" - | "portion_standard_rated" - | "product_exempt" - | "product_exempt_holiday" - | "proportionally_rated" - | "reduced_rated" - | "reverse_charge" - | "standard_rated" - | "taxable_basis_reduced" - | "zero_rated" - | null - taxable_amount?: number | null + | ( + | "customer_exempt" + | "not_collecting" + | "not_subject_to_tax" + | "not_supported" + | "portion_product_exempt" + | "portion_reduced_rated" + | "portion_standard_rated" + | "product_exempt" + | "product_exempt_holiday" + | "proportionally_rated" + | "reduced_rated" + | "reverse_charge" + | "standard_rated" + | "taxable_basis_reduced" + | "zero_rated" + | null + ) + | undefined + taxable_amount?: (number | null) | undefined } export type t_credit_notes_pretax_credit_amount = { amount: number - credit_balance_transaction?: string | t_billing_credit_balance_transaction - discount?: string | t_discount | t_deleted_discount + credit_balance_transaction?: + | (string | t_billing_credit_balance_transaction) + | undefined + discount?: (string | t_discount | t_deleted_discount) | undefined type: "credit_balance_transaction" | "discount" } export type t_currency_option = { - custom_unit_amount?: t_custom_unit_amount | null - tax_behavior?: "exclusive" | "inclusive" | "unspecified" | null - tiers?: t_price_tier[] - unit_amount?: number | null - unit_amount_decimal?: string | null + custom_unit_amount?: (t_custom_unit_amount | null) | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified" | null) | undefined + tiers?: t_price_tier[] | undefined + unit_amount?: (number | null) | undefined + unit_amount_decimal?: (string | null) | undefined } export type t_custom_unit_amount = { - maximum?: number | null - minimum?: number | null - preset?: number | null + maximum?: (number | null) | undefined + minimum?: (number | null) | undefined + preset?: (number | null) | undefined } export type t_customer = { - address?: t_address | null - balance?: number - cash_balance?: t_cash_balance | null + address?: (t_address | null) | undefined + balance?: number | undefined + cash_balance?: (t_cash_balance | null) | undefined created: number - currency?: string | null - default_source?: string | t_bank_account | t_card | t_source | null - delinquent?: boolean | null - description?: string | null - discount?: t_discount | null - email?: string | null - id: string - invoice_credit_balance?: { - [key: string]: number | undefined - } - invoice_prefix?: string | null - invoice_settings?: t_invoice_setting_customer_setting + currency?: (string | null) | undefined + default_source?: + | (string | t_bank_account | t_card | t_source | null) + | undefined + delinquent?: (boolean | null) | undefined + description?: (string | null) | undefined + discount?: (t_discount | null) | undefined + email?: (string | null) | undefined + id: string + invoice_credit_balance?: + | { + [key: string]: number | undefined + } + | undefined + invoice_prefix?: (string | null) | undefined + invoice_settings?: t_invoice_setting_customer_setting | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } - name?: string | null - next_invoice_sequence?: number + metadata?: + | { + [key: string]: string | undefined + } + | undefined + name?: (string | null) | undefined + next_invoice_sequence?: number | undefined object: "customer" - phone?: string | null - preferred_locales?: string[] | null - shipping?: t_shipping | null - sources?: { - data: (t_bank_account | t_card | t_source)[] - has_more: boolean - object: "list" - url: string - } - subscriptions?: { - data: t_subscription[] - has_more: boolean - object: "list" - url: string - } - tax?: t_customer_tax - tax_exempt?: "exempt" | "none" | "reverse" | null - tax_ids?: { - data: t_tax_id[] - has_more: boolean - object: "list" - url: string - } - test_clock?: string | t_test_helpers_test_clock | null + phone?: (string | null) | undefined + preferred_locales?: (string[] | null) | undefined + shipping?: (t_shipping | null) | undefined + sources?: + | { + data: (t_bank_account | t_card | t_source)[] + has_more: boolean + object: "list" + url: string + } + | undefined + subscriptions?: + | { + data: t_subscription[] + has_more: boolean + object: "list" + url: string + } + | undefined + tax?: t_customer_tax | undefined + tax_exempt?: ("exempt" | "none" | "reverse" | null) | undefined + tax_ids?: + | { + data: t_tax_id[] + has_more: boolean + object: "list" + url: string + } + | undefined + test_clock?: (string | t_test_helpers_test_clock | null) | undefined } export type t_customer_acceptance = { - accepted_at?: number | null - offline?: t_offline_acceptance - online?: t_online_acceptance + accepted_at?: (number | null) | undefined + offline?: t_offline_acceptance | undefined + online?: t_online_acceptance | undefined type: "offline" | "online" } @@ -2049,44 +2202,52 @@ export type t_customer_balance_resource_cash_balance_transaction_resource_funded export type t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer = { - eu_bank_transfer?: t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer - gb_bank_transfer?: t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer - jp_bank_transfer?: t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer - reference?: string | null + eu_bank_transfer?: + | t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer + | undefined + gb_bank_transfer?: + | t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer + | undefined + jp_bank_transfer?: + | t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer + | undefined + reference?: (string | null) | undefined type: | "eu_bank_transfer" | "gb_bank_transfer" | "jp_bank_transfer" | "mx_bank_transfer" | "us_bank_transfer" - us_bank_transfer?: t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer + us_bank_transfer?: + | t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer + | undefined } export type t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_eu_bank_transfer = { - bic?: string | null - iban_last4?: string | null - sender_name?: string | null + bic?: (string | null) | undefined + iban_last4?: (string | null) | undefined + sender_name?: (string | null) | undefined } export type t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_gb_bank_transfer = { - account_number_last4?: string | null - sender_name?: string | null - sort_code?: string | null + account_number_last4?: (string | null) | undefined + sender_name?: (string | null) | undefined + sort_code?: (string | null) | undefined } export type t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_jp_bank_transfer = { - sender_bank?: string | null - sender_branch?: string | null - sender_name?: string | null + sender_bank?: (string | null) | undefined + sender_branch?: (string | null) | undefined + sender_name?: (string | null) | undefined } export type t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction_resource_bank_transfer_resource_us_bank_transfer = { - network?: "ach" | "domestic_wire_us" | "swift" - sender_name?: string | null + network?: ("ach" | "domestic_wire_us" | "swift") | undefined + sender_name?: (string | null) | undefined } export type t_customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction = @@ -2107,17 +2268,19 @@ export type t_customer_balance_resource_cash_balance_transaction_resource_unappl export type t_customer_balance_transaction = { amount: number created: number - credit_note?: string | t_credit_note | null + credit_note?: (string | t_credit_note | null) | undefined currency: string customer: string | t_customer - description?: string | null + description?: (string | null) | undefined ending_balance: number id: string - invoice?: string | t_invoice | null + invoice?: (string | t_invoice | null) | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "customer_balance_transaction" type: | "adjustment" @@ -2133,19 +2296,29 @@ export type t_customer_balance_transaction = { } export type t_customer_cash_balance_transaction = { - adjusted_for_overdraft?: t_customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft - applied_to_payment?: t_customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction + adjusted_for_overdraft?: + | t_customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft + | undefined + applied_to_payment?: + | t_customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction + | undefined created: number currency: string customer: string | t_customer ending_balance: number - funded?: t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction + funded?: + | t_customer_balance_resource_cash_balance_transaction_resource_funded_transaction + | undefined id: string livemode: boolean net_amount: number object: "customer_cash_balance_transaction" - refunded_from_payment?: t_customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction - transferred_to_balance?: t_customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance + refunded_from_payment?: + | t_customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction + | undefined + transferred_to_balance?: + | t_customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance + | undefined type: | "adjusted_for_overdraft" | "applied_to_payment" @@ -2156,12 +2329,14 @@ export type t_customer_cash_balance_transaction = { | "return_initiated" | "transferred_to_balance" | "unapplied_from_payment" - unapplied_from_payment?: t_customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction + unapplied_from_payment?: + | t_customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction + | undefined } export type t_customer_session = { client_secret: string - components?: t_customer_session_resource_components + components?: t_customer_session_resource_components | undefined created: number customer: string | t_customer expires_at: number @@ -2181,7 +2356,9 @@ export type t_customer_session_resource_components_resource_buy_button = { export type t_customer_session_resource_components_resource_payment_element = { enabled: boolean - features?: t_customer_session_resource_components_resource_payment_element_resource_features | null + features?: + | (t_customer_session_resource_components_resource_payment_element_resource_features | null) + | undefined } export type t_customer_session_resource_components_resource_payment_element_resource_features = @@ -2192,10 +2369,12 @@ export type t_customer_session_resource_components_resource_payment_element_reso | "unspecified" )[] payment_method_redisplay: "disabled" | "enabled" - payment_method_redisplay_limit?: number | null + payment_method_redisplay_limit?: (number | null) | undefined payment_method_remove: "disabled" | "enabled" payment_method_save: "disabled" | "enabled" - payment_method_save_usage?: "off_session" | "on_session" | null + payment_method_save_usage?: + | ("off_session" | "on_session" | null) + | undefined } export type t_customer_session_resource_components_resource_pricing_table = { @@ -2208,8 +2387,8 @@ export type t_customer_tax = { | "not_collecting" | "supported" | "unrecognized_location" - ip_address?: string | null - location?: t_customer_tax_location | null + ip_address?: (string | null) | undefined + location?: (t_customer_tax_location | null) | undefined } export type t_customer_tax_location = { @@ -2219,7 +2398,7 @@ export type t_customer_tax_location = { | "ip_address" | "payment_method" | "shipping_destination" - state?: string | null + state?: (string | null) | undefined } export type t_deleted_account = { @@ -2237,19 +2416,19 @@ export type t_deleted_apple_pay_domain = { export type t_deleted_application = { deleted: boolean id: string - name?: string | null + name?: (string | null) | undefined object: "application" } export type t_deleted_bank_account = { - currency?: string | null + currency?: (string | null) | undefined deleted: boolean id: string object: "bank_account" } export type t_deleted_card = { - currency?: string | null + currency?: (string | null) | undefined deleted: boolean id: string object: "card" @@ -2268,18 +2447,18 @@ export type t_deleted_customer = { } export type t_deleted_discount = { - checkout_session?: string | null + checkout_session?: (string | null) | undefined coupon: t_coupon - customer?: string | t_customer | t_deleted_customer | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined deleted: boolean id: string - invoice?: string | null - invoice_item?: string | null + invoice?: (string | null) | undefined + invoice_item?: (string | null) | undefined object: "discount" - promotion_code?: string | t_promotion_code | null + promotion_code?: (string | t_promotion_code | null) | undefined start: number - subscription?: string | null - subscription_item?: string | null + subscription?: (string | null) | undefined + subscription_item?: (string | null) | undefined } export type t_deleted_external_account = t_deleted_bank_account | t_deleted_card @@ -2385,18 +2564,18 @@ export type t_deleted_webhook_endpoint = { export type t_destination_details_unimplemented = EmptyObject export type t_discount = { - checkout_session?: string | null + checkout_session?: (string | null) | undefined coupon: t_coupon - customer?: string | t_customer | t_deleted_customer | null - end?: number | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + end?: (number | null) | undefined id: string - invoice?: string | null - invoice_item?: string | null + invoice?: (string | null) | undefined + invoice_item?: (string | null) | undefined object: "discount" - promotion_code?: string | t_promotion_code | null + promotion_code?: (string | t_promotion_code | null) | undefined start: number - subscription?: string | null - subscription_item?: string | null + subscription?: (string | null) | undefined + subscription_item?: (string | null) | undefined } export type t_discounts_resource_discount_amount = { @@ -2405,9 +2584,9 @@ export type t_discounts_resource_discount_amount = { } export type t_discounts_resource_stackable_discount = { - coupon?: string | t_coupon | null - discount?: string | t_discount | null - promotion_code?: string | t_promotion_code | null + coupon?: (string | t_coupon | null) | undefined + discount?: (string | t_discount | null) | undefined + promotion_code?: (string | t_promotion_code | null) | undefined } export type t_dispute = { @@ -2426,8 +2605,8 @@ export type t_dispute = { [key: string]: string | undefined } object: "dispute" - payment_intent?: string | t_payment_intent | null - payment_method_details?: t_dispute_payment_method_details + payment_intent?: (string | t_payment_intent | null) | undefined + payment_method_details?: t_dispute_payment_method_details | undefined reason: string status: | "lost" @@ -2440,7 +2619,9 @@ export type t_dispute = { } export type t_dispute_enhanced_eligibility = { - visa_compelling_evidence_3?: t_dispute_enhanced_eligibility_visa_compelling_evidence3 + visa_compelling_evidence_3?: + | t_dispute_enhanced_eligibility_visa_compelling_evidence3 + | undefined } export type t_dispute_enhanced_eligibility_visa_compelling_evidence3 = { @@ -2455,47 +2636,51 @@ export type t_dispute_enhanced_eligibility_visa_compelling_evidence3 = { } export type t_dispute_enhanced_evidence = { - visa_compelling_evidence_3?: t_dispute_enhanced_evidence_visa_compelling_evidence3 + visa_compelling_evidence_3?: + | t_dispute_enhanced_evidence_visa_compelling_evidence3 + | undefined } export type t_dispute_enhanced_evidence_visa_compelling_evidence3 = { - disputed_transaction?: t_dispute_visa_compelling_evidence3_disputed_transaction | null + disputed_transaction?: + | (t_dispute_visa_compelling_evidence3_disputed_transaction | null) + | undefined prior_undisputed_transactions: t_dispute_visa_compelling_evidence3_prior_undisputed_transaction[] } export type t_dispute_evidence = { - access_activity_log?: string | null - billing_address?: string | null - cancellation_policy?: string | t_file | null - cancellation_policy_disclosure?: string | null - cancellation_rebuttal?: string | null - customer_communication?: string | t_file | null - customer_email_address?: string | null - customer_name?: string | null - customer_purchase_ip?: string | null - customer_signature?: string | t_file | null - duplicate_charge_documentation?: string | t_file | null - duplicate_charge_explanation?: string | null - duplicate_charge_id?: string | null + access_activity_log?: (string | null) | undefined + billing_address?: (string | null) | undefined + cancellation_policy?: (string | t_file | null) | undefined + cancellation_policy_disclosure?: (string | null) | undefined + cancellation_rebuttal?: (string | null) | undefined + customer_communication?: (string | t_file | null) | undefined + customer_email_address?: (string | null) | undefined + customer_name?: (string | null) | undefined + customer_purchase_ip?: (string | null) | undefined + customer_signature?: (string | t_file | null) | undefined + duplicate_charge_documentation?: (string | t_file | null) | undefined + duplicate_charge_explanation?: (string | null) | undefined + duplicate_charge_id?: (string | null) | undefined enhanced_evidence: t_dispute_enhanced_evidence - product_description?: string | null - receipt?: string | t_file | null - refund_policy?: string | t_file | null - refund_policy_disclosure?: string | null - refund_refusal_explanation?: string | null - service_date?: string | null - service_documentation?: string | t_file | null - shipping_address?: string | null - shipping_carrier?: string | null - shipping_date?: string | null - shipping_documentation?: string | t_file | null - shipping_tracking_number?: string | null - uncategorized_file?: string | t_file | null - uncategorized_text?: string | null + product_description?: (string | null) | undefined + receipt?: (string | t_file | null) | undefined + refund_policy?: (string | t_file | null) | undefined + refund_policy_disclosure?: (string | null) | undefined + refund_refusal_explanation?: (string | null) | undefined + service_date?: (string | null) | undefined + service_documentation?: (string | t_file | null) | undefined + shipping_address?: (string | null) | undefined + shipping_carrier?: (string | null) | undefined + shipping_date?: (string | null) | undefined + shipping_documentation?: (string | t_file | null) | undefined + shipping_tracking_number?: (string | null) | undefined + uncategorized_file?: (string | t_file | null) | undefined + uncategorized_text?: (string | null) | undefined } export type t_dispute_evidence_details = { - due_by?: number | null + due_by?: (number | null) | undefined enhanced_eligibility: t_dispute_enhanced_eligibility has_evidence: boolean past_due: boolean @@ -2503,61 +2688,61 @@ export type t_dispute_evidence_details = { } export type t_dispute_payment_method_details = { - amazon_pay?: t_dispute_payment_method_details_amazon_pay - card?: t_dispute_payment_method_details_card - klarna?: t_dispute_payment_method_details_klarna - paypal?: t_dispute_payment_method_details_paypal + amazon_pay?: t_dispute_payment_method_details_amazon_pay | undefined + card?: t_dispute_payment_method_details_card | undefined + klarna?: t_dispute_payment_method_details_klarna | undefined + paypal?: t_dispute_payment_method_details_paypal | undefined type: "amazon_pay" | "card" | "klarna" | "paypal" } export type t_dispute_payment_method_details_amazon_pay = { - dispute_type?: "chargeback" | "claim" | null + dispute_type?: ("chargeback" | "claim" | null) | undefined } export type t_dispute_payment_method_details_card = { brand: string case_type: "chargeback" | "inquiry" - network_reason_code?: string | null + network_reason_code?: (string | null) | undefined } export type t_dispute_payment_method_details_klarna = { - reason_code?: string | null + reason_code?: (string | null) | undefined } export type t_dispute_payment_method_details_paypal = { - case_id?: string | null - reason_code?: string | null + case_id?: (string | null) | undefined + reason_code?: (string | null) | undefined } export type t_dispute_transaction_shipping_address = { - city?: string | null - country?: string | null - line1?: string | null - line2?: string | null - postal_code?: string | null - state?: string | null + city?: (string | null) | undefined + country?: (string | null) | undefined + line1?: (string | null) | undefined + line2?: (string | null) | undefined + postal_code?: (string | null) | undefined + state?: (string | null) | undefined } export type t_dispute_visa_compelling_evidence3_disputed_transaction = { - customer_account_id?: string | null - customer_device_fingerprint?: string | null - customer_device_id?: string | null - customer_email_address?: string | null - customer_purchase_ip?: string | null - merchandise_or_services?: "merchandise" | "services" | null - product_description?: string | null - shipping_address?: t_dispute_transaction_shipping_address | null + customer_account_id?: (string | null) | undefined + customer_device_fingerprint?: (string | null) | undefined + customer_device_id?: (string | null) | undefined + customer_email_address?: (string | null) | undefined + customer_purchase_ip?: (string | null) | undefined + merchandise_or_services?: ("merchandise" | "services" | null) | undefined + product_description?: (string | null) | undefined + shipping_address?: (t_dispute_transaction_shipping_address | null) | undefined } export type t_dispute_visa_compelling_evidence3_prior_undisputed_transaction = { charge: string - customer_account_id?: string | null - customer_device_fingerprint?: string | null - customer_device_id?: string | null - customer_email_address?: string | null - customer_purchase_ip?: string | null - product_description?: string | null - shipping_address?: t_dispute_transaction_shipping_address | null + customer_account_id?: (string | null) | undefined + customer_device_fingerprint?: (string | null) | undefined + customer_device_id?: (string | null) | undefined + customer_email_address?: (string | null) | undefined + customer_purchase_ip?: (string | null) | undefined + product_description?: (string | null) | undefined + shipping_address?: (t_dispute_transaction_shipping_address | null) | undefined } export type t_email_sent = { @@ -2591,7 +2776,7 @@ export type t_ephemeral_key = { id: string livemode: boolean object: "ephemeral_key" - secret?: string + secret?: string | undefined } export type t_error = { @@ -2599,15 +2784,15 @@ export type t_error = { } export type t_event = { - account?: string - api_version?: string | null + account?: string | undefined + api_version?: (string | null) | undefined created: number data: t_notification_event_data id: string livemode: boolean object: "event" pending_webhooks: number - request?: t_notification_event_request | null + request?: (t_notification_event_request | null) | undefined type: string } @@ -2622,44 +2807,48 @@ export type t_exchange_rate = { export type t_external_account = t_bank_account | t_card export type t_external_account_requirements = { - currently_due?: string[] | null - errors?: t_account_requirements_error[] | null - past_due?: string[] | null - pending_verification?: string[] | null + currently_due?: (string[] | null) | undefined + errors?: (t_account_requirements_error[] | null) | undefined + past_due?: (string[] | null) | undefined + pending_verification?: (string[] | null) | undefined } export type t_fee = { amount: number - application?: string | null + application?: (string | null) | undefined currency: string - description?: string | null + description?: (string | null) | undefined type: string } export type t_fee_refund = { amount: number - balance_transaction?: string | t_balance_transaction | null + balance_transaction?: (string | t_balance_transaction | null) | undefined created: number currency: string fee: string | t_application_fee id: string - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "fee_refund" } export type t_file = { created: number - expires_at?: number | null - filename?: string | null - id: string - links?: { - data: t_file_link[] - has_more: boolean - object: "list" - url: string - } | null + expires_at?: (number | null) | undefined + filename?: (string | null) | undefined + id: string + links?: + | ({ + data: t_file_link[] + has_more: boolean + object: "list" + url: string + } | null) + | undefined object: "file" purpose: | "account_requirement" @@ -2680,15 +2869,15 @@ export type t_file = { | "tax_document_user_upload" | "terminal_reader_splashscreen" size: number - title?: string | null - type?: string | null - url?: string | null + title?: (string | null) | undefined + type?: (string | null) | undefined + url?: (string | null) | undefined } export type t_file_link = { created: number expired: boolean - expires_at?: number | null + expires_at?: (number | null) | undefined file: string | t_file id: string livemode: boolean @@ -2696,26 +2885,34 @@ export type t_file_link = { [key: string]: string | undefined } object: "file_link" - url?: string | null + url?: (string | null) | undefined } export type t_financial_connections_account = { - account_holder?: t_bank_connections_resource_accountholder | null - balance?: t_bank_connections_resource_balance | null - balance_refresh?: t_bank_connections_resource_balance_refresh | null + account_holder?: + | (t_bank_connections_resource_accountholder | null) + | undefined + balance?: (t_bank_connections_resource_balance | null) | undefined + balance_refresh?: + | (t_bank_connections_resource_balance_refresh | null) + | undefined category: "cash" | "credit" | "investment" | "other" created: number - display_name?: string | null + display_name?: (string | null) | undefined id: string institution_name: string - last4?: string | null + last4?: (string | null) | undefined livemode: boolean object: "financial_connections.account" - ownership?: string | t_financial_connections_account_ownership | null - ownership_refresh?: t_bank_connections_resource_ownership_refresh | null + ownership?: + | (string | t_financial_connections_account_ownership | null) + | undefined + ownership_refresh?: + | (t_bank_connections_resource_ownership_refresh | null) + | undefined permissions?: - | ("balances" | "ownership" | "payment_method" | "transactions")[] - | null + | (("balances" | "ownership" | "payment_method" | "transactions")[] | null) + | undefined status: "active" | "disconnected" | "inactive" subcategory: | "checking" @@ -2724,20 +2921,22 @@ export type t_financial_connections_account = { | "mortgage" | "other" | "savings" - subscriptions?: "transactions"[] | null + subscriptions?: ("transactions"[] | null) | undefined supported_payment_method_types: ("link" | "us_bank_account")[] - transaction_refresh?: t_bank_connections_resource_transaction_refresh | null + transaction_refresh?: + | (t_bank_connections_resource_transaction_refresh | null) + | undefined } export type t_financial_connections_account_owner = { - email?: string | null + email?: (string | null) | undefined id: string name: string object: "financial_connections.account_owner" ownership: string - phone?: string | null - raw_address?: string | null - refreshed_at?: number | null + phone?: (string | null) | undefined + raw_address?: (string | null) | undefined + refreshed_at?: (number | null) | undefined } export type t_financial_connections_account_ownership = { @@ -2753,7 +2952,9 @@ export type t_financial_connections_account_ownership = { } export type t_financial_connections_session = { - account_holder?: t_bank_connections_resource_accountholder | null + account_holder?: + | (t_bank_connections_resource_accountholder | null) + | undefined accounts: { data: t_financial_connections_account[] has_more: boolean @@ -2761,13 +2962,13 @@ export type t_financial_connections_session = { url: string } client_secret: string - filters?: t_bank_connections_resource_link_account_session_filters + filters?: t_bank_connections_resource_link_account_session_filters | undefined id: string livemode: boolean object: "financial_connections.session" permissions: ("balances" | "ownership" | "payment_method" | "transactions")[] - prefetch?: ("balances" | "ownership" | "transactions")[] | null - return_url?: string + prefetch?: (("balances" | "ownership" | "transactions")[] | null) | undefined + return_url?: string | undefined } export type t_financial_connections_transaction = { @@ -2786,14 +2987,14 @@ export type t_financial_connections_transaction = { } export type t_financial_reporting_finance_report_run_run_parameters = { - columns?: string[] - connected_account?: string - currency?: string - interval_end?: number - interval_start?: number - payout?: string - reporting_category?: string - timezone?: string + columns?: string[] | undefined + connected_account?: string | undefined + currency?: string | undefined + interval_end?: number | undefined + interval_start?: number | undefined + payout?: string | undefined + reporting_category?: string | undefined + timezone?: string | undefined } export type t_forwarded_request_context = { @@ -2822,9 +3023,11 @@ export type t_forwarding_request = { created: number id: string livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "forwarding.request" payment_method: string replacements: ( @@ -2833,10 +3036,10 @@ export type t_forwarding_request = { | "card_number" | "cardholder_name" )[] - request_context?: t_forwarded_request_context | null - request_details?: t_forwarded_request_details | null - response_details?: t_forwarded_response_details | null - url?: string | null + request_context?: (t_forwarded_request_context | null) | undefined + request_details?: (t_forwarded_request_details | null) | undefined + response_details?: (t_forwarded_response_details | null) | undefined + url?: (string | null) | undefined } export type t_funding_instructions = { @@ -2864,23 +3067,25 @@ export type t_funding_instructions_bank_transfer_aba_record = { } export type t_funding_instructions_bank_transfer_financial_address = { - aba?: t_funding_instructions_bank_transfer_aba_record - iban?: t_funding_instructions_bank_transfer_iban_record - sort_code?: t_funding_instructions_bank_transfer_sort_code_record - spei?: t_funding_instructions_bank_transfer_spei_record - supported_networks?: ( - | "ach" - | "bacs" - | "domestic_wire_us" - | "fps" - | "sepa" - | "spei" - | "swift" - | "zengin" - )[] - swift?: t_funding_instructions_bank_transfer_swift_record + aba?: t_funding_instructions_bank_transfer_aba_record | undefined + iban?: t_funding_instructions_bank_transfer_iban_record | undefined + sort_code?: t_funding_instructions_bank_transfer_sort_code_record | undefined + spei?: t_funding_instructions_bank_transfer_spei_record | undefined + supported_networks?: + | ( + | "ach" + | "bacs" + | "domestic_wire_us" + | "fps" + | "sepa" + | "spei" + | "swift" + | "zengin" + )[] + | undefined + swift?: t_funding_instructions_bank_transfer_swift_record | undefined type: "aba" | "iban" | "sort_code" | "spei" | "swift" | "zengin" - zengin?: t_funding_instructions_bank_transfer_zengin_record + zengin?: t_funding_instructions_bank_transfer_zengin_record | undefined } export type t_funding_instructions_bank_transfer_iban_record = { @@ -2913,327 +3118,358 @@ export type t_funding_instructions_bank_transfer_swift_record = { } export type t_funding_instructions_bank_transfer_zengin_record = { - account_holder_name?: string | null - account_number?: string | null - account_type?: string | null - bank_code?: string | null - bank_name?: string | null - branch_code?: string | null - branch_name?: string | null + account_holder_name?: (string | null) | undefined + account_number?: (string | null) | undefined + account_type?: (string | null) | undefined + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + branch_code?: (string | null) | undefined + branch_name?: (string | null) | undefined } export type t_gelato_data_document_report_date_of_birth = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_gelato_data_document_report_expiration_date = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_gelato_data_document_report_issued_date = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_gelato_data_id_number_report_date = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_gelato_data_verified_outputs_date = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_gelato_document_report = { - address?: t_address | null - dob?: t_gelato_data_document_report_date_of_birth | null - error?: t_gelato_document_report_error | null - expiration_date?: t_gelato_data_document_report_expiration_date | null - files?: string[] | null - first_name?: string | null - issued_date?: t_gelato_data_document_report_issued_date | null - issuing_country?: string | null - last_name?: string | null - number?: string | null + address?: (t_address | null) | undefined + dob?: (t_gelato_data_document_report_date_of_birth | null) | undefined + error?: (t_gelato_document_report_error | null) | undefined + expiration_date?: + | (t_gelato_data_document_report_expiration_date | null) + | undefined + files?: (string[] | null) | undefined + first_name?: (string | null) | undefined + issued_date?: (t_gelato_data_document_report_issued_date | null) | undefined + issuing_country?: (string | null) | undefined + last_name?: (string | null) | undefined + number?: (string | null) | undefined status: "unverified" | "verified" - type?: "driving_license" | "id_card" | "passport" | null + type?: ("driving_license" | "id_card" | "passport" | null) | undefined } export type t_gelato_document_report_error = { code?: - | "document_expired" - | "document_type_not_supported" - | "document_unverified_other" - | null - reason?: string | null + | ( + | "document_expired" + | "document_type_not_supported" + | "document_unverified_other" + | null + ) + | undefined + reason?: (string | null) | undefined } export type t_gelato_email_report = { - email?: string | null - error?: t_gelato_email_report_error | null + email?: (string | null) | undefined + error?: (t_gelato_email_report_error | null) | undefined status: "unverified" | "verified" } export type t_gelato_email_report_error = { - code?: "email_unverified_other" | "email_verification_declined" | null - reason?: string | null + code?: + | ("email_unverified_other" | "email_verification_declined" | null) + | undefined + reason?: (string | null) | undefined } export type t_gelato_id_number_report = { - dob?: t_gelato_data_id_number_report_date | null - error?: t_gelato_id_number_report_error | null - first_name?: string | null - id_number?: string | null - id_number_type?: "br_cpf" | "sg_nric" | "us_ssn" | null - last_name?: string | null + dob?: (t_gelato_data_id_number_report_date | null) | undefined + error?: (t_gelato_id_number_report_error | null) | undefined + first_name?: (string | null) | undefined + id_number?: (string | null) | undefined + id_number_type?: ("br_cpf" | "sg_nric" | "us_ssn" | null) | undefined + last_name?: (string | null) | undefined status: "unverified" | "verified" } export type t_gelato_id_number_report_error = { code?: - | "id_number_insufficient_document_data" - | "id_number_mismatch" - | "id_number_unverified_other" - | null - reason?: string | null + | ( + | "id_number_insufficient_document_data" + | "id_number_mismatch" + | "id_number_unverified_other" + | null + ) + | undefined + reason?: (string | null) | undefined } export type t_gelato_phone_report = { - error?: t_gelato_phone_report_error | null - phone?: string | null + error?: (t_gelato_phone_report_error | null) | undefined + phone?: (string | null) | undefined status: "unverified" | "verified" } export type t_gelato_phone_report_error = { - code?: "phone_unverified_other" | "phone_verification_declined" | null - reason?: string | null + code?: + | ("phone_unverified_other" | "phone_verification_declined" | null) + | undefined + reason?: (string | null) | undefined } export type t_gelato_provided_details = { - email?: string - phone?: string + email?: string | undefined + phone?: string | undefined } export type t_gelato_report_document_options = { - allowed_types?: ("driving_license" | "id_card" | "passport")[] - require_id_number?: boolean - require_live_capture?: boolean - require_matching_selfie?: boolean + allowed_types?: ("driving_license" | "id_card" | "passport")[] | undefined + require_id_number?: boolean | undefined + require_live_capture?: boolean | undefined + require_matching_selfie?: boolean | undefined } export type t_gelato_report_id_number_options = EmptyObject export type t_gelato_selfie_report = { - document?: string | null - error?: t_gelato_selfie_report_error | null - selfie?: string | null + document?: (string | null) | undefined + error?: (t_gelato_selfie_report_error | null) | undefined + selfie?: (string | null) | undefined status: "unverified" | "verified" } export type t_gelato_selfie_report_error = { code?: - | "selfie_document_missing_photo" - | "selfie_face_mismatch" - | "selfie_manipulated" - | "selfie_unverified_other" - | null - reason?: string | null + | ( + | "selfie_document_missing_photo" + | "selfie_face_mismatch" + | "selfie_manipulated" + | "selfie_unverified_other" + | null + ) + | undefined + reason?: (string | null) | undefined } export type t_gelato_session_document_options = { - allowed_types?: ("driving_license" | "id_card" | "passport")[] - require_id_number?: boolean - require_live_capture?: boolean - require_matching_selfie?: boolean + allowed_types?: ("driving_license" | "id_card" | "passport")[] | undefined + require_id_number?: boolean | undefined + require_live_capture?: boolean | undefined + require_matching_selfie?: boolean | undefined } export type t_gelato_session_email_options = { - require_verification?: boolean + require_verification?: boolean | undefined } export type t_gelato_session_id_number_options = EmptyObject export type t_gelato_session_last_error = { code?: - | "abandoned" - | "consent_declined" - | "country_not_supported" - | "device_not_supported" - | "document_expired" - | "document_type_not_supported" - | "document_unverified_other" - | "email_unverified_other" - | "email_verification_declined" - | "id_number_insufficient_document_data" - | "id_number_mismatch" - | "id_number_unverified_other" - | "phone_unverified_other" - | "phone_verification_declined" - | "selfie_document_missing_photo" - | "selfie_face_mismatch" - | "selfie_manipulated" - | "selfie_unverified_other" - | "under_supported_age" - | null - reason?: string | null + | ( + | "abandoned" + | "consent_declined" + | "country_not_supported" + | "device_not_supported" + | "document_expired" + | "document_type_not_supported" + | "document_unverified_other" + | "email_unverified_other" + | "email_verification_declined" + | "id_number_insufficient_document_data" + | "id_number_mismatch" + | "id_number_unverified_other" + | "phone_unverified_other" + | "phone_verification_declined" + | "selfie_document_missing_photo" + | "selfie_face_mismatch" + | "selfie_manipulated" + | "selfie_unverified_other" + | "under_supported_age" + | null + ) + | undefined + reason?: (string | null) | undefined } export type t_gelato_session_phone_options = { - require_verification?: boolean + require_verification?: boolean | undefined } export type t_gelato_verification_report_options = { - document?: t_gelato_report_document_options - id_number?: t_gelato_report_id_number_options + document?: t_gelato_report_document_options | undefined + id_number?: t_gelato_report_id_number_options | undefined } export type t_gelato_verification_session_options = { - document?: t_gelato_session_document_options - email?: t_gelato_session_email_options - id_number?: t_gelato_session_id_number_options - phone?: t_gelato_session_phone_options + document?: t_gelato_session_document_options | undefined + email?: t_gelato_session_email_options | undefined + id_number?: t_gelato_session_id_number_options | undefined + phone?: t_gelato_session_phone_options | undefined } export type t_gelato_verified_outputs = { - address?: t_address | null - dob?: t_gelato_data_verified_outputs_date | null - email?: string | null - first_name?: string | null - id_number?: string | null - id_number_type?: "br_cpf" | "sg_nric" | "us_ssn" | null - last_name?: string | null - phone?: string | null + address?: (t_address | null) | undefined + dob?: (t_gelato_data_verified_outputs_date | null) | undefined + email?: (string | null) | undefined + first_name?: (string | null) | undefined + id_number?: (string | null) | undefined + id_number_type?: ("br_cpf" | "sg_nric" | "us_ssn" | null) | undefined + last_name?: (string | null) | undefined + phone?: (string | null) | undefined } export type t_identity_verification_report = { - client_reference_id?: string | null + client_reference_id?: (string | null) | undefined created: number - document?: t_gelato_document_report - email?: t_gelato_email_report + document?: t_gelato_document_report | undefined + email?: t_gelato_email_report | undefined id: string - id_number?: t_gelato_id_number_report + id_number?: t_gelato_id_number_report | undefined livemode: boolean object: "identity.verification_report" - options?: t_gelato_verification_report_options - phone?: t_gelato_phone_report - selfie?: t_gelato_selfie_report + options?: t_gelato_verification_report_options | undefined + phone?: t_gelato_phone_report | undefined + selfie?: t_gelato_selfie_report | undefined type: "document" | "id_number" | "verification_flow" - verification_flow?: string - verification_session?: string | null + verification_flow?: string | undefined + verification_session?: (string | null) | undefined } export type t_identity_verification_session = { - client_reference_id?: string | null - client_secret?: string | null + client_reference_id?: (string | null) | undefined + client_secret?: (string | null) | undefined created: number id: string - last_error?: t_gelato_session_last_error | null - last_verification_report?: string | t_identity_verification_report | null + last_error?: (t_gelato_session_last_error | null) | undefined + last_verification_report?: + | (string | t_identity_verification_report | null) + | undefined livemode: boolean metadata: { [key: string]: string | undefined } object: "identity.verification_session" - options?: t_gelato_verification_session_options | null - provided_details?: t_gelato_provided_details | null - redaction?: t_verification_session_redaction | null - related_customer?: string | null + options?: (t_gelato_verification_session_options | null) | undefined + provided_details?: (t_gelato_provided_details | null) | undefined + redaction?: (t_verification_session_redaction | null) | undefined + related_customer?: (string | null) | undefined status: "canceled" | "processing" | "requires_input" | "verified" type: "document" | "id_number" | "verification_flow" - url?: string | null - verification_flow?: string - verified_outputs?: t_gelato_verified_outputs | null + url?: (string | null) | undefined + verification_flow?: string | undefined + verified_outputs?: (t_gelato_verified_outputs | null) | undefined } export type t_inbound_transfers = { billing_details: t_treasury_shared_resource_billing_details type: "us_bank_account" - us_bank_account?: t_inbound_transfers_payment_method_details_us_bank_account + us_bank_account?: + | t_inbound_transfers_payment_method_details_us_bank_account + | undefined } export type t_inbound_transfers_payment_method_details_us_bank_account = { - account_holder_type?: "company" | "individual" | null - account_type?: "checking" | "savings" | null - bank_name?: string | null - fingerprint?: string | null - last4?: string | null - mandate?: string | t_mandate + account_holder_type?: ("company" | "individual" | null) | undefined + account_type?: ("checking" | "savings" | null) | undefined + bank_name?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: (string | t_mandate) | undefined network: "ach" - routing_number?: string | null + routing_number?: (string | null) | undefined } export type t_internal_card = { - brand?: string | null - country?: string | null - exp_month?: number | null - exp_year?: number | null - last4?: string | null + brand?: (string | null) | undefined + country?: (string | null) | undefined + exp_month?: (number | null) | undefined + exp_year?: (number | null) | undefined + last4?: (string | null) | undefined } export type t_invoice = { - account_country?: string | null - account_name?: string | null - account_tax_ids?: (string | t_tax_id | t_deleted_tax_id)[] | null + account_country?: (string | null) | undefined + account_name?: (string | null) | undefined + account_tax_ids?: + | ((string | t_tax_id | t_deleted_tax_id)[] | null) + | undefined amount_due: number amount_paid: number amount_remaining: number amount_shipping: number - application?: string | t_application | t_deleted_application | null - application_fee_amount?: number | null + application?: + | (string | t_application | t_deleted_application | null) + | undefined + application_fee_amount?: (number | null) | undefined attempt_count: number attempted: boolean - auto_advance?: boolean + auto_advance?: boolean | undefined automatic_tax: t_automatic_tax - automatically_finalizes_at?: number | null + automatically_finalizes_at?: (number | null) | undefined billing_reason?: - | "automatic_pending_invoice_item_invoice" - | "manual" - | "quote_accept" - | "subscription" - | "subscription_create" - | "subscription_cycle" - | "subscription_threshold" - | "subscription_update" - | "upcoming" - | null - charge?: string | t_charge | null + | ( + | "automatic_pending_invoice_item_invoice" + | "manual" + | "quote_accept" + | "subscription" + | "subscription_create" + | "subscription_cycle" + | "subscription_threshold" + | "subscription_update" + | "upcoming" + | null + ) + | undefined + charge?: (string | t_charge | null) | undefined collection_method: "charge_automatically" | "send_invoice" created: number currency: string - custom_fields?: t_invoice_setting_custom_field[] | null - customer?: string | t_customer | t_deleted_customer | null - customer_address?: t_address | null - customer_email?: string | null - customer_name?: string | null - customer_phone?: string | null - customer_shipping?: t_shipping | null - customer_tax_exempt?: "exempt" | "none" | "reverse" | null - customer_tax_ids?: t_invoices_resource_invoice_tax_id[] | null - default_payment_method?: string | t_payment_method | null - default_source?: string | t_bank_account | t_card | t_source | null + custom_fields?: (t_invoice_setting_custom_field[] | null) | undefined + customer?: (string | t_customer | t_deleted_customer | null) | undefined + customer_address?: (t_address | null) | undefined + customer_email?: (string | null) | undefined + customer_name?: (string | null) | undefined + customer_phone?: (string | null) | undefined + customer_shipping?: (t_shipping | null) | undefined + customer_tax_exempt?: ("exempt" | "none" | "reverse" | null) | undefined + customer_tax_ids?: (t_invoices_resource_invoice_tax_id[] | null) | undefined + default_payment_method?: (string | t_payment_method | null) | undefined + default_source?: + | (string | t_bank_account | t_card | t_source | null) + | undefined default_tax_rates: t_tax_rate[] - description?: string | null - discount?: t_discount | null + description?: (string | null) | undefined + discount?: (t_discount | null) | undefined discounts: (string | t_discount | t_deleted_discount)[] - due_date?: number | null - effective_at?: number | null - ending_balance?: number | null - footer?: string | null - from_invoice?: t_invoices_resource_from_invoice | null - hosted_invoice_url?: string | null - id?: string - invoice_pdf?: string | null + due_date?: (number | null) | undefined + effective_at?: (number | null) | undefined + ending_balance?: (number | null) | undefined + footer?: (string | null) | undefined + from_invoice?: (t_invoices_resource_from_invoice | null) | undefined + hosted_invoice_url?: (string | null) | undefined + id?: string | undefined + invoice_pdf?: (string | null) | undefined issuer: t_connect_account_reference - last_finalization_error?: t_api_errors | null - latest_revision?: string | t_invoice | null + last_finalization_error?: (t_api_errors | null) | undefined + latest_revision?: (string | t_invoice | null) | undefined lines: { data: t_line_item[] has_more: boolean @@ -3241,51 +3477,57 @@ export type t_invoice = { url: string } livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null - next_payment_attempt?: number | null - number?: string | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + next_payment_attempt?: (number | null) | undefined + number?: (string | null) | undefined object: "invoice" - on_behalf_of?: string | t_account | null + on_behalf_of?: (string | t_account | null) | undefined paid: boolean paid_out_of_band: boolean - payment_intent?: string | t_payment_intent | null + payment_intent?: (string | t_payment_intent | null) | undefined payment_settings: t_invoices_payment_settings period_end: number period_start: number post_payment_credit_notes_amount: number pre_payment_credit_notes_amount: number - quote?: string | t_quote | null - receipt_number?: string | null - rendering?: t_invoices_resource_invoice_rendering | null - shipping_cost?: t_invoices_resource_shipping_cost | null - shipping_details?: t_shipping | null + quote?: (string | t_quote | null) | undefined + receipt_number?: (string | null) | undefined + rendering?: (t_invoices_resource_invoice_rendering | null) | undefined + shipping_cost?: (t_invoices_resource_shipping_cost | null) | undefined + shipping_details?: (t_shipping | null) | undefined starting_balance: number - statement_descriptor?: string | null - status?: "draft" | "open" | "paid" | "uncollectible" | "void" | null + statement_descriptor?: (string | null) | undefined + status?: + | ("draft" | "open" | "paid" | "uncollectible" | "void" | null) + | undefined status_transitions: t_invoices_resource_status_transitions - subscription?: string | t_subscription | null - subscription_details?: t_subscription_details_data | null - subscription_proration_date?: number + subscription?: (string | t_subscription | null) | undefined + subscription_details?: (t_subscription_details_data | null) | undefined + subscription_proration_date?: number | undefined subtotal: number - subtotal_excluding_tax?: number | null - tax?: number | null - test_clock?: string | t_test_helpers_test_clock | null - threshold_reason?: t_invoice_threshold_reason + subtotal_excluding_tax?: (number | null) | undefined + tax?: (number | null) | undefined + test_clock?: (string | t_test_helpers_test_clock | null) | undefined + threshold_reason?: t_invoice_threshold_reason | undefined total: number - total_discount_amounts?: t_discounts_resource_discount_amount[] | null - total_excluding_tax?: number | null + total_discount_amounts?: + | (t_discounts_resource_discount_amount[] | null) + | undefined + total_excluding_tax?: (number | null) | undefined total_pretax_credit_amounts?: - | t_invoices_resource_pretax_credit_amount[] - | null + | (t_invoices_resource_pretax_credit_amount[] | null) + | undefined total_tax_amounts: t_invoice_tax_amount[] - transfer_data?: t_invoice_transfer_data | null - webhooks_delivered_at?: number | null + transfer_data?: (t_invoice_transfer_data | null) | undefined + webhooks_delivered_at?: (number | null) | undefined } export type t_invoice_installments_card = { - enabled?: boolean | null + enabled?: (boolean | null) | undefined } export type t_invoice_item_threshold_reason = { @@ -3299,18 +3541,20 @@ export type t_invoice_line_item_period = { } export type t_invoice_mandate_options_card = { - amount?: number | null - amount_type?: "fixed" | "maximum" | null - description?: string | null + amount?: (number | null) | undefined + amount_type?: ("fixed" | "maximum" | null) | undefined + description?: (string | null) | undefined } export type t_invoice_payment_method_options_acss_debit = { - mandate_options?: t_invoice_payment_method_options_acss_debit_mandate_options - verification_method?: "automatic" | "instant" | "microdeposits" + mandate_options?: + | t_invoice_payment_method_options_acss_debit_mandate_options + | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_invoice_payment_method_options_acss_debit_mandate_options = { - transaction_type?: "business" | "personal" | null + transaction_type?: ("business" | "personal" | null) | undefined } export type t_invoice_payment_method_options_bancontact = { @@ -3318,18 +3562,24 @@ export type t_invoice_payment_method_options_bancontact = { } export type t_invoice_payment_method_options_card = { - installments?: t_invoice_installments_card - request_three_d_secure?: "any" | "automatic" | "challenge" | null + installments?: t_invoice_installments_card | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge" | null) + | undefined } export type t_invoice_payment_method_options_customer_balance = { - bank_transfer?: t_invoice_payment_method_options_customer_balance_bank_transfer - funding_type?: "bank_transfer" | null + bank_transfer?: + | t_invoice_payment_method_options_customer_balance_bank_transfer + | undefined + funding_type?: ("bank_transfer" | null) | undefined } export type t_invoice_payment_method_options_customer_balance_bank_transfer = { - eu_bank_transfer?: t_invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer - type?: string | null + eu_bank_transfer?: + | t_invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer + | undefined + type?: (string | null) | undefined } export type t_invoice_payment_method_options_customer_balance_bank_transfer_eu_bank_transfer = @@ -3342,39 +3592,44 @@ export type t_invoice_payment_method_options_konbini = EmptyObject export type t_invoice_payment_method_options_sepa_debit = EmptyObject export type t_invoice_payment_method_options_us_bank_account = { - financial_connections?: t_invoice_payment_method_options_us_bank_account_linked_account_options - verification_method?: "automatic" | "instant" | "microdeposits" + financial_connections?: + | t_invoice_payment_method_options_us_bank_account_linked_account_options + | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_invoice_payment_method_options_us_bank_account_linked_account_options = { - filters?: t_invoice_payment_method_options_us_bank_account_linked_account_options_filters - permissions?: ( - | "balances" - | "ownership" - | "payment_method" - | "transactions" - )[] - prefetch?: ("balances" | "ownership" | "transactions")[] | null + filters?: + | t_invoice_payment_method_options_us_bank_account_linked_account_options_filters + | undefined + permissions?: + | ("balances" | "ownership" | "payment_method" | "transactions")[] + | undefined + prefetch?: + | (("balances" | "ownership" | "transactions")[] | null) + | undefined } export type t_invoice_payment_method_options_us_bank_account_linked_account_options_filters = { - account_subcategories?: ("checking" | "savings")[] + account_subcategories?: ("checking" | "savings")[] | undefined } export type t_invoice_rendering_pdf = { - page_size?: "a4" | "auto" | "letter" | null + page_size?: ("a4" | "auto" | "letter" | null) | undefined } export type t_invoice_rendering_template = { created: number id: string livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null - nickname?: string | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + nickname?: (string | null) | undefined object: "invoice_rendering_template" status: "active" | "archived" version: number @@ -3386,35 +3641,41 @@ export type t_invoice_setting_custom_field = { } export type t_invoice_setting_customer_rendering_options = { - amount_tax_display?: string | null - template?: string | null + amount_tax_display?: (string | null) | undefined + template?: (string | null) | undefined } export type t_invoice_setting_customer_setting = { - custom_fields?: t_invoice_setting_custom_field[] | null - default_payment_method?: string | t_payment_method | null - footer?: string | null - rendering_options?: t_invoice_setting_customer_rendering_options | null + custom_fields?: (t_invoice_setting_custom_field[] | null) | undefined + default_payment_method?: (string | t_payment_method | null) | undefined + footer?: (string | null) | undefined + rendering_options?: + | (t_invoice_setting_customer_rendering_options | null) + | undefined } export type t_invoice_setting_quote_setting = { - days_until_due?: number | null + days_until_due?: (number | null) | undefined issuer: t_connect_account_reference } export type t_invoice_setting_rendering_options = { - amount_tax_display?: string | null + amount_tax_display?: (string | null) | undefined } export type t_invoice_setting_subscription_schedule_phase_setting = { - account_tax_ids?: (string | t_tax_id | t_deleted_tax_id)[] | null - days_until_due?: number | null - issuer?: t_connect_account_reference | null + account_tax_ids?: + | ((string | t_tax_id | t_deleted_tax_id)[] | null) + | undefined + days_until_due?: (number | null) | undefined + issuer?: (t_connect_account_reference | null) | undefined } export type t_invoice_setting_subscription_schedule_setting = { - account_tax_ids?: (string | t_tax_id | t_deleted_tax_id)[] | null - days_until_due?: number | null + account_tax_ids?: + | ((string | t_tax_id | t_deleted_tax_id)[] | null) + | undefined + days_until_due?: (number | null) | undefined issuer: t_connect_account_reference } @@ -3423,32 +3684,35 @@ export type t_invoice_tax_amount = { inclusive: boolean tax_rate: string | t_tax_rate taxability_reason?: - | "customer_exempt" - | "not_collecting" - | "not_subject_to_tax" - | "not_supported" - | "portion_product_exempt" - | "portion_reduced_rated" - | "portion_standard_rated" - | "product_exempt" - | "product_exempt_holiday" - | "proportionally_rated" - | "reduced_rated" - | "reverse_charge" - | "standard_rated" - | "taxable_basis_reduced" - | "zero_rated" - | null - taxable_amount?: number | null + | ( + | "customer_exempt" + | "not_collecting" + | "not_subject_to_tax" + | "not_supported" + | "portion_product_exempt" + | "portion_reduced_rated" + | "portion_standard_rated" + | "product_exempt" + | "product_exempt_holiday" + | "proportionally_rated" + | "reduced_rated" + | "reverse_charge" + | "standard_rated" + | "taxable_basis_reduced" + | "zero_rated" + | null + ) + | undefined + taxable_amount?: (number | null) | undefined } export type t_invoice_threshold_reason = { - amount_gte?: number | null + amount_gte?: (number | null) | undefined item_reasons: t_invoice_item_threshold_reason[] } export type t_invoice_transfer_data = { - amount?: number | null + amount?: (number | null) | undefined destination: string | t_account } @@ -3457,80 +3721,91 @@ export type t_invoiceitem = { currency: string customer: string | t_customer | t_deleted_customer date: number - description?: string | null + description?: (string | null) | undefined discountable: boolean - discounts?: (string | t_discount)[] | null + discounts?: ((string | t_discount)[] | null) | undefined id: string - invoice?: string | t_invoice | null + invoice?: (string | t_invoice | null) | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "invoiceitem" period: t_invoice_line_item_period - price?: t_price | null + price?: (t_price | null) | undefined proration: boolean quantity: number - subscription?: string | t_subscription | null - subscription_item?: string - tax_rates?: t_tax_rate[] | null - test_clock?: string | t_test_helpers_test_clock | null - unit_amount?: number | null - unit_amount_decimal?: string | null + subscription?: (string | t_subscription | null) | undefined + subscription_item?: string | undefined + tax_rates?: (t_tax_rate[] | null) | undefined + test_clock?: (string | t_test_helpers_test_clock | null) | undefined + unit_amount?: (number | null) | undefined + unit_amount_decimal?: (string | null) | undefined } export type t_invoices_payment_method_options = { - acss_debit?: t_invoice_payment_method_options_acss_debit | null - bancontact?: t_invoice_payment_method_options_bancontact | null - card?: t_invoice_payment_method_options_card | null - customer_balance?: t_invoice_payment_method_options_customer_balance | null - konbini?: t_invoice_payment_method_options_konbini | null - sepa_debit?: t_invoice_payment_method_options_sepa_debit | null - us_bank_account?: t_invoice_payment_method_options_us_bank_account | null + acss_debit?: (t_invoice_payment_method_options_acss_debit | null) | undefined + bancontact?: (t_invoice_payment_method_options_bancontact | null) | undefined + card?: (t_invoice_payment_method_options_card | null) | undefined + customer_balance?: + | (t_invoice_payment_method_options_customer_balance | null) + | undefined + konbini?: (t_invoice_payment_method_options_konbini | null) | undefined + sepa_debit?: (t_invoice_payment_method_options_sepa_debit | null) | undefined + us_bank_account?: + | (t_invoice_payment_method_options_us_bank_account | null) + | undefined } export type t_invoices_payment_settings = { - default_mandate?: string | null - payment_method_options?: t_invoices_payment_method_options | null + default_mandate?: (string | null) | undefined + payment_method_options?: + | (t_invoices_payment_method_options | null) + | undefined payment_method_types?: | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | null + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | null + ) + | undefined } export type t_invoices_resource_from_invoice = { @@ -3539,10 +3814,10 @@ export type t_invoices_resource_from_invoice = { } export type t_invoices_resource_invoice_rendering = { - amount_tax_display?: string | null - pdf?: t_invoice_rendering_pdf | null - template?: string | null - template_version?: number | null + amount_tax_display?: (string | null) | undefined + pdf?: (t_invoice_rendering_pdf | null) | undefined + template?: (string | null) | undefined + template_version?: (number | null) | undefined } export type t_invoices_resource_invoice_tax_id = { @@ -3629,7 +3904,7 @@ export type t_invoices_resource_invoice_tax_id = { | "ve_rif" | "vn_tin" | "za_vat" - value?: string | null + value?: (string | null) | undefined } export type t_invoices_resource_line_items_credited_items = { @@ -3638,16 +3913,17 @@ export type t_invoices_resource_line_items_credited_items = { } export type t_invoices_resource_line_items_proration_details = { - credited_items?: t_invoices_resource_line_items_credited_items | null + credited_items?: + | (t_invoices_resource_line_items_credited_items | null) + | undefined } export type t_invoices_resource_pretax_credit_amount = { amount: number credit_balance_transaction?: - | string - | t_billing_credit_balance_transaction - | null - discount?: string | t_discount | t_deleted_discount + | (string | t_billing_credit_balance_transaction | null) + | undefined + discount?: (string | t_discount | t_deleted_discount) | undefined type: "credit_balance_transaction" | "discount" } @@ -3655,30 +3931,32 @@ export type t_invoices_resource_shipping_cost = { amount_subtotal: number amount_tax: number amount_total: number - shipping_rate?: string | t_shipping_rate | null - taxes?: t_line_items_tax_amount[] + shipping_rate?: (string | t_shipping_rate | null) | undefined + taxes?: t_line_items_tax_amount[] | undefined } export type t_invoices_resource_status_transitions = { - finalized_at?: number | null - marked_uncollectible_at?: number | null - paid_at?: number | null - voided_at?: number | null + finalized_at?: (number | null) | undefined + marked_uncollectible_at?: (number | null) | undefined + paid_at?: (number | null) | undefined + voided_at?: (number | null) | undefined } export type t_issuing_authorization = { amount: number - amount_details?: t_issuing_authorization_amount_details | null + amount_details?: (t_issuing_authorization_amount_details | null) | undefined approved: boolean authorization_method: "chip" | "contactless" | "keyed_in" | "online" | "swipe" balance_transactions: t_balance_transaction[] card: t_issuing_card - cardholder?: string | t_issuing_cardholder | null + cardholder?: (string | t_issuing_cardholder | null) | undefined created: number currency: string - fleet?: t_issuing_authorization_fleet_data | null - fraud_challenges?: t_issuing_authorization_fraud_challenge[] | null - fuel?: t_issuing_authorization_fuel_data | null + fleet?: (t_issuing_authorization_fleet_data | null) | undefined + fraud_challenges?: + | (t_issuing_authorization_fraud_challenge[] | null) + | undefined + fuel?: (t_issuing_authorization_fuel_data | null) | undefined id: string livemode: boolean merchant_amount: number @@ -3687,118 +3965,131 @@ export type t_issuing_authorization = { metadata: { [key: string]: string | undefined } - network_data?: t_issuing_authorization_network_data | null + network_data?: (t_issuing_authorization_network_data | null) | undefined object: "issuing.authorization" - pending_request?: t_issuing_authorization_pending_request | null + pending_request?: (t_issuing_authorization_pending_request | null) | undefined request_history: t_issuing_authorization_request[] status: "closed" | "pending" | "reversed" - token?: string | t_issuing_token | null + token?: (string | t_issuing_token | null) | undefined transactions: t_issuing_transaction[] - treasury?: t_issuing_authorization_treasury | null + treasury?: (t_issuing_authorization_treasury | null) | undefined verification_data: t_issuing_authorization_verification_data - verified_by_fraud_challenge?: boolean | null - wallet?: string | null + verified_by_fraud_challenge?: (boolean | null) | undefined + wallet?: (string | null) | undefined } export type t_issuing_card = { brand: string - cancellation_reason?: "design_rejected" | "lost" | "stolen" | null + cancellation_reason?: + | ("design_rejected" | "lost" | "stolen" | null) + | undefined cardholder: t_issuing_cardholder created: number currency: string - cvc?: string + cvc?: string | undefined exp_month: number exp_year: number - financial_account?: string | null + financial_account?: (string | null) | undefined id: string last4: string livemode: boolean metadata: { [key: string]: string | undefined } - number?: string + number?: string | undefined object: "issuing.card" - personalization_design?: string | t_issuing_personalization_design | null - replaced_by?: string | t_issuing_card | null - replacement_for?: string | t_issuing_card | null - replacement_reason?: "damaged" | "expired" | "lost" | "stolen" | null - shipping?: t_issuing_card_shipping | null + personalization_design?: + | (string | t_issuing_personalization_design | null) + | undefined + replaced_by?: (string | t_issuing_card | null) | undefined + replacement_for?: (string | t_issuing_card | null) | undefined + replacement_reason?: + | ("damaged" | "expired" | "lost" | "stolen" | null) + | undefined + shipping?: (t_issuing_card_shipping | null) | undefined spending_controls: t_issuing_card_authorization_controls status: "active" | "canceled" | "inactive" type: "physical" | "virtual" - wallets?: t_issuing_card_wallets | null + wallets?: (t_issuing_card_wallets | null) | undefined } export type t_issuing_cardholder = { billing: t_issuing_cardholder_address - company?: t_issuing_cardholder_company | null + company?: (t_issuing_cardholder_company | null) | undefined created: number - email?: string | null + email?: (string | null) | undefined id: string - individual?: t_issuing_cardholder_individual | null + individual?: (t_issuing_cardholder_individual | null) | undefined livemode: boolean metadata: { [key: string]: string | undefined } name: string object: "issuing.cardholder" - phone_number?: string | null - preferred_locales?: ("de" | "en" | "es" | "fr" | "it")[] | null + phone_number?: (string | null) | undefined + preferred_locales?: (("de" | "en" | "es" | "fr" | "it")[] | null) | undefined requirements: t_issuing_cardholder_requirements - spending_controls?: t_issuing_cardholder_authorization_controls | null + spending_controls?: + | (t_issuing_cardholder_authorization_controls | null) + | undefined status: "active" | "blocked" | "inactive" type: "company" | "individual" } export type t_issuing_dispute = { amount: number - balance_transactions?: t_balance_transaction[] | null + balance_transactions?: (t_balance_transaction[] | null) | undefined created: number currency: string evidence: t_issuing_dispute_evidence id: string livemode: boolean loss_reason?: - | "cardholder_authentication_issuer_liability" - | "eci5_token_transaction_with_tavv" - | "excess_disputes_in_timeframe" - | "has_not_met_the_minimum_dispute_amount_requirements" - | "invalid_duplicate_dispute" - | "invalid_incorrect_amount_dispute" - | "invalid_no_authorization" - | "invalid_use_of_disputes" - | "merchandise_delivered_or_shipped" - | "merchandise_or_service_as_described" - | "not_cancelled" - | "other" - | "refund_issued" - | "submitted_beyond_allowable_time_limit" - | "transaction_3ds_required" - | "transaction_approved_after_prior_fraud_dispute" - | "transaction_authorized" - | "transaction_electronically_read" - | "transaction_qualifies_for_visa_easy_payment_service" - | "transaction_unattended" + | ( + | "cardholder_authentication_issuer_liability" + | "eci5_token_transaction_with_tavv" + | "excess_disputes_in_timeframe" + | "has_not_met_the_minimum_dispute_amount_requirements" + | "invalid_duplicate_dispute" + | "invalid_incorrect_amount_dispute" + | "invalid_no_authorization" + | "invalid_use_of_disputes" + | "merchandise_delivered_or_shipped" + | "merchandise_or_service_as_described" + | "not_cancelled" + | "other" + | "refund_issued" + | "submitted_beyond_allowable_time_limit" + | "transaction_3ds_required" + | "transaction_approved_after_prior_fraud_dispute" + | "transaction_authorized" + | "transaction_electronically_read" + | "transaction_qualifies_for_visa_easy_payment_service" + | "transaction_unattended" + ) + | undefined metadata: { [key: string]: string | undefined } object: "issuing.dispute" status: "expired" | "lost" | "submitted" | "unsubmitted" | "won" transaction: string | t_issuing_transaction - treasury?: t_issuing_dispute_treasury | null + treasury?: (t_issuing_dispute_treasury | null) | undefined } export type t_issuing_personalization_design = { - card_logo?: string | t_file | null - carrier_text?: t_issuing_personalization_design_carrier_text | null + card_logo?: (string | t_file | null) | undefined + carrier_text?: + | (t_issuing_personalization_design_carrier_text | null) + | undefined created: number id: string livemode: boolean - lookup_key?: string | null + lookup_key?: (string | null) | undefined metadata: { [key: string]: string | undefined } - name?: string | null + name?: (string | null) | undefined object: "issuing.personalization_design" physical_bundle: string | t_issuing_physical_bundle preferences: t_issuing_personalization_design_preferences @@ -3841,28 +4132,28 @@ export type t_issuing_settlement = { export type t_issuing_token = { card: string | t_issuing_card created: number - device_fingerprint?: string | null + device_fingerprint?: (string | null) | undefined id: string - last4?: string + last4?: string | undefined livemode: boolean network: "mastercard" | "visa" - network_data?: t_issuing_network_token_network_data + network_data?: t_issuing_network_token_network_data | undefined network_updated_at: number object: "issuing.token" status: "active" | "deleted" | "requested" | "suspended" - wallet_provider?: "apple_pay" | "google_pay" | "samsung_pay" + wallet_provider?: ("apple_pay" | "google_pay" | "samsung_pay") | undefined } export type t_issuing_transaction = { amount: number - amount_details?: t_issuing_transaction_amount_details | null - authorization?: string | t_issuing_authorization | null - balance_transaction?: string | t_balance_transaction | null + amount_details?: (t_issuing_transaction_amount_details | null) | undefined + authorization?: (string | t_issuing_authorization | null) | undefined + balance_transaction?: (string | t_balance_transaction | null) | undefined card: string | t_issuing_card - cardholder?: string | t_issuing_cardholder | null + cardholder?: (string | t_issuing_cardholder | null) | undefined created: number currency: string - dispute?: string | t_issuing_dispute | null + dispute?: (string | t_issuing_dispute | null) | undefined id: string livemode: boolean merchant_amount: number @@ -3871,18 +4162,18 @@ export type t_issuing_transaction = { metadata: { [key: string]: string | undefined } - network_data?: t_issuing_transaction_network_data | null + network_data?: (t_issuing_transaction_network_data | null) | undefined object: "issuing.transaction" - purchase_details?: t_issuing_transaction_purchase_details | null - token?: string | t_issuing_token | null - treasury?: t_issuing_transaction_treasury | null + purchase_details?: (t_issuing_transaction_purchase_details | null) | undefined + token?: (string | t_issuing_token | null) | undefined + treasury?: (t_issuing_transaction_treasury | null) | undefined type: "capture" | "refund" - wallet?: "apple_pay" | "google_pay" | "samsung_pay" | null + wallet?: ("apple_pay" | "google_pay" | "samsung_pay" | null) | undefined } export type t_issuing_authorization_amount_details = { - atm_fee?: number | null - cashback_amount?: number | null + atm_fee?: (number | null) | undefined + cashback_amount?: (number | null) | undefined } export type t_issuing_authorization_authentication_exemption = { @@ -3891,112 +4182,131 @@ export type t_issuing_authorization_authentication_exemption = { } export type t_issuing_authorization_fleet_cardholder_prompt_data = { - alphanumeric_id?: string | null - driver_id?: string | null - odometer?: number | null - unspecified_id?: string | null - user_id?: string | null - vehicle_number?: string | null + alphanumeric_id?: (string | null) | undefined + driver_id?: (string | null) | undefined + odometer?: (number | null) | undefined + unspecified_id?: (string | null) | undefined + user_id?: (string | null) | undefined + vehicle_number?: (string | null) | undefined } export type t_issuing_authorization_fleet_data = { - cardholder_prompt_data?: t_issuing_authorization_fleet_cardholder_prompt_data | null + cardholder_prompt_data?: + | (t_issuing_authorization_fleet_cardholder_prompt_data | null) + | undefined purchase_type?: - | "fuel_and_non_fuel_purchase" - | "fuel_purchase" - | "non_fuel_purchase" - | null - reported_breakdown?: t_issuing_authorization_fleet_reported_breakdown | null - service_type?: "full_service" | "non_fuel_transaction" | "self_service" | null + | ( + | "fuel_and_non_fuel_purchase" + | "fuel_purchase" + | "non_fuel_purchase" + | null + ) + | undefined + reported_breakdown?: + | (t_issuing_authorization_fleet_reported_breakdown | null) + | undefined + service_type?: + | ("full_service" | "non_fuel_transaction" | "self_service" | null) + | undefined } export type t_issuing_authorization_fleet_fuel_price_data = { - gross_amount_decimal?: string | null + gross_amount_decimal?: (string | null) | undefined } export type t_issuing_authorization_fleet_non_fuel_price_data = { - gross_amount_decimal?: string | null + gross_amount_decimal?: (string | null) | undefined } export type t_issuing_authorization_fleet_reported_breakdown = { - fuel?: t_issuing_authorization_fleet_fuel_price_data | null - non_fuel?: t_issuing_authorization_fleet_non_fuel_price_data | null - tax?: t_issuing_authorization_fleet_tax_data | null + fuel?: (t_issuing_authorization_fleet_fuel_price_data | null) | undefined + non_fuel?: + | (t_issuing_authorization_fleet_non_fuel_price_data | null) + | undefined + tax?: (t_issuing_authorization_fleet_tax_data | null) | undefined } export type t_issuing_authorization_fleet_tax_data = { - local_amount_decimal?: string | null - national_amount_decimal?: string | null + local_amount_decimal?: (string | null) | undefined + national_amount_decimal?: (string | null) | undefined } export type t_issuing_authorization_fraud_challenge = { channel: "sms" status: "expired" | "pending" | "rejected" | "undeliverable" | "verified" - undeliverable_reason?: "no_phone_number" | "unsupported_phone_number" | null + undeliverable_reason?: + | ("no_phone_number" | "unsupported_phone_number" | null) + | undefined } export type t_issuing_authorization_fuel_data = { - industry_product_code?: string | null - quantity_decimal?: string | null + industry_product_code?: (string | null) | undefined + quantity_decimal?: (string | null) | undefined type?: - | "diesel" - | "other" - | "unleaded_plus" - | "unleaded_regular" - | "unleaded_super" - | null + | ( + | "diesel" + | "other" + | "unleaded_plus" + | "unleaded_regular" + | "unleaded_super" + | null + ) + | undefined unit?: - | "charging_minute" - | "imperial_gallon" - | "kilogram" - | "kilowatt_hour" - | "liter" - | "other" - | "pound" - | "us_gallon" - | null - unit_cost_decimal?: string | null + | ( + | "charging_minute" + | "imperial_gallon" + | "kilogram" + | "kilowatt_hour" + | "liter" + | "other" + | "pound" + | "us_gallon" + | null + ) + | undefined + unit_cost_decimal?: (string | null) | undefined } export type t_issuing_authorization_merchant_data = { category: string category_code: string - city?: string | null - country?: string | null - name?: string | null + city?: (string | null) | undefined + country?: (string | null) | undefined + name?: (string | null) | undefined network_id: string - postal_code?: string | null - state?: string | null - terminal_id?: string | null - url?: string | null + postal_code?: (string | null) | undefined + state?: (string | null) | undefined + terminal_id?: (string | null) | undefined + url?: (string | null) | undefined } export type t_issuing_authorization_network_data = { - acquiring_institution_id?: string | null - system_trace_audit_number?: string | null - transaction_id?: string | null + acquiring_institution_id?: (string | null) | undefined + system_trace_audit_number?: (string | null) | undefined + transaction_id?: (string | null) | undefined } export type t_issuing_authorization_pending_request = { amount: number - amount_details?: t_issuing_authorization_amount_details | null + amount_details?: (t_issuing_authorization_amount_details | null) | undefined currency: string is_amount_controllable: boolean merchant_amount: number merchant_currency: string - network_risk_score?: number | null + network_risk_score?: (number | null) | undefined } export type t_issuing_authorization_request = { amount: number - amount_details?: t_issuing_authorization_amount_details | null + amount_details?: (t_issuing_authorization_amount_details | null) | undefined approved: boolean - authorization_code?: string | null + authorization_code?: (string | null) | undefined created: number currency: string merchant_amount: number merchant_currency: string - network_risk_score?: number | null + network_risk_score?: (number | null) | undefined reason: | "account_disabled" | "card_active" @@ -4017,8 +4327,8 @@ export type t_issuing_authorization_request = { | "webhook_declined" | "webhook_error" | "webhook_timeout" - reason_message?: string | null - requested_at?: number | null + reason_message?: (string | null) | undefined + requested_at?: (number | null) | undefined } export type t_issuing_authorization_three_d_secure = { @@ -4028,981 +4338,1001 @@ export type t_issuing_authorization_three_d_secure = { export type t_issuing_authorization_treasury = { received_credits: string[] received_debits: string[] - transaction?: string | null + transaction?: (string | null) | undefined } export type t_issuing_authorization_verification_data = { address_line1_check: "match" | "mismatch" | "not_provided" address_postal_code_check: "match" | "mismatch" | "not_provided" - authentication_exemption?: t_issuing_authorization_authentication_exemption | null + authentication_exemption?: + | (t_issuing_authorization_authentication_exemption | null) + | undefined cvc_check: "match" | "mismatch" | "not_provided" expiry_check: "match" | "mismatch" | "not_provided" - postal_code?: string | null - three_d_secure?: t_issuing_authorization_three_d_secure | null + postal_code?: (string | null) | undefined + three_d_secure?: (t_issuing_authorization_three_d_secure | null) | undefined } export type t_issuing_card_apple_pay = { eligible: boolean ineligible_reason?: - | "missing_agreement" - | "missing_cardholder_contact" - | "unsupported_region" - | null + | ( + | "missing_agreement" + | "missing_cardholder_contact" + | "unsupported_region" + | null + ) + | undefined } export type t_issuing_card_authorization_controls = { allowed_categories?: | ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - | null - allowed_merchant_countries?: string[] | null + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | null + ) + | undefined + allowed_merchant_countries?: (string[] | null) | undefined blocked_categories?: | ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - | null - blocked_merchant_countries?: string[] | null - spending_limits?: t_issuing_card_spending_limit[] | null - spending_limits_currency?: string | null + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | null + ) + | undefined + blocked_merchant_countries?: (string[] | null) | undefined + spending_limits?: (t_issuing_card_spending_limit[] | null) | undefined + spending_limits_currency?: (string | null) | undefined } export type t_issuing_card_google_pay = { eligible: boolean ineligible_reason?: - | "missing_agreement" - | "missing_cardholder_contact" - | "unsupported_region" - | null + | ( + | "missing_agreement" + | "missing_cardholder_contact" + | "unsupported_region" + | null + ) + | undefined } export type t_issuing_card_shipping = { address: t_address - address_validation?: t_issuing_card_shipping_address_validation | null - carrier?: "dhl" | "fedex" | "royal_mail" | "usps" | null - customs?: t_issuing_card_shipping_customs | null - eta?: number | null + address_validation?: + | (t_issuing_card_shipping_address_validation | null) + | undefined + carrier?: ("dhl" | "fedex" | "royal_mail" | "usps" | null) | undefined + customs?: (t_issuing_card_shipping_customs | null) | undefined + eta?: (number | null) | undefined name: string - phone_number?: string | null - require_signature?: boolean | null + phone_number?: (string | null) | undefined + require_signature?: (boolean | null) | undefined service: "express" | "priority" | "standard" status?: - | "canceled" - | "delivered" - | "failure" - | "pending" - | "returned" - | "shipped" - | "submitted" - | null - tracking_number?: string | null - tracking_url?: string | null + | ( + | "canceled" + | "delivered" + | "failure" + | "pending" + | "returned" + | "shipped" + | "submitted" + | null + ) + | undefined + tracking_number?: (string | null) | undefined + tracking_url?: (string | null) | undefined type: "bulk" | "individual" } export type t_issuing_card_shipping_address_validation = { mode: "disabled" | "normalization_only" | "validation_and_normalization" - normalized_address?: t_address | null + normalized_address?: (t_address | null) | undefined result?: - | "indeterminate" - | "likely_deliverable" - | "likely_undeliverable" - | null + | ("indeterminate" | "likely_deliverable" | "likely_undeliverable" | null) + | undefined } export type t_issuing_card_shipping_customs = { - eori_number?: string | null + eori_number?: (string | null) | undefined } export type t_issuing_card_spending_limit = { amount: number categories?: | ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - | null + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | null + ) + | undefined interval: | "all_time" | "daily" @@ -5015,7 +5345,7 @@ export type t_issuing_card_spending_limit = { export type t_issuing_card_wallets = { apple_pay: t_issuing_card_apple_pay google_pay: t_issuing_card_google_pay - primary_account_identifier?: string | null + primary_account_identifier?: (string | null) | undefined } export type t_issuing_cardholder_address = { @@ -5025,610 +5355,618 @@ export type t_issuing_cardholder_address = { export type t_issuing_cardholder_authorization_controls = { allowed_categories?: | ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - | null - allowed_merchant_countries?: string[] | null + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | null + ) + | undefined + allowed_merchant_countries?: (string[] | null) | undefined blocked_categories?: | ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - | null - blocked_merchant_countries?: string[] | null - spending_limits?: t_issuing_cardholder_spending_limit[] | null - spending_limits_currency?: string | null + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | null + ) + | undefined + blocked_merchant_countries?: (string[] | null) | undefined + spending_limits?: (t_issuing_cardholder_spending_limit[] | null) | undefined + spending_limits_currency?: (string | null) | undefined } export type t_issuing_cardholder_card_issuing = { - user_terms_acceptance?: t_issuing_cardholder_user_terms_acceptance | null + user_terms_acceptance?: + | (t_issuing_cardholder_user_terms_acceptance | null) + | undefined } export type t_issuing_cardholder_company = { @@ -5636,347 +5974,356 @@ export type t_issuing_cardholder_company = { } export type t_issuing_cardholder_id_document = { - back?: string | t_file | null - front?: string | t_file | null + back?: (string | t_file | null) | undefined + front?: (string | t_file | null) | undefined } export type t_issuing_cardholder_individual = { - card_issuing?: t_issuing_cardholder_card_issuing | null - dob?: t_issuing_cardholder_individual_dob | null - first_name?: string | null - last_name?: string | null - verification?: t_issuing_cardholder_verification | null + card_issuing?: (t_issuing_cardholder_card_issuing | null) | undefined + dob?: (t_issuing_cardholder_individual_dob | null) | undefined + first_name?: (string | null) | undefined + last_name?: (string | null) | undefined + verification?: (t_issuing_cardholder_verification | null) | undefined } export type t_issuing_cardholder_individual_dob = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_issuing_cardholder_requirements = { disabled_reason?: - | "listed" - | "rejected.listed" - | "requirements.past_due" - | "under_review" - | null + | ( + | "listed" + | "rejected.listed" + | "requirements.past_due" + | "under_review" + | null + ) + | undefined past_due?: | ( - | "company.tax_id" - | "individual.card_issuing.user_terms_acceptance.date" - | "individual.card_issuing.user_terms_acceptance.ip" - | "individual.dob.day" - | "individual.dob.month" - | "individual.dob.year" - | "individual.first_name" - | "individual.last_name" - | "individual.verification.document" - )[] - | null + | ( + | "company.tax_id" + | "individual.card_issuing.user_terms_acceptance.date" + | "individual.card_issuing.user_terms_acceptance.ip" + | "individual.dob.day" + | "individual.dob.month" + | "individual.dob.year" + | "individual.first_name" + | "individual.last_name" + | "individual.verification.document" + )[] + | null + ) + | undefined } export type t_issuing_cardholder_spending_limit = { amount: number categories?: | ( - | "ac_refrigeration_repair" - | "accounting_bookkeeping_services" - | "advertising_services" - | "agricultural_cooperative" - | "airlines_air_carriers" - | "airports_flying_fields" - | "ambulance_services" - | "amusement_parks_carnivals" - | "antique_reproductions" - | "antique_shops" - | "aquariums" - | "architectural_surveying_services" - | "art_dealers_and_galleries" - | "artists_supply_and_craft_shops" - | "auto_and_home_supply_stores" - | "auto_body_repair_shops" - | "auto_paint_shops" - | "auto_service_shops" - | "automated_cash_disburse" - | "automated_fuel_dispensers" - | "automobile_associations" - | "automotive_parts_and_accessories_stores" - | "automotive_tire_stores" - | "bail_and_bond_payments" - | "bakeries" - | "bands_orchestras" - | "barber_and_beauty_shops" - | "betting_casino_gambling" - | "bicycle_shops" - | "billiard_pool_establishments" - | "boat_dealers" - | "boat_rentals_and_leases" - | "book_stores" - | "books_periodicals_and_newspapers" - | "bowling_alleys" - | "bus_lines" - | "business_secretarial_schools" - | "buying_shopping_services" - | "cable_satellite_and_other_pay_television_and_radio" - | "camera_and_photographic_supply_stores" - | "candy_nut_and_confectionery_stores" - | "car_and_truck_dealers_new_used" - | "car_and_truck_dealers_used_only" - | "car_rental_agencies" - | "car_washes" - | "carpentry_services" - | "carpet_upholstery_cleaning" - | "caterers" - | "charitable_and_social_service_organizations_fundraising" - | "chemicals_and_allied_products" - | "child_care_services" - | "childrens_and_infants_wear_stores" - | "chiropodists_podiatrists" - | "chiropractors" - | "cigar_stores_and_stands" - | "civic_social_fraternal_associations" - | "cleaning_and_maintenance" - | "clothing_rental" - | "colleges_universities" - | "commercial_equipment" - | "commercial_footwear" - | "commercial_photography_art_and_graphics" - | "commuter_transport_and_ferries" - | "computer_network_services" - | "computer_programming" - | "computer_repair" - | "computer_software_stores" - | "computers_peripherals_and_software" - | "concrete_work_services" - | "construction_materials" - | "consulting_public_relations" - | "correspondence_schools" - | "cosmetic_stores" - | "counseling_services" - | "country_clubs" - | "courier_services" - | "court_costs" - | "credit_reporting_agencies" - | "cruise_lines" - | "dairy_products_stores" - | "dance_hall_studios_schools" - | "dating_escort_services" - | "dentists_orthodontists" - | "department_stores" - | "detective_agencies" - | "digital_goods_applications" - | "digital_goods_games" - | "digital_goods_large_volume" - | "digital_goods_media" - | "direct_marketing_catalog_merchant" - | "direct_marketing_combination_catalog_and_retail_merchant" - | "direct_marketing_inbound_telemarketing" - | "direct_marketing_insurance_services" - | "direct_marketing_other" - | "direct_marketing_outbound_telemarketing" - | "direct_marketing_subscription" - | "direct_marketing_travel" - | "discount_stores" - | "doctors" - | "door_to_door_sales" - | "drapery_window_covering_and_upholstery_stores" - | "drinking_places" - | "drug_stores_and_pharmacies" - | "drugs_drug_proprietaries_and_druggist_sundries" - | "dry_cleaners" - | "durable_goods" - | "duty_free_stores" - | "eating_places_restaurants" - | "educational_services" - | "electric_razor_stores" - | "electric_vehicle_charging" - | "electrical_parts_and_equipment" - | "electrical_services" - | "electronics_repair_shops" - | "electronics_stores" - | "elementary_secondary_schools" - | "emergency_services_gcas_visa_use_only" - | "employment_temp_agencies" - | "equipment_rental" - | "exterminating_services" - | "family_clothing_stores" - | "fast_food_restaurants" - | "financial_institutions" - | "fines_government_administrative_entities" - | "fireplace_fireplace_screens_and_accessories_stores" - | "floor_covering_stores" - | "florists" - | "florists_supplies_nursery_stock_and_flowers" - | "freezer_and_locker_meat_provisioners" - | "fuel_dealers_non_automotive" - | "funeral_services_crematories" - | "furniture_home_furnishings_and_equipment_stores_except_appliances" - | "furniture_repair_refinishing" - | "furriers_and_fur_shops" - | "general_services" - | "gift_card_novelty_and_souvenir_shops" - | "glass_paint_and_wallpaper_stores" - | "glassware_crystal_stores" - | "golf_courses_public" - | "government_licensed_horse_dog_racing_us_region_only" - | "government_licensed_online_casions_online_gambling_us_region_only" - | "government_owned_lotteries_non_us_region" - | "government_owned_lotteries_us_region_only" - | "government_services" - | "grocery_stores_supermarkets" - | "hardware_equipment_and_supplies" - | "hardware_stores" - | "health_and_beauty_spas" - | "hearing_aids_sales_and_supplies" - | "heating_plumbing_a_c" - | "hobby_toy_and_game_shops" - | "home_supply_warehouse_stores" - | "hospitals" - | "hotels_motels_and_resorts" - | "household_appliance_stores" - | "industrial_supplies" - | "information_retrieval_services" - | "insurance_default" - | "insurance_underwriting_premiums" - | "intra_company_purchases" - | "jewelry_stores_watches_clocks_and_silverware_stores" - | "landscaping_services" - | "laundries" - | "laundry_cleaning_services" - | "legal_services_attorneys" - | "luggage_and_leather_goods_stores" - | "lumber_building_materials_stores" - | "manual_cash_disburse" - | "marinas_service_and_supplies" - | "marketplaces" - | "masonry_stonework_and_plaster" - | "massage_parlors" - | "medical_and_dental_labs" - | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" - | "medical_services" - | "membership_organizations" - | "mens_and_boys_clothing_and_accessories_stores" - | "mens_womens_clothing_stores" - | "metal_service_centers" - | "miscellaneous" - | "miscellaneous_apparel_and_accessory_shops" - | "miscellaneous_auto_dealers" - | "miscellaneous_business_services" - | "miscellaneous_food_stores" - | "miscellaneous_general_merchandise" - | "miscellaneous_general_services" - | "miscellaneous_home_furnishing_specialty_stores" - | "miscellaneous_publishing_and_printing" - | "miscellaneous_recreation_services" - | "miscellaneous_repair_shops" - | "miscellaneous_specialty_retail" - | "mobile_home_dealers" - | "motion_picture_theaters" - | "motor_freight_carriers_and_trucking" - | "motor_homes_dealers" - | "motor_vehicle_supplies_and_new_parts" - | "motorcycle_shops_and_dealers" - | "motorcycle_shops_dealers" - | "music_stores_musical_instruments_pianos_and_sheet_music" - | "news_dealers_and_newsstands" - | "non_fi_money_orders" - | "non_fi_stored_value_card_purchase_load" - | "nondurable_goods" - | "nurseries_lawn_and_garden_supply_stores" - | "nursing_personal_care" - | "office_and_commercial_furniture" - | "opticians_eyeglasses" - | "optometrists_ophthalmologist" - | "orthopedic_goods_prosthetic_devices" - | "osteopaths" - | "package_stores_beer_wine_and_liquor" - | "paints_varnishes_and_supplies" - | "parking_lots_garages" - | "passenger_railways" - | "pawn_shops" - | "pet_shops_pet_food_and_supplies" - | "petroleum_and_petroleum_products" - | "photo_developing" - | "photographic_photocopy_microfilm_equipment_and_supplies" - | "photographic_studios" - | "picture_video_production" - | "piece_goods_notions_and_other_dry_goods" - | "plumbing_heating_equipment_and_supplies" - | "political_organizations" - | "postal_services_government_only" - | "precious_stones_and_metals_watches_and_jewelry" - | "professional_services" - | "public_warehousing_and_storage" - | "quick_copy_repro_and_blueprint" - | "railroads" - | "real_estate_agents_and_managers_rentals" - | "record_stores" - | "recreational_vehicle_rentals" - | "religious_goods_stores" - | "religious_organizations" - | "roofing_siding_sheet_metal" - | "secretarial_support_services" - | "security_brokers_dealers" - | "service_stations" - | "sewing_needlework_fabric_and_piece_goods_stores" - | "shoe_repair_hat_cleaning" - | "shoe_stores" - | "small_appliance_repair" - | "snowmobile_dealers" - | "special_trade_services" - | "specialty_cleaning" - | "sporting_goods_stores" - | "sporting_recreation_camps" - | "sports_and_riding_apparel_stores" - | "sports_clubs_fields" - | "stamp_and_coin_stores" - | "stationary_office_supplies_printing_and_writing_paper" - | "stationery_stores_office_and_school_supply_stores" - | "swimming_pools_sales" - | "t_ui_travel_germany" - | "tailors_alterations" - | "tax_payments_government_agencies" - | "tax_preparation_services" - | "taxicabs_limousines" - | "telecommunication_equipment_and_telephone_sales" - | "telecommunication_services" - | "telegraph_services" - | "tent_and_awning_shops" - | "testing_laboratories" - | "theatrical_ticket_agencies" - | "timeshares" - | "tire_retreading_and_repair" - | "tolls_bridge_fees" - | "tourist_attractions_and_exhibits" - | "towing_services" - | "trailer_parks_campgrounds" - | "transportation_services" - | "travel_agencies_tour_operators" - | "truck_stop_iteration" - | "truck_utility_trailer_rentals" - | "typesetting_plate_making_and_related_services" - | "typewriter_stores" - | "u_s_federal_government_agencies_or_departments" - | "uniforms_commercial_clothing" - | "used_merchandise_and_secondhand_stores" - | "utilities" - | "variety_stores" - | "veterinary_services" - | "video_amusement_game_supplies" - | "video_game_arcades" - | "video_tape_rental_stores" - | "vocational_trade_schools" - | "watch_jewelry_repair" - | "welding_repair" - | "wholesale_clubs" - | "wig_and_toupee_stores" - | "wires_money_orders" - | "womens_accessory_and_specialty_shops" - | "womens_ready_to_wear_stores" - | "wrecking_and_salvage_yards" - )[] - | null + | ( + | "ac_refrigeration_repair" + | "accounting_bookkeeping_services" + | "advertising_services" + | "agricultural_cooperative" + | "airlines_air_carriers" + | "airports_flying_fields" + | "ambulance_services" + | "amusement_parks_carnivals" + | "antique_reproductions" + | "antique_shops" + | "aquariums" + | "architectural_surveying_services" + | "art_dealers_and_galleries" + | "artists_supply_and_craft_shops" + | "auto_and_home_supply_stores" + | "auto_body_repair_shops" + | "auto_paint_shops" + | "auto_service_shops" + | "automated_cash_disburse" + | "automated_fuel_dispensers" + | "automobile_associations" + | "automotive_parts_and_accessories_stores" + | "automotive_tire_stores" + | "bail_and_bond_payments" + | "bakeries" + | "bands_orchestras" + | "barber_and_beauty_shops" + | "betting_casino_gambling" + | "bicycle_shops" + | "billiard_pool_establishments" + | "boat_dealers" + | "boat_rentals_and_leases" + | "book_stores" + | "books_periodicals_and_newspapers" + | "bowling_alleys" + | "bus_lines" + | "business_secretarial_schools" + | "buying_shopping_services" + | "cable_satellite_and_other_pay_television_and_radio" + | "camera_and_photographic_supply_stores" + | "candy_nut_and_confectionery_stores" + | "car_and_truck_dealers_new_used" + | "car_and_truck_dealers_used_only" + | "car_rental_agencies" + | "car_washes" + | "carpentry_services" + | "carpet_upholstery_cleaning" + | "caterers" + | "charitable_and_social_service_organizations_fundraising" + | "chemicals_and_allied_products" + | "child_care_services" + | "childrens_and_infants_wear_stores" + | "chiropodists_podiatrists" + | "chiropractors" + | "cigar_stores_and_stands" + | "civic_social_fraternal_associations" + | "cleaning_and_maintenance" + | "clothing_rental" + | "colleges_universities" + | "commercial_equipment" + | "commercial_footwear" + | "commercial_photography_art_and_graphics" + | "commuter_transport_and_ferries" + | "computer_network_services" + | "computer_programming" + | "computer_repair" + | "computer_software_stores" + | "computers_peripherals_and_software" + | "concrete_work_services" + | "construction_materials" + | "consulting_public_relations" + | "correspondence_schools" + | "cosmetic_stores" + | "counseling_services" + | "country_clubs" + | "courier_services" + | "court_costs" + | "credit_reporting_agencies" + | "cruise_lines" + | "dairy_products_stores" + | "dance_hall_studios_schools" + | "dating_escort_services" + | "dentists_orthodontists" + | "department_stores" + | "detective_agencies" + | "digital_goods_applications" + | "digital_goods_games" + | "digital_goods_large_volume" + | "digital_goods_media" + | "direct_marketing_catalog_merchant" + | "direct_marketing_combination_catalog_and_retail_merchant" + | "direct_marketing_inbound_telemarketing" + | "direct_marketing_insurance_services" + | "direct_marketing_other" + | "direct_marketing_outbound_telemarketing" + | "direct_marketing_subscription" + | "direct_marketing_travel" + | "discount_stores" + | "doctors" + | "door_to_door_sales" + | "drapery_window_covering_and_upholstery_stores" + | "drinking_places" + | "drug_stores_and_pharmacies" + | "drugs_drug_proprietaries_and_druggist_sundries" + | "dry_cleaners" + | "durable_goods" + | "duty_free_stores" + | "eating_places_restaurants" + | "educational_services" + | "electric_razor_stores" + | "electric_vehicle_charging" + | "electrical_parts_and_equipment" + | "electrical_services" + | "electronics_repair_shops" + | "electronics_stores" + | "elementary_secondary_schools" + | "emergency_services_gcas_visa_use_only" + | "employment_temp_agencies" + | "equipment_rental" + | "exterminating_services" + | "family_clothing_stores" + | "fast_food_restaurants" + | "financial_institutions" + | "fines_government_administrative_entities" + | "fireplace_fireplace_screens_and_accessories_stores" + | "floor_covering_stores" + | "florists" + | "florists_supplies_nursery_stock_and_flowers" + | "freezer_and_locker_meat_provisioners" + | "fuel_dealers_non_automotive" + | "funeral_services_crematories" + | "furniture_home_furnishings_and_equipment_stores_except_appliances" + | "furniture_repair_refinishing" + | "furriers_and_fur_shops" + | "general_services" + | "gift_card_novelty_and_souvenir_shops" + | "glass_paint_and_wallpaper_stores" + | "glassware_crystal_stores" + | "golf_courses_public" + | "government_licensed_horse_dog_racing_us_region_only" + | "government_licensed_online_casions_online_gambling_us_region_only" + | "government_owned_lotteries_non_us_region" + | "government_owned_lotteries_us_region_only" + | "government_services" + | "grocery_stores_supermarkets" + | "hardware_equipment_and_supplies" + | "hardware_stores" + | "health_and_beauty_spas" + | "hearing_aids_sales_and_supplies" + | "heating_plumbing_a_c" + | "hobby_toy_and_game_shops" + | "home_supply_warehouse_stores" + | "hospitals" + | "hotels_motels_and_resorts" + | "household_appliance_stores" + | "industrial_supplies" + | "information_retrieval_services" + | "insurance_default" + | "insurance_underwriting_premiums" + | "intra_company_purchases" + | "jewelry_stores_watches_clocks_and_silverware_stores" + | "landscaping_services" + | "laundries" + | "laundry_cleaning_services" + | "legal_services_attorneys" + | "luggage_and_leather_goods_stores" + | "lumber_building_materials_stores" + | "manual_cash_disburse" + | "marinas_service_and_supplies" + | "marketplaces" + | "masonry_stonework_and_plaster" + | "massage_parlors" + | "medical_and_dental_labs" + | "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" + | "medical_services" + | "membership_organizations" + | "mens_and_boys_clothing_and_accessories_stores" + | "mens_womens_clothing_stores" + | "metal_service_centers" + | "miscellaneous" + | "miscellaneous_apparel_and_accessory_shops" + | "miscellaneous_auto_dealers" + | "miscellaneous_business_services" + | "miscellaneous_food_stores" + | "miscellaneous_general_merchandise" + | "miscellaneous_general_services" + | "miscellaneous_home_furnishing_specialty_stores" + | "miscellaneous_publishing_and_printing" + | "miscellaneous_recreation_services" + | "miscellaneous_repair_shops" + | "miscellaneous_specialty_retail" + | "mobile_home_dealers" + | "motion_picture_theaters" + | "motor_freight_carriers_and_trucking" + | "motor_homes_dealers" + | "motor_vehicle_supplies_and_new_parts" + | "motorcycle_shops_and_dealers" + | "motorcycle_shops_dealers" + | "music_stores_musical_instruments_pianos_and_sheet_music" + | "news_dealers_and_newsstands" + | "non_fi_money_orders" + | "non_fi_stored_value_card_purchase_load" + | "nondurable_goods" + | "nurseries_lawn_and_garden_supply_stores" + | "nursing_personal_care" + | "office_and_commercial_furniture" + | "opticians_eyeglasses" + | "optometrists_ophthalmologist" + | "orthopedic_goods_prosthetic_devices" + | "osteopaths" + | "package_stores_beer_wine_and_liquor" + | "paints_varnishes_and_supplies" + | "parking_lots_garages" + | "passenger_railways" + | "pawn_shops" + | "pet_shops_pet_food_and_supplies" + | "petroleum_and_petroleum_products" + | "photo_developing" + | "photographic_photocopy_microfilm_equipment_and_supplies" + | "photographic_studios" + | "picture_video_production" + | "piece_goods_notions_and_other_dry_goods" + | "plumbing_heating_equipment_and_supplies" + | "political_organizations" + | "postal_services_government_only" + | "precious_stones_and_metals_watches_and_jewelry" + | "professional_services" + | "public_warehousing_and_storage" + | "quick_copy_repro_and_blueprint" + | "railroads" + | "real_estate_agents_and_managers_rentals" + | "record_stores" + | "recreational_vehicle_rentals" + | "religious_goods_stores" + | "religious_organizations" + | "roofing_siding_sheet_metal" + | "secretarial_support_services" + | "security_brokers_dealers" + | "service_stations" + | "sewing_needlework_fabric_and_piece_goods_stores" + | "shoe_repair_hat_cleaning" + | "shoe_stores" + | "small_appliance_repair" + | "snowmobile_dealers" + | "special_trade_services" + | "specialty_cleaning" + | "sporting_goods_stores" + | "sporting_recreation_camps" + | "sports_and_riding_apparel_stores" + | "sports_clubs_fields" + | "stamp_and_coin_stores" + | "stationary_office_supplies_printing_and_writing_paper" + | "stationery_stores_office_and_school_supply_stores" + | "swimming_pools_sales" + | "t_ui_travel_germany" + | "tailors_alterations" + | "tax_payments_government_agencies" + | "tax_preparation_services" + | "taxicabs_limousines" + | "telecommunication_equipment_and_telephone_sales" + | "telecommunication_services" + | "telegraph_services" + | "tent_and_awning_shops" + | "testing_laboratories" + | "theatrical_ticket_agencies" + | "timeshares" + | "tire_retreading_and_repair" + | "tolls_bridge_fees" + | "tourist_attractions_and_exhibits" + | "towing_services" + | "trailer_parks_campgrounds" + | "transportation_services" + | "travel_agencies_tour_operators" + | "truck_stop_iteration" + | "truck_utility_trailer_rentals" + | "typesetting_plate_making_and_related_services" + | "typewriter_stores" + | "u_s_federal_government_agencies_or_departments" + | "uniforms_commercial_clothing" + | "used_merchandise_and_secondhand_stores" + | "utilities" + | "variety_stores" + | "veterinary_services" + | "video_amusement_game_supplies" + | "video_game_arcades" + | "video_tape_rental_stores" + | "vocational_trade_schools" + | "watch_jewelry_repair" + | "welding_repair" + | "wholesale_clubs" + | "wig_and_toupee_stores" + | "wires_money_orders" + | "womens_accessory_and_specialty_shops" + | "womens_ready_to_wear_stores" + | "wrecking_and_salvage_yards" + )[] + | null + ) + | undefined interval: | "all_time" | "daily" @@ -5987,45 +6334,49 @@ export type t_issuing_cardholder_spending_limit = { } export type t_issuing_cardholder_user_terms_acceptance = { - date?: number | null - ip?: string | null - user_agent?: string | null + date?: (number | null) | undefined + ip?: (string | null) | undefined + user_agent?: (string | null) | undefined } export type t_issuing_cardholder_verification = { - document?: t_issuing_cardholder_id_document | null + document?: (t_issuing_cardholder_id_document | null) | undefined } export type t_issuing_dispute_canceled_evidence = { - additional_documentation?: string | t_file | null - canceled_at?: number | null - cancellation_policy_provided?: boolean | null - cancellation_reason?: string | null - expected_at?: number | null - explanation?: string | null - product_description?: string | null - product_type?: "merchandise" | "service" | null - return_status?: "merchant_rejected" | "successful" | null - returned_at?: number | null + additional_documentation?: (string | t_file | null) | undefined + canceled_at?: (number | null) | undefined + cancellation_policy_provided?: (boolean | null) | undefined + cancellation_reason?: (string | null) | undefined + expected_at?: (number | null) | undefined + explanation?: (string | null) | undefined + product_description?: (string | null) | undefined + product_type?: ("merchandise" | "service" | null) | undefined + return_status?: ("merchant_rejected" | "successful" | null) | undefined + returned_at?: (number | null) | undefined } export type t_issuing_dispute_duplicate_evidence = { - additional_documentation?: string | t_file | null - card_statement?: string | t_file | null - cash_receipt?: string | t_file | null - check_image?: string | t_file | null - explanation?: string | null - original_transaction?: string | null + additional_documentation?: (string | t_file | null) | undefined + card_statement?: (string | t_file | null) | undefined + cash_receipt?: (string | t_file | null) | undefined + check_image?: (string | t_file | null) | undefined + explanation?: (string | null) | undefined + original_transaction?: (string | null) | undefined } export type t_issuing_dispute_evidence = { - canceled?: t_issuing_dispute_canceled_evidence - duplicate?: t_issuing_dispute_duplicate_evidence - fraudulent?: t_issuing_dispute_fraudulent_evidence - merchandise_not_as_described?: t_issuing_dispute_merchandise_not_as_described_evidence - no_valid_authorization?: t_issuing_dispute_no_valid_authorization_evidence - not_received?: t_issuing_dispute_not_received_evidence - other?: t_issuing_dispute_other_evidence + canceled?: t_issuing_dispute_canceled_evidence | undefined + duplicate?: t_issuing_dispute_duplicate_evidence | undefined + fraudulent?: t_issuing_dispute_fraudulent_evidence | undefined + merchandise_not_as_described?: + | t_issuing_dispute_merchandise_not_as_described_evidence + | undefined + no_valid_authorization?: + | t_issuing_dispute_no_valid_authorization_evidence + | undefined + not_received?: t_issuing_dispute_not_received_evidence | undefined + other?: t_issuing_dispute_other_evidence | undefined reason: | "canceled" | "duplicate" @@ -6035,53 +6386,55 @@ export type t_issuing_dispute_evidence = { | "not_received" | "other" | "service_not_as_described" - service_not_as_described?: t_issuing_dispute_service_not_as_described_evidence + service_not_as_described?: + | t_issuing_dispute_service_not_as_described_evidence + | undefined } export type t_issuing_dispute_fraudulent_evidence = { - additional_documentation?: string | t_file | null - explanation?: string | null + additional_documentation?: (string | t_file | null) | undefined + explanation?: (string | null) | undefined } export type t_issuing_dispute_merchandise_not_as_described_evidence = { - additional_documentation?: string | t_file | null - explanation?: string | null - received_at?: number | null - return_description?: string | null - return_status?: "merchant_rejected" | "successful" | null - returned_at?: number | null + additional_documentation?: (string | t_file | null) | undefined + explanation?: (string | null) | undefined + received_at?: (number | null) | undefined + return_description?: (string | null) | undefined + return_status?: ("merchant_rejected" | "successful" | null) | undefined + returned_at?: (number | null) | undefined } export type t_issuing_dispute_no_valid_authorization_evidence = { - additional_documentation?: string | t_file | null - explanation?: string | null + additional_documentation?: (string | t_file | null) | undefined + explanation?: (string | null) | undefined } export type t_issuing_dispute_not_received_evidence = { - additional_documentation?: string | t_file | null - expected_at?: number | null - explanation?: string | null - product_description?: string | null - product_type?: "merchandise" | "service" | null + additional_documentation?: (string | t_file | null) | undefined + expected_at?: (number | null) | undefined + explanation?: (string | null) | undefined + product_description?: (string | null) | undefined + product_type?: ("merchandise" | "service" | null) | undefined } export type t_issuing_dispute_other_evidence = { - additional_documentation?: string | t_file | null - explanation?: string | null - product_description?: string | null - product_type?: "merchandise" | "service" | null + additional_documentation?: (string | t_file | null) | undefined + explanation?: (string | null) | undefined + product_description?: (string | null) | undefined + product_type?: ("merchandise" | "service" | null) | undefined } export type t_issuing_dispute_service_not_as_described_evidence = { - additional_documentation?: string | t_file | null - canceled_at?: number | null - cancellation_reason?: string | null - explanation?: string | null - received_at?: number | null + additional_documentation?: (string | t_file | null) | undefined + canceled_at?: (number | null) | undefined + cancellation_reason?: (string | null) | undefined + explanation?: (string | null) | undefined + received_at?: (number | null) | undefined } export type t_issuing_dispute_treasury = { - debit_reversal?: string | null + debit_reversal?: (string | null) | undefined received_debit: string } @@ -6091,114 +6444,122 @@ export type t_issuing_network_token_address = { } export type t_issuing_network_token_device = { - device_fingerprint?: string - ip_address?: string - location?: string - name?: string - phone_number?: string - type?: "other" | "phone" | "watch" + device_fingerprint?: string | undefined + ip_address?: string | undefined + location?: string | undefined + name?: string | undefined + phone_number?: string | undefined + type?: ("other" | "phone" | "watch") | undefined } export type t_issuing_network_token_mastercard = { - card_reference_id?: string + card_reference_id?: string | undefined token_reference_id: string token_requestor_id: string - token_requestor_name?: string + token_requestor_name?: string | undefined } export type t_issuing_network_token_network_data = { - device?: t_issuing_network_token_device - mastercard?: t_issuing_network_token_mastercard + device?: t_issuing_network_token_device | undefined + mastercard?: t_issuing_network_token_mastercard | undefined type: "mastercard" | "visa" - visa?: t_issuing_network_token_visa - wallet_provider?: t_issuing_network_token_wallet_provider + visa?: t_issuing_network_token_visa | undefined + wallet_provider?: t_issuing_network_token_wallet_provider | undefined } export type t_issuing_network_token_visa = { card_reference_id: string token_reference_id: string token_requestor_id: string - token_risk_score?: string + token_risk_score?: string | undefined } export type t_issuing_network_token_wallet_provider = { - account_id?: string - account_trust_score?: number - card_number_source?: "app" | "manual" | "on_file" | "other" - cardholder_address?: t_issuing_network_token_address - cardholder_name?: string - device_trust_score?: number - hashed_account_email_address?: string - reason_codes?: ( - | "account_card_too_new" - | "account_recently_changed" - | "account_too_new" - | "account_too_new_since_launch" - | "additional_device" - | "data_expired" - | "defer_id_v_decision" - | "device_recently_lost" - | "good_activity_history" - | "has_suspended_tokens" - | "high_risk" - | "inactive_account" - | "long_account_tenure" - | "low_account_score" - | "low_device_score" - | "low_phone_number_score" - | "network_service_error" - | "outside_home_territory" - | "provisioning_cardholder_mismatch" - | "provisioning_device_and_cardholder_mismatch" - | "provisioning_device_mismatch" - | "same_device_no_prior_authentication" - | "same_device_successful_prior_authentication" - | "software_update" - | "suspicious_activity" - | "too_many_different_cardholders" - | "too_many_recent_attempts" - | "too_many_recent_tokens" - )[] - suggested_decision?: "approve" | "decline" | "require_auth" - suggested_decision_version?: string + account_id?: string | undefined + account_trust_score?: number | undefined + card_number_source?: ("app" | "manual" | "on_file" | "other") | undefined + cardholder_address?: t_issuing_network_token_address | undefined + cardholder_name?: string | undefined + device_trust_score?: number | undefined + hashed_account_email_address?: string | undefined + reason_codes?: + | ( + | "account_card_too_new" + | "account_recently_changed" + | "account_too_new" + | "account_too_new_since_launch" + | "additional_device" + | "data_expired" + | "defer_id_v_decision" + | "device_recently_lost" + | "good_activity_history" + | "has_suspended_tokens" + | "high_risk" + | "inactive_account" + | "long_account_tenure" + | "low_account_score" + | "low_device_score" + | "low_phone_number_score" + | "network_service_error" + | "outside_home_territory" + | "provisioning_cardholder_mismatch" + | "provisioning_device_and_cardholder_mismatch" + | "provisioning_device_mismatch" + | "same_device_no_prior_authentication" + | "same_device_successful_prior_authentication" + | "software_update" + | "suspicious_activity" + | "too_many_different_cardholders" + | "too_many_recent_attempts" + | "too_many_recent_tokens" + )[] + | undefined + suggested_decision?: ("approve" | "decline" | "require_auth") | undefined + suggested_decision_version?: string | undefined } export type t_issuing_personalization_design_carrier_text = { - footer_body?: string | null - footer_title?: string | null - header_body?: string | null - header_title?: string | null + footer_body?: (string | null) | undefined + footer_title?: (string | null) | undefined + header_body?: (string | null) | undefined + header_title?: (string | null) | undefined } export type t_issuing_personalization_design_preferences = { is_default: boolean - is_platform_default?: boolean | null + is_platform_default?: (boolean | null) | undefined } export type t_issuing_personalization_design_rejection_reasons = { card_logo?: | ( - | "geographic_location" - | "inappropriate" - | "network_name" - | "non_binary_image" - | "non_fiat_currency" - | "other" - | "other_entity" - | "promotional_material" - )[] - | null + | ( + | "geographic_location" + | "inappropriate" + | "network_name" + | "non_binary_image" + | "non_fiat_currency" + | "other" + | "other_entity" + | "promotional_material" + )[] + | null + ) + | undefined carrier_text?: | ( - | "geographic_location" - | "inappropriate" - | "network_name" - | "non_fiat_currency" - | "other" - | "other_entity" - | "promotional_material" - )[] - | null + | ( + | "geographic_location" + | "inappropriate" + | "network_name" + | "non_fiat_currency" + | "other" + | "other_entity" + | "promotional_material" + )[] + | null + ) + | undefined } export type t_issuing_physical_bundle_features = { @@ -6208,99 +6569,105 @@ export type t_issuing_physical_bundle_features = { } export type t_issuing_transaction_amount_details = { - atm_fee?: number | null - cashback_amount?: number | null + atm_fee?: (number | null) | undefined + cashback_amount?: (number | null) | undefined } export type t_issuing_transaction_fleet_cardholder_prompt_data = { - driver_id?: string | null - odometer?: number | null - unspecified_id?: string | null - user_id?: string | null - vehicle_number?: string | null + driver_id?: (string | null) | undefined + odometer?: (number | null) | undefined + unspecified_id?: (string | null) | undefined + user_id?: (string | null) | undefined + vehicle_number?: (string | null) | undefined } export type t_issuing_transaction_fleet_data = { - cardholder_prompt_data?: t_issuing_transaction_fleet_cardholder_prompt_data | null - purchase_type?: string | null - reported_breakdown?: t_issuing_transaction_fleet_reported_breakdown | null - service_type?: string | null + cardholder_prompt_data?: + | (t_issuing_transaction_fleet_cardholder_prompt_data | null) + | undefined + purchase_type?: (string | null) | undefined + reported_breakdown?: + | (t_issuing_transaction_fleet_reported_breakdown | null) + | undefined + service_type?: (string | null) | undefined } export type t_issuing_transaction_fleet_fuel_price_data = { - gross_amount_decimal?: string | null + gross_amount_decimal?: (string | null) | undefined } export type t_issuing_transaction_fleet_non_fuel_price_data = { - gross_amount_decimal?: string | null + gross_amount_decimal?: (string | null) | undefined } export type t_issuing_transaction_fleet_reported_breakdown = { - fuel?: t_issuing_transaction_fleet_fuel_price_data | null - non_fuel?: t_issuing_transaction_fleet_non_fuel_price_data | null - tax?: t_issuing_transaction_fleet_tax_data | null + fuel?: (t_issuing_transaction_fleet_fuel_price_data | null) | undefined + non_fuel?: + | (t_issuing_transaction_fleet_non_fuel_price_data | null) + | undefined + tax?: (t_issuing_transaction_fleet_tax_data | null) | undefined } export type t_issuing_transaction_fleet_tax_data = { - local_amount_decimal?: string | null - national_amount_decimal?: string | null + local_amount_decimal?: (string | null) | undefined + national_amount_decimal?: (string | null) | undefined } export type t_issuing_transaction_flight_data = { - departure_at?: number | null - passenger_name?: string | null - refundable?: boolean | null - segments?: t_issuing_transaction_flight_data_leg[] | null - travel_agency?: string | null + departure_at?: (number | null) | undefined + passenger_name?: (string | null) | undefined + refundable?: (boolean | null) | undefined + segments?: (t_issuing_transaction_flight_data_leg[] | null) | undefined + travel_agency?: (string | null) | undefined } export type t_issuing_transaction_flight_data_leg = { - arrival_airport_code?: string | null - carrier?: string | null - departure_airport_code?: string | null - flight_number?: string | null - service_class?: string | null - stopover_allowed?: boolean | null + arrival_airport_code?: (string | null) | undefined + carrier?: (string | null) | undefined + departure_airport_code?: (string | null) | undefined + flight_number?: (string | null) | undefined + service_class?: (string | null) | undefined + stopover_allowed?: (boolean | null) | undefined } export type t_issuing_transaction_fuel_data = { - industry_product_code?: string | null - quantity_decimal?: string | null + industry_product_code?: (string | null) | undefined + quantity_decimal?: (string | null) | undefined type: string unit: string unit_cost_decimal: string } export type t_issuing_transaction_lodging_data = { - check_in_at?: number | null - nights?: number | null + check_in_at?: (number | null) | undefined + nights?: (number | null) | undefined } export type t_issuing_transaction_network_data = { - authorization_code?: string | null - processing_date?: string | null - transaction_id?: string | null + authorization_code?: (string | null) | undefined + processing_date?: (string | null) | undefined + transaction_id?: (string | null) | undefined } export type t_issuing_transaction_purchase_details = { - fleet?: t_issuing_transaction_fleet_data | null - flight?: t_issuing_transaction_flight_data | null - fuel?: t_issuing_transaction_fuel_data | null - lodging?: t_issuing_transaction_lodging_data | null - receipt?: t_issuing_transaction_receipt_data[] | null - reference?: string | null + fleet?: (t_issuing_transaction_fleet_data | null) | undefined + flight?: (t_issuing_transaction_flight_data | null) | undefined + fuel?: (t_issuing_transaction_fuel_data | null) | undefined + lodging?: (t_issuing_transaction_lodging_data | null) | undefined + receipt?: (t_issuing_transaction_receipt_data[] | null) | undefined + reference?: (string | null) | undefined } export type t_issuing_transaction_receipt_data = { - description?: string | null - quantity?: number | null - total?: number | null - unit_cost?: number | null + description?: (string | null) | undefined + quantity?: (number | null) | undefined + total?: (number | null) | undefined + unit_cost?: (number | null) | undefined } export type t_issuing_transaction_treasury = { - received_credit?: string | null - received_debit?: string | null + received_credit?: (string | null) | undefined + received_debit?: (string | null) | undefined } export type t_item = { @@ -6309,65 +6676,68 @@ export type t_item = { amount_tax: number amount_total: number currency: string - description?: string - discounts?: t_line_items_discount_amount[] + description?: string | undefined + discounts?: t_line_items_discount_amount[] | undefined id: string object: "item" - price?: t_price | null - quantity?: number | null - taxes?: t_line_items_tax_amount[] + price?: (t_price | null) | undefined + quantity?: (number | null) | undefined + taxes?: t_line_items_tax_amount[] | undefined } export type t_klarna_address = { - country?: string | null + country?: (string | null) | undefined } export type t_klarna_payer_details = { - address?: t_klarna_address | null + address?: (t_klarna_address | null) | undefined } export type t_legal_entity_company = { - address?: t_address - address_kana?: t_legal_entity_japan_address | null - address_kanji?: t_legal_entity_japan_address | null - directors_provided?: boolean - executives_provided?: boolean - export_license_id?: string - export_purpose_code?: string - name?: string | null - name_kana?: string | null - name_kanji?: string | null - owners_provided?: boolean - ownership_declaration?: t_legal_entity_ubo_declaration | null - phone?: string | null + address?: t_address | undefined + address_kana?: (t_legal_entity_japan_address | null) | undefined + address_kanji?: (t_legal_entity_japan_address | null) | undefined + directors_provided?: boolean | undefined + executives_provided?: boolean | undefined + export_license_id?: string | undefined + export_purpose_code?: string | undefined + name?: (string | null) | undefined + name_kana?: (string | null) | undefined + name_kanji?: (string | null) | undefined + owners_provided?: boolean | undefined + ownership_declaration?: (t_legal_entity_ubo_declaration | null) | undefined + phone?: (string | null) | undefined structure?: - | "free_zone_establishment" - | "free_zone_llc" - | "government_instrumentality" - | "governmental_unit" - | "incorporated_non_profit" - | "incorporated_partnership" - | "limited_liability_partnership" - | "llc" - | "multi_member_llc" - | "private_company" - | "private_corporation" - | "private_partnership" - | "public_company" - | "public_corporation" - | "public_partnership" - | "registered_charity" - | "single_member_llc" - | "sole_establishment" - | "sole_proprietorship" - | "tax_exempt_government_instrumentality" - | "unincorporated_association" - | "unincorporated_non_profit" - | "unincorporated_partnership" - tax_id_provided?: boolean - tax_id_registrar?: string - vat_id_provided?: boolean - verification?: t_legal_entity_company_verification | null + | ( + | "free_zone_establishment" + | "free_zone_llc" + | "government_instrumentality" + | "governmental_unit" + | "incorporated_non_profit" + | "incorporated_partnership" + | "limited_liability_partnership" + | "llc" + | "multi_member_llc" + | "private_company" + | "private_corporation" + | "private_partnership" + | "public_company" + | "public_corporation" + | "public_partnership" + | "registered_charity" + | "single_member_llc" + | "sole_establishment" + | "sole_proprietorship" + | "tax_exempt_government_instrumentality" + | "unincorporated_association" + | "unincorporated_non_profit" + | "unincorporated_partnership" + ) + | undefined + tax_id_provided?: boolean | undefined + tax_id_registrar?: string | undefined + vat_id_provided?: boolean | undefined + verification?: (t_legal_entity_company_verification | null) | undefined } export type t_legal_entity_company_verification = { @@ -6375,77 +6745,83 @@ export type t_legal_entity_company_verification = { } export type t_legal_entity_company_verification_document = { - back?: string | t_file | null - details?: string | null - details_code?: string | null - front?: string | t_file | null + back?: (string | t_file | null) | undefined + details?: (string | null) | undefined + details_code?: (string | null) | undefined + front?: (string | t_file | null) | undefined } export type t_legal_entity_dob = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_legal_entity_japan_address = { - city?: string | null - country?: string | null - line1?: string | null - line2?: string | null - postal_code?: string | null - state?: string | null - town?: string | null + city?: (string | null) | undefined + country?: (string | null) | undefined + line1?: (string | null) | undefined + line2?: (string | null) | undefined + postal_code?: (string | null) | undefined + state?: (string | null) | undefined + town?: (string | null) | undefined } export type t_legal_entity_person_verification = { - additional_document?: t_legal_entity_person_verification_document | null - details?: string | null - details_code?: string | null - document?: t_legal_entity_person_verification_document + additional_document?: + | (t_legal_entity_person_verification_document | null) + | undefined + details?: (string | null) | undefined + details_code?: (string | null) | undefined + document?: t_legal_entity_person_verification_document | undefined status: string } export type t_legal_entity_person_verification_document = { - back?: string | t_file | null - details?: string | null - details_code?: string | null - front?: string | t_file | null + back?: (string | t_file | null) | undefined + details?: (string | null) | undefined + details_code?: (string | null) | undefined + front?: (string | t_file | null) | undefined } export type t_legal_entity_ubo_declaration = { - date?: number | null - ip?: string | null - user_agent?: string | null + date?: (number | null) | undefined + ip?: (string | null) | undefined + user_agent?: (string | null) | undefined } export type t_line_item = { amount: number - amount_excluding_tax?: number | null + amount_excluding_tax?: (number | null) | undefined currency: string - description?: string | null - discount_amounts?: t_discounts_resource_discount_amount[] | null + description?: (string | null) | undefined + discount_amounts?: (t_discounts_resource_discount_amount[] | null) | undefined discountable: boolean discounts: (string | t_discount)[] id: string - invoice?: string | null - invoice_item?: string | t_invoiceitem + invoice?: (string | null) | undefined + invoice_item?: (string | t_invoiceitem) | undefined livemode: boolean metadata: { [key: string]: string | undefined } object: "line_item" period: t_invoice_line_item_period - pretax_credit_amounts?: t_invoices_resource_pretax_credit_amount[] | null - price?: t_price | null + pretax_credit_amounts?: + | (t_invoices_resource_pretax_credit_amount[] | null) + | undefined + price?: (t_price | null) | undefined proration: boolean - proration_details?: t_invoices_resource_line_items_proration_details | null - quantity?: number | null - subscription?: string | t_subscription | null - subscription_item?: string | t_subscription_item + proration_details?: + | (t_invoices_resource_line_items_proration_details | null) + | undefined + quantity?: (number | null) | undefined + subscription?: (string | t_subscription | null) | undefined + subscription_item?: (string | t_subscription_item) | undefined tax_amounts: t_invoice_tax_amount[] tax_rates: t_tax_rate[] type: "invoiceitem" | "subscription" - unit_amount_excluding_tax?: string | null + unit_amount_excluding_tax?: (string | null) | undefined } export type t_line_items_discount_amount = { @@ -6457,30 +6833,37 @@ export type t_line_items_tax_amount = { amount: number rate: t_tax_rate taxability_reason?: - | "customer_exempt" - | "not_collecting" - | "not_subject_to_tax" - | "not_supported" - | "portion_product_exempt" - | "portion_reduced_rated" - | "portion_standard_rated" - | "product_exempt" - | "product_exempt_holiday" - | "proportionally_rated" - | "reduced_rated" - | "reverse_charge" - | "standard_rated" - | "taxable_basis_reduced" - | "zero_rated" - | null - taxable_amount?: number | null + | ( + | "customer_exempt" + | "not_collecting" + | "not_subject_to_tax" + | "not_supported" + | "portion_product_exempt" + | "portion_reduced_rated" + | "portion_standard_rated" + | "product_exempt" + | "product_exempt_holiday" + | "proportionally_rated" + | "reduced_rated" + | "reverse_charge" + | "standard_rated" + | "taxable_basis_reduced" + | "zero_rated" + | null + ) + | undefined + taxable_amount?: (number | null) | undefined } export type t_linked_account_options_us_bank_account = { - filters?: t_payment_flows_private_payment_methods_us_bank_account_linked_account_options_filters - permissions?: ("balances" | "ownership" | "payment_method" | "transactions")[] - prefetch?: ("balances" | "ownership" | "transactions")[] | null - return_url?: string + filters?: + | t_payment_flows_private_payment_methods_us_bank_account_linked_account_options_filters + | undefined + permissions?: + | ("balances" | "ownership" | "payment_method" | "transactions")[] + | undefined + prefetch?: (("balances" | "ownership" | "transactions")[] | null) | undefined + return_url?: string | undefined } export type t_login_link = { @@ -6493,19 +6876,19 @@ export type t_mandate = { customer_acceptance: t_customer_acceptance id: string livemode: boolean - multi_use?: t_mandate_multi_use + multi_use?: t_mandate_multi_use | undefined object: "mandate" - on_behalf_of?: string + on_behalf_of?: string | undefined payment_method: string | t_payment_method payment_method_details: t_mandate_payment_method_details - single_use?: t_mandate_single_use + single_use?: t_mandate_single_use | undefined status: "active" | "inactive" | "pending" type: "multi_use" | "single_use" } export type t_mandate_acss_debit = { - default_for?: ("invoice" | "subscription")[] - interval_description?: string | null + default_for?: ("invoice" | "subscription")[] | undefined + interval_description?: (string | null) | undefined payment_schedule: "combined" | "interval" | "sporadic" transaction_type: "business" | "personal" } @@ -6520,12 +6903,15 @@ export type t_mandate_bacs_debit = { network_status: "accepted" | "pending" | "refused" | "revoked" reference: string revocation_reason?: - | "account_closed" - | "bank_account_restricted" - | "bank_ownership_changed" - | "could_not_process" - | "debit_not_authorized" - | null + | ( + | "account_closed" + | "bank_account_restricted" + | "bank_ownership_changed" + | "could_not_process" + | "debit_not_authorized" + | null + ) + | undefined url: string } @@ -6540,25 +6926,25 @@ export type t_mandate_link = EmptyObject export type t_mandate_multi_use = EmptyObject export type t_mandate_payment_method_details = { - acss_debit?: t_mandate_acss_debit - amazon_pay?: t_mandate_amazon_pay - au_becs_debit?: t_mandate_au_becs_debit - bacs_debit?: t_mandate_bacs_debit - card?: t_card_mandate_payment_method_details - cashapp?: t_mandate_cashapp - kakao_pay?: t_mandate_kakao_pay - kr_card?: t_mandate_kr_card - link?: t_mandate_link - paypal?: t_mandate_paypal - revolut_pay?: t_mandate_revolut_pay - sepa_debit?: t_mandate_sepa_debit + acss_debit?: t_mandate_acss_debit | undefined + amazon_pay?: t_mandate_amazon_pay | undefined + au_becs_debit?: t_mandate_au_becs_debit | undefined + bacs_debit?: t_mandate_bacs_debit | undefined + card?: t_card_mandate_payment_method_details | undefined + cashapp?: t_mandate_cashapp | undefined + kakao_pay?: t_mandate_kakao_pay | undefined + kr_card?: t_mandate_kr_card | undefined + link?: t_mandate_link | undefined + paypal?: t_mandate_paypal | undefined + revolut_pay?: t_mandate_revolut_pay | undefined + sepa_debit?: t_mandate_sepa_debit | undefined type: string - us_bank_account?: t_mandate_us_bank_account + us_bank_account?: t_mandate_us_bank_account | undefined } export type t_mandate_paypal = { - billing_agreement_id?: string | null - payer_id?: string | null + billing_agreement_id?: (string | null) | undefined + payer_id?: (string | null) | undefined } export type t_mandate_revolut_pay = EmptyObject @@ -6574,36 +6960,40 @@ export type t_mandate_single_use = { } export type t_mandate_us_bank_account = { - collection_method?: "paper" + collection_method?: "paper" | undefined } export type t_networks = { available: string[] - preferred?: string | null + preferred?: (string | null) | undefined } export type t_notification_event_data = { object: EmptyObject - previous_attributes?: EmptyObject + previous_attributes?: EmptyObject | undefined } export type t_notification_event_request = { - id?: string | null - idempotency_key?: string | null + id?: (string | null) | undefined + idempotency_key?: (string | null) | undefined } export type t_offline_acceptance = EmptyObject export type t_online_acceptance = { - ip_address?: string | null - user_agent?: string | null + ip_address?: (string | null) | undefined + user_agent?: (string | null) | undefined } export type t_outbound_payments_payment_method_details = { billing_details: t_treasury_shared_resource_billing_details - financial_account?: t_outbound_payments_payment_method_details_financial_account + financial_account?: + | t_outbound_payments_payment_method_details_financial_account + | undefined type: "financial_account" | "us_bank_account" - us_bank_account?: t_outbound_payments_payment_method_details_us_bank_account + us_bank_account?: + | t_outbound_payments_payment_method_details_us_bank_account + | undefined } export type t_outbound_payments_payment_method_details_financial_account = { @@ -6612,31 +7002,33 @@ export type t_outbound_payments_payment_method_details_financial_account = { } export type t_outbound_payments_payment_method_details_us_bank_account = { - account_holder_type?: "company" | "individual" | null - account_type?: "checking" | "savings" | null - bank_name?: string | null - fingerprint?: string | null - last4?: string | null - mandate?: string | t_mandate + account_holder_type?: ("company" | "individual" | null) | undefined + account_type?: ("checking" | "savings" | null) | undefined + bank_name?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: (string | t_mandate) | undefined network: "ach" | "us_domestic_wire" - routing_number?: string | null + routing_number?: (string | null) | undefined } export type t_outbound_transfers_payment_method_details = { billing_details: t_treasury_shared_resource_billing_details type: "us_bank_account" - us_bank_account?: t_outbound_transfers_payment_method_details_us_bank_account + us_bank_account?: + | t_outbound_transfers_payment_method_details_us_bank_account + | undefined } export type t_outbound_transfers_payment_method_details_us_bank_account = { - account_holder_type?: "company" | "individual" | null - account_type?: "checking" | "savings" | null - bank_name?: string | null - fingerprint?: string | null - last4?: string | null - mandate?: string | t_mandate + account_holder_type?: ("company" | "individual" | null) | undefined + account_type?: ("checking" | "savings" | null) | undefined + bank_name?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: (string | t_mandate) | undefined network: "ach" | "us_domestic_wire" - routing_number?: string | null + routing_number?: (string | null) | undefined } export type t_package_dimensions = { @@ -6647,38 +7039,38 @@ export type t_package_dimensions = { } export type t_payment_flows_amount_details = { - tip?: t_payment_flows_amount_details_client_resource_tip + tip?: t_payment_flows_amount_details_client_resource_tip | undefined } export type t_payment_flows_amount_details_client = { - tip?: t_payment_flows_amount_details_client_resource_tip + tip?: t_payment_flows_amount_details_client_resource_tip | undefined } export type t_payment_flows_amount_details_client_resource_tip = { - amount?: number + amount?: number | undefined } export type t_payment_flows_automatic_payment_methods_payment_intent = { - allow_redirects?: "always" | "never" + allow_redirects?: ("always" | "never") | undefined enabled: boolean } export type t_payment_flows_automatic_payment_methods_setup_intent = { - allow_redirects?: "always" | "never" - enabled?: boolean | null + allow_redirects?: ("always" | "never") | undefined + enabled?: (boolean | null) | undefined } export type t_payment_flows_installment_options = { enabled: boolean - plan?: t_payment_method_details_card_installments_plan + plan?: t_payment_method_details_card_installments_plan | undefined } export type t_payment_flows_private_payment_methods_alipay = EmptyObject export type t_payment_flows_private_payment_methods_alipay_details = { - buyer_id?: string - fingerprint?: string | null - transaction_id?: string | null + buyer_id?: string | undefined + fingerprint?: (string | null) | undefined + transaction_id?: (string | null) | undefined } export type t_payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization = @@ -6709,85 +7101,96 @@ export type t_payment_flows_private_payment_methods_card_present_common_wallet = export type t_payment_flows_private_payment_methods_kakao_pay_payment_method_options = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_flows_private_payment_methods_klarna_dob = { - day?: number | null - month?: number | null - year?: number | null + day?: (number | null) | undefined + month?: (number | null) | undefined + year?: (number | null) | undefined } export type t_payment_flows_private_payment_methods_naver_pay_payment_method_options = { - capture_method?: "manual" + capture_method?: "manual" | undefined } export type t_payment_flows_private_payment_methods_payco_payment_method_options = { - capture_method?: "manual" + capture_method?: "manual" | undefined } export type t_payment_flows_private_payment_methods_samsung_pay_payment_method_options = { - capture_method?: "manual" + capture_method?: "manual" | undefined } export type t_payment_flows_private_payment_methods_us_bank_account_linked_account_options_filters = { - account_subcategories?: ("checking" | "savings")[] + account_subcategories?: ("checking" | "savings")[] | undefined } export type t_payment_intent = { amount: number - amount_capturable?: number + amount_capturable?: number | undefined amount_details?: - | t_payment_flows_amount_details - | t_payment_flows_amount_details_client - amount_received?: number - application?: string | t_application | null - application_fee_amount?: number | null - automatic_payment_methods?: t_payment_flows_automatic_payment_methods_payment_intent | null - canceled_at?: number | null + | (t_payment_flows_amount_details | t_payment_flows_amount_details_client) + | undefined + amount_received?: number | undefined + application?: (string | t_application | null) | undefined + application_fee_amount?: (number | null) | undefined + automatic_payment_methods?: + | (t_payment_flows_automatic_payment_methods_payment_intent | null) + | undefined + canceled_at?: (number | null) | undefined cancellation_reason?: - | "abandoned" - | "automatic" - | "duplicate" - | "failed_invoice" - | "fraudulent" - | "requested_by_customer" - | "void_invoice" - | null + | ( + | "abandoned" + | "automatic" + | "duplicate" + | "failed_invoice" + | "fraudulent" + | "requested_by_customer" + | "void_invoice" + | null + ) + | undefined capture_method: "automatic" | "automatic_async" | "manual" - client_secret?: string | null + client_secret?: (string | null) | undefined confirmation_method: "automatic" | "manual" created: number currency: string - customer?: string | t_customer | t_deleted_customer | null - description?: string | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + description?: (string | null) | undefined id: string - invoice?: string | t_invoice | null - last_payment_error?: t_api_errors | null - latest_charge?: string | t_charge | null + invoice?: (string | t_invoice | null) | undefined + last_payment_error?: (t_api_errors | null) | undefined + latest_charge?: (string | t_charge | null) | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } - next_action?: t_payment_intent_next_action | null + metadata?: + | { + [key: string]: string | undefined + } + | undefined + next_action?: (t_payment_intent_next_action | null) | undefined object: "payment_intent" - on_behalf_of?: string | t_account | null - payment_method?: string | t_payment_method | null - payment_method_configuration_details?: t_payment_method_config_biz_payment_method_configuration_details | null - payment_method_options?: t_payment_intent_payment_method_options | null + on_behalf_of?: (string | t_account | null) | undefined + payment_method?: (string | t_payment_method | null) | undefined + payment_method_configuration_details?: + | (t_payment_method_config_biz_payment_method_configuration_details | null) + | undefined + payment_method_options?: + | (t_payment_intent_payment_method_options | null) + | undefined payment_method_types: string[] - processing?: t_payment_intent_processing | null - receipt_email?: string | null - review?: string | t_review | null - setup_future_usage?: "off_session" | "on_session" | null - shipping?: t_shipping | null - statement_descriptor?: string | null - statement_descriptor_suffix?: string | null + processing?: (t_payment_intent_processing | null) | undefined + receipt_email?: (string | null) | undefined + review?: (string | t_review | null) | undefined + setup_future_usage?: ("off_session" | "on_session" | null) | undefined + shipping?: (t_shipping | null) | undefined + statement_descriptor?: (string | null) | undefined + statement_descriptor_suffix?: (string | null) | undefined status: | "canceled" | "processing" @@ -6796,53 +7199,83 @@ export type t_payment_intent = { | "requires_confirmation" | "requires_payment_method" | "succeeded" - transfer_data?: t_transfer_data | null - transfer_group?: string | null + transfer_data?: (t_transfer_data | null) | undefined + transfer_group?: (string | null) | undefined } export type t_payment_intent_card_processing = { - customer_notification?: t_payment_intent_processing_customer_notification + customer_notification?: + | t_payment_intent_processing_customer_notification + | undefined } export type t_payment_intent_next_action = { - alipay_handle_redirect?: t_payment_intent_next_action_alipay_handle_redirect - boleto_display_details?: t_payment_intent_next_action_boleto - card_await_notification?: t_payment_intent_next_action_card_await_notification - cashapp_handle_redirect_or_display_qr_code?: t_payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code - display_bank_transfer_instructions?: t_payment_intent_next_action_display_bank_transfer_instructions - konbini_display_details?: t_payment_intent_next_action_konbini - multibanco_display_details?: t_payment_intent_next_action_display_multibanco_details - oxxo_display_details?: t_payment_intent_next_action_display_oxxo_details - paynow_display_qr_code?: t_payment_intent_next_action_paynow_display_qr_code - pix_display_qr_code?: t_payment_intent_next_action_pix_display_qr_code - promptpay_display_qr_code?: t_payment_intent_next_action_promptpay_display_qr_code - redirect_to_url?: t_payment_intent_next_action_redirect_to_url - swish_handle_redirect_or_display_qr_code?: t_payment_intent_next_action_swish_handle_redirect_or_display_qr_code + alipay_handle_redirect?: + | t_payment_intent_next_action_alipay_handle_redirect + | undefined + boleto_display_details?: t_payment_intent_next_action_boleto | undefined + card_await_notification?: + | t_payment_intent_next_action_card_await_notification + | undefined + cashapp_handle_redirect_or_display_qr_code?: + | t_payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code + | undefined + display_bank_transfer_instructions?: + | t_payment_intent_next_action_display_bank_transfer_instructions + | undefined + konbini_display_details?: t_payment_intent_next_action_konbini | undefined + multibanco_display_details?: + | t_payment_intent_next_action_display_multibanco_details + | undefined + oxxo_display_details?: + | t_payment_intent_next_action_display_oxxo_details + | undefined + paynow_display_qr_code?: + | t_payment_intent_next_action_paynow_display_qr_code + | undefined + pix_display_qr_code?: + | t_payment_intent_next_action_pix_display_qr_code + | undefined + promptpay_display_qr_code?: + | t_payment_intent_next_action_promptpay_display_qr_code + | undefined + redirect_to_url?: t_payment_intent_next_action_redirect_to_url | undefined + swish_handle_redirect_or_display_qr_code?: + | t_payment_intent_next_action_swish_handle_redirect_or_display_qr_code + | undefined type: string - use_stripe_sdk?: EmptyObject - verify_with_microdeposits?: t_payment_intent_next_action_verify_with_microdeposits - wechat_pay_display_qr_code?: t_payment_intent_next_action_wechat_pay_display_qr_code - wechat_pay_redirect_to_android_app?: t_payment_intent_next_action_wechat_pay_redirect_to_android_app - wechat_pay_redirect_to_ios_app?: t_payment_intent_next_action_wechat_pay_redirect_to_ios_app + use_stripe_sdk?: EmptyObject | undefined + verify_with_microdeposits?: + | t_payment_intent_next_action_verify_with_microdeposits + | undefined + wechat_pay_display_qr_code?: + | t_payment_intent_next_action_wechat_pay_display_qr_code + | undefined + wechat_pay_redirect_to_android_app?: + | t_payment_intent_next_action_wechat_pay_redirect_to_android_app + | undefined + wechat_pay_redirect_to_ios_app?: + | t_payment_intent_next_action_wechat_pay_redirect_to_ios_app + | undefined } export type t_payment_intent_next_action_alipay_handle_redirect = { - native_data?: string | null - native_url?: string | null - return_url?: string | null - url?: string | null + native_data?: (string | null) | undefined + native_url?: (string | null) | undefined + return_url?: (string | null) | undefined + url?: (string | null) | undefined } export type t_payment_intent_next_action_boleto = { - expires_at?: number | null - hosted_voucher_url?: string | null - number?: string | null - pdf?: string | null + expires_at?: (number | null) | undefined + hosted_voucher_url?: (string | null) | undefined + number?: (string | null) | undefined + pdf?: (string | null) | undefined } export type t_payment_intent_next_action_card_await_notification = { - charge_attempt_at?: number | null - customer_approval_required?: boolean | null + charge_attempt_at?: (number | null) | undefined + customer_approval_required?: (boolean | null) | undefined } export type t_payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code = @@ -6859,11 +7292,13 @@ export type t_payment_intent_next_action_cashapp_qr_code = { } export type t_payment_intent_next_action_display_bank_transfer_instructions = { - amount_remaining?: number | null - currency?: string | null - financial_addresses?: t_funding_instructions_bank_transfer_financial_address[] - hosted_instructions_url?: string | null - reference?: string | null + amount_remaining?: (number | null) | undefined + currency?: (string | null) | undefined + financial_addresses?: + | t_funding_instructions_bank_transfer_financial_address[] + | undefined + hosted_instructions_url?: (string | null) | undefined + reference?: (string | null) | undefined type: | "eu_bank_transfer" | "gb_bank_transfer" @@ -6873,64 +7308,68 @@ export type t_payment_intent_next_action_display_bank_transfer_instructions = { } export type t_payment_intent_next_action_display_multibanco_details = { - entity?: string | null - expires_at?: number | null - hosted_voucher_url?: string | null - reference?: string | null + entity?: (string | null) | undefined + expires_at?: (number | null) | undefined + hosted_voucher_url?: (string | null) | undefined + reference?: (string | null) | undefined } export type t_payment_intent_next_action_display_oxxo_details = { - expires_after?: number | null - hosted_voucher_url?: string | null - number?: string | null + expires_after?: (number | null) | undefined + hosted_voucher_url?: (string | null) | undefined + number?: (string | null) | undefined } export type t_payment_intent_next_action_konbini = { expires_at: number - hosted_voucher_url?: string | null + hosted_voucher_url?: (string | null) | undefined stores: t_payment_intent_next_action_konbini_stores } export type t_payment_intent_next_action_konbini_familymart = { - confirmation_number?: string + confirmation_number?: string | undefined payment_code: string } export type t_payment_intent_next_action_konbini_lawson = { - confirmation_number?: string + confirmation_number?: string | undefined payment_code: string } export type t_payment_intent_next_action_konbini_ministop = { - confirmation_number?: string + confirmation_number?: string | undefined payment_code: string } export type t_payment_intent_next_action_konbini_seicomart = { - confirmation_number?: string + confirmation_number?: string | undefined payment_code: string } export type t_payment_intent_next_action_konbini_stores = { - familymart?: t_payment_intent_next_action_konbini_familymart | null - lawson?: t_payment_intent_next_action_konbini_lawson | null - ministop?: t_payment_intent_next_action_konbini_ministop | null - seicomart?: t_payment_intent_next_action_konbini_seicomart | null + familymart?: + | (t_payment_intent_next_action_konbini_familymart | null) + | undefined + lawson?: (t_payment_intent_next_action_konbini_lawson | null) | undefined + ministop?: (t_payment_intent_next_action_konbini_ministop | null) | undefined + seicomart?: + | (t_payment_intent_next_action_konbini_seicomart | null) + | undefined } export type t_payment_intent_next_action_paynow_display_qr_code = { data: string - hosted_instructions_url?: string | null + hosted_instructions_url?: (string | null) | undefined image_url_png: string image_url_svg: string } export type t_payment_intent_next_action_pix_display_qr_code = { - data?: string - expires_at?: number - hosted_instructions_url?: string - image_url_png?: string - image_url_svg?: string + data?: string | undefined + expires_at?: number | undefined + hosted_instructions_url?: string | undefined + image_url_png?: string | undefined + image_url_svg?: string | undefined } export type t_payment_intent_next_action_promptpay_display_qr_code = { @@ -6941,8 +7380,8 @@ export type t_payment_intent_next_action_promptpay_display_qr_code = { } export type t_payment_intent_next_action_redirect_to_url = { - return_url?: string | null - url?: string | null + return_url?: (string | null) | undefined + url?: (string | null) | undefined } export type t_payment_intent_next_action_swish_handle_redirect_or_display_qr_code = @@ -6960,7 +7399,7 @@ export type t_payment_intent_next_action_swish_qr_code = { export type t_payment_intent_next_action_verify_with_microdeposits = { arrival_date: number hosted_verification_url: string - microdeposit_type?: "amounts" | "descriptor_code" | null + microdeposit_type?: ("amounts" | "descriptor_code" | null) | undefined } export type t_payment_intent_next_action_wechat_pay_display_qr_code = { @@ -6987,206 +7426,352 @@ export type t_payment_intent_next_action_wechat_pay_redirect_to_ios_app = { export type t_payment_intent_payment_method_options = { acss_debit?: - | t_payment_intent_payment_method_options_acss_debit - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_acss_debit + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined affirm?: - | t_payment_method_options_affirm - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_affirm + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined afterpay_clearpay?: - | t_payment_method_options_afterpay_clearpay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_afterpay_clearpay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined alipay?: - | t_payment_method_options_alipay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_alipay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined alma?: - | t_payment_method_options_alma - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_alma + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined amazon_pay?: - | t_payment_method_options_amazon_pay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_amazon_pay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined au_becs_debit?: - | t_payment_intent_payment_method_options_au_becs_debit - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_au_becs_debit + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined bacs_debit?: - | t_payment_intent_payment_method_options_bacs_debit - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_bacs_debit + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined bancontact?: - | t_payment_method_options_bancontact - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_bancontact + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined blik?: - | t_payment_intent_payment_method_options_blik - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_blik + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined boleto?: - | t_payment_method_options_boleto - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_boleto + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined card?: - | t_payment_intent_payment_method_options_card - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_card + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined card_present?: - | t_payment_method_options_card_present - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_card_present + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined cashapp?: - | t_payment_method_options_cashapp - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_cashapp + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined customer_balance?: - | t_payment_method_options_customer_balance - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_customer_balance + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined eps?: - | t_payment_intent_payment_method_options_eps - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_eps + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined fpx?: - | t_payment_method_options_fpx - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_fpx + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined giropay?: - | t_payment_method_options_giropay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_giropay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined grabpay?: - | t_payment_method_options_grabpay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_grabpay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined ideal?: - | t_payment_method_options_ideal - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_ideal + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined interac_present?: - | t_payment_method_options_interac_present - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_interac_present + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined kakao_pay?: - | t_payment_flows_private_payment_methods_kakao_pay_payment_method_options - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_flows_private_payment_methods_kakao_pay_payment_method_options + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined klarna?: - | t_payment_method_options_klarna - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_klarna + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined konbini?: - | t_payment_method_options_konbini - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_konbini + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined kr_card?: - | t_payment_method_options_kr_card - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_kr_card + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined link?: - | t_payment_intent_payment_method_options_link - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_link + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined mobilepay?: - | t_payment_intent_payment_method_options_mobilepay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_mobilepay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined multibanco?: - | t_payment_method_options_multibanco - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_multibanco + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined naver_pay?: - | t_payment_flows_private_payment_methods_naver_pay_payment_method_options - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_flows_private_payment_methods_naver_pay_payment_method_options + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined oxxo?: - | t_payment_method_options_oxxo - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_oxxo + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined p24?: - | t_payment_method_options_p24 - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_p24 + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined payco?: - | t_payment_flows_private_payment_methods_payco_payment_method_options - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_flows_private_payment_methods_payco_payment_method_options + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined paynow?: - | t_payment_method_options_paynow - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_paynow + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined paypal?: - | t_payment_method_options_paypal - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_paypal + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined pix?: - | t_payment_method_options_pix - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_pix + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined promptpay?: - | t_payment_method_options_promptpay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_promptpay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined revolut_pay?: - | t_payment_method_options_revolut_pay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_revolut_pay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined samsung_pay?: - | t_payment_flows_private_payment_methods_samsung_pay_payment_method_options - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_flows_private_payment_methods_samsung_pay_payment_method_options + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined sepa_debit?: - | t_payment_intent_payment_method_options_sepa_debit - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_sepa_debit + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined sofort?: - | t_payment_method_options_sofort - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_sofort + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined swish?: - | t_payment_intent_payment_method_options_swish - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_swish + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined twint?: - | t_payment_method_options_twint - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_twint + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined us_bank_account?: - | t_payment_intent_payment_method_options_us_bank_account - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_intent_payment_method_options_us_bank_account + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined wechat_pay?: - | t_payment_method_options_wechat_pay - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_wechat_pay + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined zip?: - | t_payment_method_options_zip - | t_payment_intent_type_specific_payment_method_options_client + | ( + | t_payment_method_options_zip + | t_payment_intent_type_specific_payment_method_options_client + ) + | undefined } export type t_payment_intent_payment_method_options_acss_debit = { - mandate_options?: t_payment_intent_payment_method_options_mandate_options_acss_debit - setup_future_usage?: "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" + mandate_options?: + | t_payment_intent_payment_method_options_mandate_options_acss_debit + | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_payment_intent_payment_method_options_au_becs_debit = { - setup_future_usage?: "none" | "off_session" | "on_session" + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_payment_intent_payment_method_options_bacs_debit = { - mandate_options?: t_payment_intent_payment_method_options_mandate_options_bacs_debit - setup_future_usage?: "none" | "off_session" | "on_session" + mandate_options?: + | t_payment_intent_payment_method_options_mandate_options_bacs_debit + | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_payment_intent_payment_method_options_blik = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_intent_payment_method_options_card = { - capture_method?: "manual" - installments?: t_payment_method_options_card_installments | null - mandate_options?: t_payment_method_options_card_mandate_options | null + capture_method?: "manual" | undefined + installments?: (t_payment_method_options_card_installments | null) | undefined + mandate_options?: + | (t_payment_method_options_card_mandate_options | null) + | undefined network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - | null - request_extended_authorization?: "if_available" | "never" - request_incremental_authorization?: "if_available" | "never" - request_multicapture?: "if_available" | "never" - request_overcapture?: "if_available" | "never" - request_three_d_secure?: "any" | "automatic" | "challenge" | null - require_cvc_recollection?: boolean - setup_future_usage?: "none" | "off_session" | "on_session" - statement_descriptor_suffix_kana?: string - statement_descriptor_suffix_kanji?: string + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + | null + ) + | undefined + request_extended_authorization?: ("if_available" | "never") | undefined + request_incremental_authorization?: ("if_available" | "never") | undefined + request_multicapture?: ("if_available" | "never") | undefined + request_overcapture?: ("if_available" | "never") | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge" | null) + | undefined + require_cvc_recollection?: boolean | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined + statement_descriptor_suffix_kana?: string | undefined + statement_descriptor_suffix_kanji?: string | undefined } export type t_payment_intent_payment_method_options_eps = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_intent_payment_method_options_link = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_intent_payment_method_options_mandate_options_acss_debit = { - custom_mandate_url?: string - interval_description?: string | null - payment_schedule?: "combined" | "interval" | "sporadic" | null - transaction_type?: "business" | "personal" | null + custom_mandate_url?: string | undefined + interval_description?: (string | null) | undefined + payment_schedule?: ("combined" | "interval" | "sporadic" | null) | undefined + transaction_type?: ("business" | "personal" | null) | undefined } export type t_payment_intent_payment_method_options_mandate_options_bacs_debit = @@ -7196,137 +7781,160 @@ export type t_payment_intent_payment_method_options_mandate_options_sepa_debit = EmptyObject export type t_payment_intent_payment_method_options_mobilepay = { - capture_method?: "manual" - setup_future_usage?: "none" + capture_method?: "manual" | undefined + setup_future_usage?: "none" | undefined } export type t_payment_intent_payment_method_options_sepa_debit = { - mandate_options?: t_payment_intent_payment_method_options_mandate_options_sepa_debit - setup_future_usage?: "none" | "off_session" | "on_session" + mandate_options?: + | t_payment_intent_payment_method_options_mandate_options_sepa_debit + | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_payment_intent_payment_method_options_swish = { - reference?: string | null - setup_future_usage?: "none" + reference?: (string | null) | undefined + setup_future_usage?: "none" | undefined } export type t_payment_intent_payment_method_options_us_bank_account = { - financial_connections?: t_linked_account_options_us_bank_account - mandate_options?: t_payment_method_options_us_bank_account_mandate_options - preferred_settlement_speed?: "fastest" | "standard" - setup_future_usage?: "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" + financial_connections?: t_linked_account_options_us_bank_account | undefined + mandate_options?: + | t_payment_method_options_us_bank_account_mandate_options + | undefined + preferred_settlement_speed?: ("fastest" | "standard") | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_payment_intent_processing = { - card?: t_payment_intent_card_processing + card?: t_payment_intent_card_processing | undefined type: "card" } export type t_payment_intent_processing_customer_notification = { - approval_requested?: boolean | null - completes_at?: number | null + approval_requested?: (boolean | null) | undefined + completes_at?: (number | null) | undefined } export type t_payment_intent_type_specific_payment_method_options_client = { - capture_method?: "manual" | "manual_preferred" - installments?: t_payment_flows_installment_options - request_incremental_authorization_support?: boolean - require_cvc_recollection?: boolean - routing?: t_payment_method_options_card_present_routing - setup_future_usage?: "none" | "off_session" | "on_session" - verification_method?: "automatic" | "instant" | "microdeposits" + capture_method?: ("manual" | "manual_preferred") | undefined + installments?: t_payment_flows_installment_options | undefined + request_incremental_authorization_support?: boolean | undefined + require_cvc_recollection?: boolean | undefined + routing?: t_payment_method_options_card_present_routing | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_payment_link = { active: boolean after_completion: t_payment_links_resource_after_completion allow_promotion_codes: boolean - application?: string | t_application | t_deleted_application | null - application_fee_amount?: number | null - application_fee_percent?: number | null + application?: + | (string | t_application | t_deleted_application | null) + | undefined + application_fee_amount?: (number | null) | undefined + application_fee_percent?: (number | null) | undefined automatic_tax: t_payment_links_resource_automatic_tax billing_address_collection: "auto" | "required" - consent_collection?: t_payment_links_resource_consent_collection | null + consent_collection?: + | (t_payment_links_resource_consent_collection | null) + | undefined currency: string custom_fields: t_payment_links_resource_custom_fields[] custom_text: t_payment_links_resource_custom_text customer_creation: "always" | "if_required" id: string - inactive_message?: string | null - invoice_creation?: t_payment_links_resource_invoice_creation | null - line_items?: { - data: t_item[] - has_more: boolean - object: "list" - url: string - } + inactive_message?: (string | null) | undefined + invoice_creation?: + | (t_payment_links_resource_invoice_creation | null) + | undefined + line_items?: + | { + data: t_item[] + has_more: boolean + object: "list" + url: string + } + | undefined livemode: boolean metadata: { [key: string]: string | undefined } object: "payment_link" - on_behalf_of?: string | t_account | null - payment_intent_data?: t_payment_links_resource_payment_intent_data | null + on_behalf_of?: (string | t_account | null) | undefined + payment_intent_data?: + | (t_payment_links_resource_payment_intent_data | null) + | undefined payment_method_collection: "always" | "if_required" payment_method_types?: | ( - | "affirm" - | "afterpay_clearpay" - | "alipay" - | "alma" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "blik" - | "boleto" - | "card" - | "cashapp" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "klarna" - | "konbini" - | "link" - | "mobilepay" - | "multibanco" - | "oxxo" - | "p24" - | "paynow" - | "paypal" - | "pix" - | "promptpay" - | "sepa_debit" - | "sofort" - | "swish" - | "twint" - | "us_bank_account" - | "wechat_pay" - | "zip" - )[] - | null + | ( + | "affirm" + | "afterpay_clearpay" + | "alipay" + | "alma" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "blik" + | "boleto" + | "card" + | "cashapp" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "klarna" + | "konbini" + | "link" + | "mobilepay" + | "multibanco" + | "oxxo" + | "p24" + | "paynow" + | "paypal" + | "pix" + | "promptpay" + | "sepa_debit" + | "sofort" + | "swish" + | "twint" + | "us_bank_account" + | "wechat_pay" + | "zip" + )[] + | null + ) + | undefined phone_number_collection: t_payment_links_resource_phone_number_collection - restrictions?: t_payment_links_resource_restrictions | null - shipping_address_collection?: t_payment_links_resource_shipping_address_collection | null + restrictions?: (t_payment_links_resource_restrictions | null) | undefined + shipping_address_collection?: + | (t_payment_links_resource_shipping_address_collection | null) + | undefined shipping_options: t_payment_links_resource_shipping_option[] submit_type: "auto" | "book" | "donate" | "pay" | "subscribe" - subscription_data?: t_payment_links_resource_subscription_data | null + subscription_data?: + | (t_payment_links_resource_subscription_data | null) + | undefined tax_id_collection: t_payment_links_resource_tax_id_collection - transfer_data?: t_payment_links_resource_transfer_data | null + transfer_data?: (t_payment_links_resource_transfer_data | null) | undefined url: string } export type t_payment_links_resource_after_completion = { - hosted_confirmation?: t_payment_links_resource_completion_behavior_confirmation_page - redirect?: t_payment_links_resource_completion_behavior_redirect + hosted_confirmation?: + | t_payment_links_resource_completion_behavior_confirmation_page + | undefined + redirect?: t_payment_links_resource_completion_behavior_redirect | undefined type: "hosted_confirmation" | "redirect" } export type t_payment_links_resource_automatic_tax = { enabled: boolean - liability?: t_connect_account_reference | null + liability?: (t_connect_account_reference | null) | undefined } export type t_payment_links_resource_completed_sessions = { @@ -7335,7 +7943,7 @@ export type t_payment_links_resource_completed_sessions = { } export type t_payment_links_resource_completion_behavior_confirmation_page = { - custom_message?: string | null + custom_message?: (string | null) | undefined } export type t_payment_links_resource_completion_behavior_redirect = { @@ -7343,18 +7951,20 @@ export type t_payment_links_resource_completion_behavior_redirect = { } export type t_payment_links_resource_consent_collection = { - payment_method_reuse_agreement?: t_payment_links_resource_payment_method_reuse_agreement | null - promotions?: "auto" | "none" | null - terms_of_service?: "none" | "required" | null + payment_method_reuse_agreement?: + | (t_payment_links_resource_payment_method_reuse_agreement | null) + | undefined + promotions?: ("auto" | "none" | null) | undefined + terms_of_service?: ("none" | "required" | null) | undefined } export type t_payment_links_resource_custom_fields = { - dropdown?: t_payment_links_resource_custom_fields_dropdown + dropdown?: t_payment_links_resource_custom_fields_dropdown | undefined key: string label: t_payment_links_resource_custom_fields_label - numeric?: t_payment_links_resource_custom_fields_numeric + numeric?: t_payment_links_resource_custom_fields_numeric | undefined optional: boolean - text?: t_payment_links_resource_custom_fields_text + text?: t_payment_links_resource_custom_fields_text | undefined type: "dropdown" | "numeric" | "text" } @@ -7368,25 +7978,31 @@ export type t_payment_links_resource_custom_fields_dropdown_option = { } export type t_payment_links_resource_custom_fields_label = { - custom?: string | null + custom?: (string | null) | undefined type: "custom" } export type t_payment_links_resource_custom_fields_numeric = { - maximum_length?: number | null - minimum_length?: number | null + maximum_length?: (number | null) | undefined + minimum_length?: (number | null) | undefined } export type t_payment_links_resource_custom_fields_text = { - maximum_length?: number | null - minimum_length?: number | null + maximum_length?: (number | null) | undefined + minimum_length?: (number | null) | undefined } export type t_payment_links_resource_custom_text = { - after_submit?: t_payment_links_resource_custom_text_position | null - shipping_address?: t_payment_links_resource_custom_text_position | null - submit?: t_payment_links_resource_custom_text_position | null - terms_of_service_acceptance?: t_payment_links_resource_custom_text_position | null + after_submit?: + | (t_payment_links_resource_custom_text_position | null) + | undefined + shipping_address?: + | (t_payment_links_resource_custom_text_position | null) + | undefined + submit?: (t_payment_links_resource_custom_text_position | null) | undefined + terms_of_service_acceptance?: + | (t_payment_links_resource_custom_text_position | null) + | undefined } export type t_payment_links_resource_custom_text_position = { @@ -7395,31 +8011,37 @@ export type t_payment_links_resource_custom_text_position = { export type t_payment_links_resource_invoice_creation = { enabled: boolean - invoice_data?: t_payment_links_resource_invoice_settings | null + invoice_data?: (t_payment_links_resource_invoice_settings | null) | undefined } export type t_payment_links_resource_invoice_settings = { - account_tax_ids?: (string | t_tax_id | t_deleted_tax_id)[] | null - custom_fields?: t_invoice_setting_custom_field[] | null - description?: string | null - footer?: string | null - issuer?: t_connect_account_reference | null - metadata?: { - [key: string]: string | undefined - } | null - rendering_options?: t_invoice_setting_rendering_options | null + account_tax_ids?: + | ((string | t_tax_id | t_deleted_tax_id)[] | null) + | undefined + custom_fields?: (t_invoice_setting_custom_field[] | null) | undefined + description?: (string | null) | undefined + footer?: (string | null) | undefined + issuer?: (t_connect_account_reference | null) | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + rendering_options?: (t_invoice_setting_rendering_options | null) | undefined } export type t_payment_links_resource_payment_intent_data = { - capture_method?: "automatic" | "automatic_async" | "manual" | null - description?: string | null + capture_method?: + | ("automatic" | "automatic_async" | "manual" | null) + | undefined + description?: (string | null) | undefined metadata: { [key: string]: string | undefined } - setup_future_usage?: "off_session" | "on_session" | null - statement_descriptor?: string | null - statement_descriptor_suffix?: string | null - transfer_group?: string | null + setup_future_usage?: ("off_session" | "on_session" | null) | undefined + statement_descriptor?: (string | null) | undefined + statement_descriptor_suffix?: (string | null) | undefined + transfer_group?: (string | null) | undefined } export type t_payment_links_resource_payment_method_reuse_agreement = { @@ -7682,13 +8304,15 @@ export type t_payment_links_resource_shipping_option = { } export type t_payment_links_resource_subscription_data = { - description?: string | null + description?: (string | null) | undefined invoice_settings: t_payment_links_resource_subscription_data_invoice_settings metadata: { [key: string]: string | undefined } - trial_period_days?: number | null - trial_settings?: t_subscriptions_trials_resource_trial_settings | null + trial_period_days?: (number | null) | undefined + trial_settings?: + | (t_subscriptions_trials_resource_trial_settings | null) + | undefined } export type t_payment_links_resource_subscription_data_invoice_settings = { @@ -7701,64 +8325,66 @@ export type t_payment_links_resource_tax_id_collection = { } export type t_payment_links_resource_transfer_data = { - amount?: number | null + amount?: (number | null) | undefined destination: string | t_account } export type t_payment_method = { - acss_debit?: t_payment_method_acss_debit - affirm?: t_payment_method_affirm - afterpay_clearpay?: t_payment_method_afterpay_clearpay - alipay?: t_payment_flows_private_payment_methods_alipay - allow_redisplay?: "always" | "limited" | "unspecified" - alma?: t_payment_method_alma - amazon_pay?: t_payment_method_amazon_pay - au_becs_debit?: t_payment_method_au_becs_debit - bacs_debit?: t_payment_method_bacs_debit - bancontact?: t_payment_method_bancontact + acss_debit?: t_payment_method_acss_debit | undefined + affirm?: t_payment_method_affirm | undefined + afterpay_clearpay?: t_payment_method_afterpay_clearpay | undefined + alipay?: t_payment_flows_private_payment_methods_alipay | undefined + allow_redisplay?: ("always" | "limited" | "unspecified") | undefined + alma?: t_payment_method_alma | undefined + amazon_pay?: t_payment_method_amazon_pay | undefined + au_becs_debit?: t_payment_method_au_becs_debit | undefined + bacs_debit?: t_payment_method_bacs_debit | undefined + bancontact?: t_payment_method_bancontact | undefined billing_details: t_billing_details - blik?: t_payment_method_blik - boleto?: t_payment_method_boleto - card?: t_payment_method_card - card_present?: t_payment_method_card_present - cashapp?: t_payment_method_cashapp + blik?: t_payment_method_blik | undefined + boleto?: t_payment_method_boleto | undefined + card?: t_payment_method_card | undefined + card_present?: t_payment_method_card_present | undefined + cashapp?: t_payment_method_cashapp | undefined created: number - customer?: string | t_customer | null - customer_balance?: t_payment_method_customer_balance - eps?: t_payment_method_eps - fpx?: t_payment_method_fpx - giropay?: t_payment_method_giropay - grabpay?: t_payment_method_grabpay - id: string - ideal?: t_payment_method_ideal - interac_present?: t_payment_method_interac_present - kakao_pay?: t_payment_method_kakao_pay - klarna?: t_payment_method_klarna - konbini?: t_payment_method_konbini - kr_card?: t_payment_method_kr_card - link?: t_payment_method_link + customer?: (string | t_customer | null) | undefined + customer_balance?: t_payment_method_customer_balance | undefined + eps?: t_payment_method_eps | undefined + fpx?: t_payment_method_fpx | undefined + giropay?: t_payment_method_giropay | undefined + grabpay?: t_payment_method_grabpay | undefined + id: string + ideal?: t_payment_method_ideal | undefined + interac_present?: t_payment_method_interac_present | undefined + kakao_pay?: t_payment_method_kakao_pay | undefined + klarna?: t_payment_method_klarna | undefined + konbini?: t_payment_method_konbini | undefined + kr_card?: t_payment_method_kr_card | undefined + link?: t_payment_method_link | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null - mobilepay?: t_payment_method_mobilepay - multibanco?: t_payment_method_multibanco - naver_pay?: t_payment_method_naver_pay + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + mobilepay?: t_payment_method_mobilepay | undefined + multibanco?: t_payment_method_multibanco | undefined + naver_pay?: t_payment_method_naver_pay | undefined object: "payment_method" - oxxo?: t_payment_method_oxxo - p24?: t_payment_method_p24 - payco?: t_payment_method_payco - paynow?: t_payment_method_paynow - paypal?: t_payment_method_paypal - pix?: t_payment_method_pix - promptpay?: t_payment_method_promptpay - radar_options?: t_radar_radar_options - revolut_pay?: t_payment_method_revolut_pay - samsung_pay?: t_payment_method_samsung_pay - sepa_debit?: t_payment_method_sepa_debit - sofort?: t_payment_method_sofort - swish?: t_payment_method_swish - twint?: t_payment_method_twint + oxxo?: t_payment_method_oxxo | undefined + p24?: t_payment_method_p24 | undefined + payco?: t_payment_method_payco | undefined + paynow?: t_payment_method_paynow | undefined + paypal?: t_payment_method_paypal | undefined + pix?: t_payment_method_pix | undefined + promptpay?: t_payment_method_promptpay | undefined + radar_options?: t_radar_radar_options | undefined + revolut_pay?: t_payment_method_revolut_pay | undefined + samsung_pay?: t_payment_method_samsung_pay | undefined + sepa_debit?: t_payment_method_sepa_debit | undefined + sofort?: t_payment_method_sofort | undefined + swish?: t_payment_method_swish | undefined + twint?: t_payment_method_twint | undefined type: | "acss_debit" | "affirm" @@ -7805,17 +8431,17 @@ export type t_payment_method = { | "us_bank_account" | "wechat_pay" | "zip" - us_bank_account?: t_payment_method_us_bank_account - wechat_pay?: t_payment_method_wechat_pay - zip?: t_payment_method_zip + us_bank_account?: t_payment_method_us_bank_account | undefined + wechat_pay?: t_payment_method_wechat_pay | undefined + zip?: t_payment_method_zip | undefined } export type t_payment_method_acss_debit = { - bank_name?: string | null - fingerprint?: string | null - institution_number?: string | null - last4?: string | null - transit_number?: string | null + bank_name?: (string | null) | undefined + fingerprint?: (string | null) | undefined + institution_number?: (string | null) | undefined + last4?: (string | null) | undefined + transit_number?: (string | null) | undefined } export type t_payment_method_affirm = EmptyObject @@ -7827,15 +8453,15 @@ export type t_payment_method_alma = EmptyObject export type t_payment_method_amazon_pay = EmptyObject export type t_payment_method_au_becs_debit = { - bsb_number?: string | null - fingerprint?: string | null - last4?: string | null + bsb_number?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined } export type t_payment_method_bacs_debit = { - fingerprint?: string | null - last4?: string | null - sort_code?: string | null + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + sort_code?: (string | null) | undefined } export type t_payment_method_bancontact = EmptyObject @@ -7848,70 +8474,79 @@ export type t_payment_method_boleto = { export type t_payment_method_card = { brand: string - checks?: t_payment_method_card_checks | null - country?: string | null - display_brand?: string | null + checks?: (t_payment_method_card_checks | null) | undefined + country?: (string | null) | undefined + display_brand?: (string | null) | undefined exp_month: number exp_year: number - fingerprint?: string | null + fingerprint?: (string | null) | undefined funding: string - generated_from?: t_payment_method_card_generated_card | null + generated_from?: (t_payment_method_card_generated_card | null) | undefined last4: string - networks?: t_networks | null - three_d_secure_usage?: t_three_d_secure_usage | null - wallet?: t_payment_method_card_wallet | null + networks?: (t_networks | null) | undefined + three_d_secure_usage?: (t_three_d_secure_usage | null) | undefined + wallet?: (t_payment_method_card_wallet | null) | undefined } export type t_payment_method_card_checks = { - address_line1_check?: string | null - address_postal_code_check?: string | null - cvc_check?: string | null + address_line1_check?: (string | null) | undefined + address_postal_code_check?: (string | null) | undefined + cvc_check?: (string | null) | undefined } export type t_payment_method_card_generated_card = { - charge?: string | null - payment_method_details?: t_card_generated_from_payment_method_details | null - setup_attempt?: string | t_setup_attempt | null + charge?: (string | null) | undefined + payment_method_details?: + | (t_card_generated_from_payment_method_details | null) + | undefined + setup_attempt?: (string | t_setup_attempt | null) | undefined } export type t_payment_method_card_present = { - brand?: string | null - brand_product?: string | null - cardholder_name?: string | null - country?: string | null - description?: string | null + brand?: (string | null) | undefined + brand_product?: (string | null) | undefined + cardholder_name?: (string | null) | undefined + country?: (string | null) | undefined + description?: (string | null) | undefined exp_month: number exp_year: number - fingerprint?: string | null - funding?: string | null - issuer?: string | null - last4?: string | null - networks?: t_payment_method_card_present_networks | null - offline?: t_payment_method_details_card_present_offline | null - preferred_locales?: string[] | null + fingerprint?: (string | null) | undefined + funding?: (string | null) | undefined + issuer?: (string | null) | undefined + last4?: (string | null) | undefined + networks?: (t_payment_method_card_present_networks | null) | undefined + offline?: (t_payment_method_details_card_present_offline | null) | undefined + preferred_locales?: (string[] | null) | undefined read_method?: - | "contact_emv" - | "contactless_emv" - | "contactless_magstripe_mode" - | "magnetic_stripe_fallback" - | "magnetic_stripe_track2" - | null - wallet?: t_payment_flows_private_payment_methods_card_present_common_wallet + | ( + | "contact_emv" + | "contactless_emv" + | "contactless_magstripe_mode" + | "magnetic_stripe_fallback" + | "magnetic_stripe_track2" + | null + ) + | undefined + wallet?: + | t_payment_flows_private_payment_methods_card_present_common_wallet + | undefined } export type t_payment_method_card_present_networks = { available: string[] - preferred?: string | null + preferred?: (string | null) | undefined } export type t_payment_method_card_wallet = { - amex_express_checkout?: t_payment_method_card_wallet_amex_express_checkout - apple_pay?: t_payment_method_card_wallet_apple_pay - dynamic_last4?: string | null - google_pay?: t_payment_method_card_wallet_google_pay - link?: t_payment_method_card_wallet_link - masterpass?: t_payment_method_card_wallet_masterpass - samsung_pay?: t_payment_method_card_wallet_samsung_pay + amex_express_checkout?: + | t_payment_method_card_wallet_amex_express_checkout + | undefined + apple_pay?: t_payment_method_card_wallet_apple_pay | undefined + dynamic_last4?: (string | null) | undefined + google_pay?: t_payment_method_card_wallet_google_pay | undefined + link?: t_payment_method_card_wallet_link | undefined + masterpass?: t_payment_method_card_wallet_masterpass | undefined + samsung_pay?: t_payment_method_card_wallet_samsung_pay | undefined type: | "amex_express_checkout" | "apple_pay" @@ -7920,7 +8555,7 @@ export type t_payment_method_card_wallet = { | "masterpass" | "samsung_pay" | "visa_checkout" - visa_checkout?: t_payment_method_card_wallet_visa_checkout + visa_checkout?: t_payment_method_card_wallet_visa_checkout | undefined } export type t_payment_method_card_wallet_amex_express_checkout = EmptyObject @@ -7932,33 +8567,33 @@ export type t_payment_method_card_wallet_google_pay = EmptyObject export type t_payment_method_card_wallet_link = EmptyObject export type t_payment_method_card_wallet_masterpass = { - billing_address?: t_address | null - email?: string | null - name?: string | null - shipping_address?: t_address | null + billing_address?: (t_address | null) | undefined + email?: (string | null) | undefined + name?: (string | null) | undefined + shipping_address?: (t_address | null) | undefined } export type t_payment_method_card_wallet_samsung_pay = EmptyObject export type t_payment_method_card_wallet_visa_checkout = { - billing_address?: t_address | null - email?: string | null - name?: string | null - shipping_address?: t_address | null + billing_address?: (t_address | null) | undefined + email?: (string | null) | undefined + name?: (string | null) | undefined + shipping_address?: (t_address | null) | undefined } export type t_payment_method_cashapp = { - buyer_id?: string | null - cashtag?: string | null + buyer_id?: (string | null) | undefined + cashtag?: (string | null) | undefined } export type t_payment_method_config_biz_payment_method_configuration_details = { id: string - parent?: string | null + parent?: (string | null) | undefined } export type t_payment_method_config_resource_display_preference = { - overridable?: boolean | null + overridable?: (boolean | null) | undefined preference: "none" | "off" | "on" value: "off" | "on" } @@ -7969,144 +8604,200 @@ export type t_payment_method_config_resource_payment_method_properties = { } export type t_payment_method_configuration = { - acss_debit?: t_payment_method_config_resource_payment_method_properties + acss_debit?: + | t_payment_method_config_resource_payment_method_properties + | undefined active: boolean - affirm?: t_payment_method_config_resource_payment_method_properties - afterpay_clearpay?: t_payment_method_config_resource_payment_method_properties - alipay?: t_payment_method_config_resource_payment_method_properties - alma?: t_payment_method_config_resource_payment_method_properties - amazon_pay?: t_payment_method_config_resource_payment_method_properties - apple_pay?: t_payment_method_config_resource_payment_method_properties - application?: string | null - au_becs_debit?: t_payment_method_config_resource_payment_method_properties - bacs_debit?: t_payment_method_config_resource_payment_method_properties - bancontact?: t_payment_method_config_resource_payment_method_properties - blik?: t_payment_method_config_resource_payment_method_properties - boleto?: t_payment_method_config_resource_payment_method_properties - card?: t_payment_method_config_resource_payment_method_properties - cartes_bancaires?: t_payment_method_config_resource_payment_method_properties - cashapp?: t_payment_method_config_resource_payment_method_properties - customer_balance?: t_payment_method_config_resource_payment_method_properties - eps?: t_payment_method_config_resource_payment_method_properties - fpx?: t_payment_method_config_resource_payment_method_properties - giropay?: t_payment_method_config_resource_payment_method_properties - google_pay?: t_payment_method_config_resource_payment_method_properties - grabpay?: t_payment_method_config_resource_payment_method_properties - id: string - ideal?: t_payment_method_config_resource_payment_method_properties + affirm?: + | t_payment_method_config_resource_payment_method_properties + | undefined + afterpay_clearpay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + alipay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + alma?: t_payment_method_config_resource_payment_method_properties | undefined + amazon_pay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + apple_pay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + application?: (string | null) | undefined + au_becs_debit?: + | t_payment_method_config_resource_payment_method_properties + | undefined + bacs_debit?: + | t_payment_method_config_resource_payment_method_properties + | undefined + bancontact?: + | t_payment_method_config_resource_payment_method_properties + | undefined + blik?: t_payment_method_config_resource_payment_method_properties | undefined + boleto?: + | t_payment_method_config_resource_payment_method_properties + | undefined + card?: t_payment_method_config_resource_payment_method_properties | undefined + cartes_bancaires?: + | t_payment_method_config_resource_payment_method_properties + | undefined + cashapp?: + | t_payment_method_config_resource_payment_method_properties + | undefined + customer_balance?: + | t_payment_method_config_resource_payment_method_properties + | undefined + eps?: t_payment_method_config_resource_payment_method_properties | undefined + fpx?: t_payment_method_config_resource_payment_method_properties | undefined + giropay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + google_pay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + grabpay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + id: string + ideal?: t_payment_method_config_resource_payment_method_properties | undefined is_default: boolean - jcb?: t_payment_method_config_resource_payment_method_properties - klarna?: t_payment_method_config_resource_payment_method_properties - konbini?: t_payment_method_config_resource_payment_method_properties - link?: t_payment_method_config_resource_payment_method_properties + jcb?: t_payment_method_config_resource_payment_method_properties | undefined + klarna?: + | t_payment_method_config_resource_payment_method_properties + | undefined + konbini?: + | t_payment_method_config_resource_payment_method_properties + | undefined + link?: t_payment_method_config_resource_payment_method_properties | undefined livemode: boolean - mobilepay?: t_payment_method_config_resource_payment_method_properties - multibanco?: t_payment_method_config_resource_payment_method_properties + mobilepay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + multibanco?: + | t_payment_method_config_resource_payment_method_properties + | undefined name: string object: "payment_method_configuration" - oxxo?: t_payment_method_config_resource_payment_method_properties - p24?: t_payment_method_config_resource_payment_method_properties - parent?: string | null - paynow?: t_payment_method_config_resource_payment_method_properties - paypal?: t_payment_method_config_resource_payment_method_properties - promptpay?: t_payment_method_config_resource_payment_method_properties - revolut_pay?: t_payment_method_config_resource_payment_method_properties - sepa_debit?: t_payment_method_config_resource_payment_method_properties - sofort?: t_payment_method_config_resource_payment_method_properties - swish?: t_payment_method_config_resource_payment_method_properties - twint?: t_payment_method_config_resource_payment_method_properties - us_bank_account?: t_payment_method_config_resource_payment_method_properties - wechat_pay?: t_payment_method_config_resource_payment_method_properties - zip?: t_payment_method_config_resource_payment_method_properties + oxxo?: t_payment_method_config_resource_payment_method_properties | undefined + p24?: t_payment_method_config_resource_payment_method_properties | undefined + parent?: (string | null) | undefined + paynow?: + | t_payment_method_config_resource_payment_method_properties + | undefined + paypal?: + | t_payment_method_config_resource_payment_method_properties + | undefined + promptpay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + revolut_pay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + sepa_debit?: + | t_payment_method_config_resource_payment_method_properties + | undefined + sofort?: + | t_payment_method_config_resource_payment_method_properties + | undefined + swish?: t_payment_method_config_resource_payment_method_properties | undefined + twint?: t_payment_method_config_resource_payment_method_properties | undefined + us_bank_account?: + | t_payment_method_config_resource_payment_method_properties + | undefined + wechat_pay?: + | t_payment_method_config_resource_payment_method_properties + | undefined + zip?: t_payment_method_config_resource_payment_method_properties | undefined } export type t_payment_method_customer_balance = EmptyObject export type t_payment_method_details = { - ach_credit_transfer?: t_payment_method_details_ach_credit_transfer - ach_debit?: t_payment_method_details_ach_debit - acss_debit?: t_payment_method_details_acss_debit - affirm?: t_payment_method_details_affirm - afterpay_clearpay?: t_payment_method_details_afterpay_clearpay - alipay?: t_payment_flows_private_payment_methods_alipay_details - alma?: t_payment_method_details_alma - amazon_pay?: t_payment_method_details_amazon_pay - au_becs_debit?: t_payment_method_details_au_becs_debit - bacs_debit?: t_payment_method_details_bacs_debit - bancontact?: t_payment_method_details_bancontact - blik?: t_payment_method_details_blik - boleto?: t_payment_method_details_boleto - card?: t_payment_method_details_card - card_present?: t_payment_method_details_card_present - cashapp?: t_payment_method_details_cashapp - customer_balance?: t_payment_method_details_customer_balance - eps?: t_payment_method_details_eps - fpx?: t_payment_method_details_fpx - giropay?: t_payment_method_details_giropay - grabpay?: t_payment_method_details_grabpay - ideal?: t_payment_method_details_ideal - interac_present?: t_payment_method_details_interac_present - kakao_pay?: t_payment_method_details_kakao_pay - klarna?: t_payment_method_details_klarna - konbini?: t_payment_method_details_konbini - kr_card?: t_payment_method_details_kr_card - link?: t_payment_method_details_link - mobilepay?: t_payment_method_details_mobilepay - multibanco?: t_payment_method_details_multibanco - naver_pay?: t_payment_method_details_naver_pay - oxxo?: t_payment_method_details_oxxo - p24?: t_payment_method_details_p24 - payco?: t_payment_method_details_payco - paynow?: t_payment_method_details_paynow - paypal?: t_payment_method_details_paypal - pix?: t_payment_method_details_pix - promptpay?: t_payment_method_details_promptpay - revolut_pay?: t_payment_method_details_revolut_pay - samsung_pay?: t_payment_method_details_samsung_pay - sepa_debit?: t_payment_method_details_sepa_debit - sofort?: t_payment_method_details_sofort - stripe_account?: t_payment_method_details_stripe_account - swish?: t_payment_method_details_swish - twint?: t_payment_method_details_twint + ach_credit_transfer?: t_payment_method_details_ach_credit_transfer | undefined + ach_debit?: t_payment_method_details_ach_debit | undefined + acss_debit?: t_payment_method_details_acss_debit | undefined + affirm?: t_payment_method_details_affirm | undefined + afterpay_clearpay?: t_payment_method_details_afterpay_clearpay | undefined + alipay?: t_payment_flows_private_payment_methods_alipay_details | undefined + alma?: t_payment_method_details_alma | undefined + amazon_pay?: t_payment_method_details_amazon_pay | undefined + au_becs_debit?: t_payment_method_details_au_becs_debit | undefined + bacs_debit?: t_payment_method_details_bacs_debit | undefined + bancontact?: t_payment_method_details_bancontact | undefined + blik?: t_payment_method_details_blik | undefined + boleto?: t_payment_method_details_boleto | undefined + card?: t_payment_method_details_card | undefined + card_present?: t_payment_method_details_card_present | undefined + cashapp?: t_payment_method_details_cashapp | undefined + customer_balance?: t_payment_method_details_customer_balance | undefined + eps?: t_payment_method_details_eps | undefined + fpx?: t_payment_method_details_fpx | undefined + giropay?: t_payment_method_details_giropay | undefined + grabpay?: t_payment_method_details_grabpay | undefined + ideal?: t_payment_method_details_ideal | undefined + interac_present?: t_payment_method_details_interac_present | undefined + kakao_pay?: t_payment_method_details_kakao_pay | undefined + klarna?: t_payment_method_details_klarna | undefined + konbini?: t_payment_method_details_konbini | undefined + kr_card?: t_payment_method_details_kr_card | undefined + link?: t_payment_method_details_link | undefined + mobilepay?: t_payment_method_details_mobilepay | undefined + multibanco?: t_payment_method_details_multibanco | undefined + naver_pay?: t_payment_method_details_naver_pay | undefined + oxxo?: t_payment_method_details_oxxo | undefined + p24?: t_payment_method_details_p24 | undefined + payco?: t_payment_method_details_payco | undefined + paynow?: t_payment_method_details_paynow | undefined + paypal?: t_payment_method_details_paypal | undefined + pix?: t_payment_method_details_pix | undefined + promptpay?: t_payment_method_details_promptpay | undefined + revolut_pay?: t_payment_method_details_revolut_pay | undefined + samsung_pay?: t_payment_method_details_samsung_pay | undefined + sepa_debit?: t_payment_method_details_sepa_debit | undefined + sofort?: t_payment_method_details_sofort | undefined + stripe_account?: t_payment_method_details_stripe_account | undefined + swish?: t_payment_method_details_swish | undefined + twint?: t_payment_method_details_twint | undefined type: string - us_bank_account?: t_payment_method_details_us_bank_account - wechat?: t_payment_method_details_wechat - wechat_pay?: t_payment_method_details_wechat_pay - zip?: t_payment_method_details_zip + us_bank_account?: t_payment_method_details_us_bank_account | undefined + wechat?: t_payment_method_details_wechat | undefined + wechat_pay?: t_payment_method_details_wechat_pay | undefined + zip?: t_payment_method_details_zip | undefined } export type t_payment_method_details_ach_credit_transfer = { - account_number?: string | null - bank_name?: string | null - routing_number?: string | null - swift_code?: string | null + account_number?: (string | null) | undefined + bank_name?: (string | null) | undefined + routing_number?: (string | null) | undefined + swift_code?: (string | null) | undefined } export type t_payment_method_details_ach_debit = { - account_holder_type?: "company" | "individual" | null - bank_name?: string | null - country?: string | null - fingerprint?: string | null - last4?: string | null - routing_number?: string | null + account_holder_type?: ("company" | "individual" | null) | undefined + bank_name?: (string | null) | undefined + country?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + routing_number?: (string | null) | undefined } export type t_payment_method_details_acss_debit = { - bank_name?: string | null - fingerprint?: string | null - institution_number?: string | null - last4?: string | null - mandate?: string - transit_number?: string | null + bank_name?: (string | null) | undefined + fingerprint?: (string | null) | undefined + institution_number?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: string | undefined + transit_number?: (string | null) | undefined } export type t_payment_method_details_affirm = { - transaction_id?: string | null + transaction_id?: (string | null) | undefined } export type t_payment_method_details_afterpay_clearpay = { - order_id?: string | null - reference?: string | null + order_id?: (string | null) | undefined + reference?: (string | null) | undefined } export type t_payment_method_details_alma = EmptyObject @@ -8114,32 +8805,32 @@ export type t_payment_method_details_alma = EmptyObject export type t_payment_method_details_amazon_pay = EmptyObject export type t_payment_method_details_au_becs_debit = { - bsb_number?: string | null - fingerprint?: string | null - last4?: string | null - mandate?: string + bsb_number?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: string | undefined } export type t_payment_method_details_bacs_debit = { - fingerprint?: string | null - last4?: string | null - mandate?: string | null - sort_code?: string | null + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: (string | null) | undefined + sort_code?: (string | null) | undefined } export type t_payment_method_details_bancontact = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - generated_sepa_debit?: string | t_payment_method | null - generated_sepa_debit_mandate?: string | t_mandate | null - iban_last4?: string | null - preferred_language?: "de" | "en" | "fr" | "nl" | null - verified_name?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + generated_sepa_debit?: (string | t_payment_method | null) | undefined + generated_sepa_debit_mandate?: (string | t_mandate | null) | undefined + iban_last4?: (string | null) | undefined + preferred_language?: ("de" | "en" | "fr" | "nl" | null) | undefined + verified_name?: (string | null) | undefined } export type t_payment_method_details_blik = { - buyer_id?: string | null + buyer_id?: (string | null) | undefined } export type t_payment_method_details_boleto = { @@ -8147,42 +8838,52 @@ export type t_payment_method_details_boleto = { } export type t_payment_method_details_card = { - amount_authorized?: number | null - authorization_code?: string | null - brand?: string | null - capture_before?: number - checks?: t_payment_method_details_card_checks | null - country?: string | null + amount_authorized?: (number | null) | undefined + authorization_code?: (string | null) | undefined + brand?: (string | null) | undefined + capture_before?: number | undefined + checks?: (t_payment_method_details_card_checks | null) | undefined + country?: (string | null) | undefined exp_month: number exp_year: number - extended_authorization?: t_payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization - fingerprint?: string | null - funding?: string | null - incremental_authorization?: t_payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization - installments?: t_payment_method_details_card_installments | null - last4?: string | null - mandate?: string | null - multicapture?: t_payment_flows_private_payment_methods_card_details_api_resource_multicapture - network?: string | null - network_token?: t_payment_method_details_card_network_token | null - overcapture?: t_payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture - three_d_secure?: t_three_d_secure_details_charge | null - wallet?: t_payment_method_details_card_wallet | null + extended_authorization?: + | t_payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_extended_authorization_extended_authorization + | undefined + fingerprint?: (string | null) | undefined + funding?: (string | null) | undefined + incremental_authorization?: + | t_payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_incremental_authorization_incremental_authorization + | undefined + installments?: (t_payment_method_details_card_installments | null) | undefined + last4?: (string | null) | undefined + mandate?: (string | null) | undefined + multicapture?: + | t_payment_flows_private_payment_methods_card_details_api_resource_multicapture + | undefined + network?: (string | null) | undefined + network_token?: + | (t_payment_method_details_card_network_token | null) + | undefined + overcapture?: + | t_payment_flows_private_payment_methods_card_details_api_resource_enterprise_features_overcapture_overcapture + | undefined + three_d_secure?: (t_three_d_secure_details_charge | null) | undefined + wallet?: (t_payment_method_details_card_wallet | null) | undefined } export type t_payment_method_details_card_checks = { - address_line1_check?: string | null - address_postal_code_check?: string | null - cvc_check?: string | null + address_line1_check?: (string | null) | undefined + address_postal_code_check?: (string | null) | undefined + cvc_check?: (string | null) | undefined } export type t_payment_method_details_card_installments = { - plan?: t_payment_method_details_card_installments_plan | null + plan?: (t_payment_method_details_card_installments_plan | null) | undefined } export type t_payment_method_details_card_installments_plan = { - count?: number | null - interval?: "month" | null + count?: (number | null) | undefined + interval?: ("month" | null) | undefined type: "fixed_count" } @@ -8191,63 +8892,70 @@ export type t_payment_method_details_card_network_token = { } export type t_payment_method_details_card_present = { - amount_authorized?: number | null - brand?: string | null - brand_product?: string | null - capture_before?: number - cardholder_name?: string | null - country?: string | null - description?: string | null - emv_auth_data?: string | null + amount_authorized?: (number | null) | undefined + brand?: (string | null) | undefined + brand_product?: (string | null) | undefined + capture_before?: number | undefined + cardholder_name?: (string | null) | undefined + country?: (string | null) | undefined + description?: (string | null) | undefined + emv_auth_data?: (string | null) | undefined exp_month: number exp_year: number - fingerprint?: string | null - funding?: string | null - generated_card?: string | null + fingerprint?: (string | null) | undefined + funding?: (string | null) | undefined + generated_card?: (string | null) | undefined incremental_authorization_supported: boolean - issuer?: string | null - last4?: string | null - network?: string | null - network_transaction_id?: string | null - offline?: t_payment_method_details_card_present_offline | null + issuer?: (string | null) | undefined + last4?: (string | null) | undefined + network?: (string | null) | undefined + network_transaction_id?: (string | null) | undefined + offline?: (t_payment_method_details_card_present_offline | null) | undefined overcapture_supported: boolean - preferred_locales?: string[] | null + preferred_locales?: (string[] | null) | undefined read_method?: - | "contact_emv" - | "contactless_emv" - | "contactless_magstripe_mode" - | "magnetic_stripe_fallback" - | "magnetic_stripe_track2" - | null - receipt?: t_payment_method_details_card_present_receipt | null - wallet?: t_payment_flows_private_payment_methods_card_present_common_wallet + | ( + | "contact_emv" + | "contactless_emv" + | "contactless_magstripe_mode" + | "magnetic_stripe_fallback" + | "magnetic_stripe_track2" + | null + ) + | undefined + receipt?: (t_payment_method_details_card_present_receipt | null) | undefined + wallet?: + | t_payment_flows_private_payment_methods_card_present_common_wallet + | undefined } export type t_payment_method_details_card_present_offline = { - stored_at?: number | null - type?: "deferred" | null + stored_at?: (number | null) | undefined + type?: ("deferred" | null) | undefined } export type t_payment_method_details_card_present_receipt = { - account_type?: "checking" | "credit" | "prepaid" | "unknown" - application_cryptogram?: string | null - application_preferred_name?: string | null - authorization_code?: string | null - authorization_response_code?: string | null - cardholder_verification_method?: string | null - dedicated_file_name?: string | null - terminal_verification_results?: string | null - transaction_status_information?: string | null + account_type?: ("checking" | "credit" | "prepaid" | "unknown") | undefined + application_cryptogram?: (string | null) | undefined + application_preferred_name?: (string | null) | undefined + authorization_code?: (string | null) | undefined + authorization_response_code?: (string | null) | undefined + cardholder_verification_method?: (string | null) | undefined + dedicated_file_name?: (string | null) | undefined + terminal_verification_results?: (string | null) | undefined + transaction_status_information?: (string | null) | undefined } export type t_payment_method_details_card_wallet = { - amex_express_checkout?: t_payment_method_details_card_wallet_amex_express_checkout - apple_pay?: t_payment_method_details_card_wallet_apple_pay - dynamic_last4?: string | null - google_pay?: t_payment_method_details_card_wallet_google_pay - link?: t_payment_method_details_card_wallet_link - masterpass?: t_payment_method_details_card_wallet_masterpass - samsung_pay?: t_payment_method_details_card_wallet_samsung_pay + amex_express_checkout?: + | t_payment_method_details_card_wallet_amex_express_checkout + | undefined + apple_pay?: t_payment_method_details_card_wallet_apple_pay | undefined + dynamic_last4?: (string | null) | undefined + google_pay?: t_payment_method_details_card_wallet_google_pay | undefined + link?: t_payment_method_details_card_wallet_link | undefined + masterpass?: t_payment_method_details_card_wallet_masterpass | undefined + samsung_pay?: t_payment_method_details_card_wallet_samsung_pay | undefined type: | "amex_express_checkout" | "apple_pay" @@ -8256,7 +8964,7 @@ export type t_payment_method_details_card_wallet = { | "masterpass" | "samsung_pay" | "visa_checkout" - visa_checkout?: t_payment_method_details_card_wallet_visa_checkout + visa_checkout?: t_payment_method_details_card_wallet_visa_checkout | undefined } export type t_payment_method_details_card_wallet_amex_express_checkout = @@ -8269,60 +8977,63 @@ export type t_payment_method_details_card_wallet_google_pay = EmptyObject export type t_payment_method_details_card_wallet_link = EmptyObject export type t_payment_method_details_card_wallet_masterpass = { - billing_address?: t_address | null - email?: string | null - name?: string | null - shipping_address?: t_address | null + billing_address?: (t_address | null) | undefined + email?: (string | null) | undefined + name?: (string | null) | undefined + shipping_address?: (t_address | null) | undefined } export type t_payment_method_details_card_wallet_samsung_pay = EmptyObject export type t_payment_method_details_card_wallet_visa_checkout = { - billing_address?: t_address | null - email?: string | null - name?: string | null - shipping_address?: t_address | null + billing_address?: (t_address | null) | undefined + email?: (string | null) | undefined + name?: (string | null) | undefined + shipping_address?: (t_address | null) | undefined } export type t_payment_method_details_cashapp = { - buyer_id?: string | null - cashtag?: string | null + buyer_id?: (string | null) | undefined + cashtag?: (string | null) | undefined } export type t_payment_method_details_customer_balance = EmptyObject export type t_payment_method_details_eps = { bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - | null - verified_name?: string | null + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + | null + ) + | undefined + verified_name?: (string | null) | undefined } export type t_payment_method_details_fpx = { @@ -8349,280 +9060,301 @@ export type t_payment_method_details_fpx = { | "rhb" | "standard_chartered" | "uob" - transaction_id?: string | null + transaction_id?: (string | null) | undefined } export type t_payment_method_details_giropay = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - verified_name?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + verified_name?: (string | null) | undefined } export type t_payment_method_details_grabpay = { - transaction_id?: string | null + transaction_id?: (string | null) | undefined } export type t_payment_method_details_ideal = { bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - | null + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + | null + ) + | undefined bic?: - | "ABNANL2A" - | "ASNBNL21" - | "BITSNL2A" - | "BUNQNL2A" - | "FVLBNL22" - | "HANDNL2A" - | "INGBNL2A" - | "KNABNL2H" - | "MOYONL21" - | "NNBANL2G" - | "NTSBDEB1" - | "RABONL2U" - | "RBRBNL21" - | "REVOIE23" - | "REVOLT21" - | "SNSBNL2A" - | "TRIONL2U" - | null - generated_sepa_debit?: string | t_payment_method | null - generated_sepa_debit_mandate?: string | t_mandate | null - iban_last4?: string | null - verified_name?: string | null + | ( + | "ABNANL2A" + | "ASNBNL21" + | "BITSNL2A" + | "BUNQNL2A" + | "FVLBNL22" + | "HANDNL2A" + | "INGBNL2A" + | "KNABNL2H" + | "MOYONL21" + | "NNBANL2G" + | "NTSBDEB1" + | "RABONL2U" + | "RBRBNL21" + | "REVOIE23" + | "REVOLT21" + | "SNSBNL2A" + | "TRIONL2U" + | null + ) + | undefined + generated_sepa_debit?: (string | t_payment_method | null) | undefined + generated_sepa_debit_mandate?: (string | t_mandate | null) | undefined + iban_last4?: (string | null) | undefined + verified_name?: (string | null) | undefined } export type t_payment_method_details_interac_present = { - brand?: string | null - cardholder_name?: string | null - country?: string | null - description?: string | null - emv_auth_data?: string | null + brand?: (string | null) | undefined + cardholder_name?: (string | null) | undefined + country?: (string | null) | undefined + description?: (string | null) | undefined + emv_auth_data?: (string | null) | undefined exp_month: number exp_year: number - fingerprint?: string | null - funding?: string | null - generated_card?: string | null - issuer?: string | null - last4?: string | null - network?: string | null - network_transaction_id?: string | null - preferred_locales?: string[] | null + fingerprint?: (string | null) | undefined + funding?: (string | null) | undefined + generated_card?: (string | null) | undefined + issuer?: (string | null) | undefined + last4?: (string | null) | undefined + network?: (string | null) | undefined + network_transaction_id?: (string | null) | undefined + preferred_locales?: (string[] | null) | undefined read_method?: - | "contact_emv" - | "contactless_emv" - | "contactless_magstripe_mode" - | "magnetic_stripe_fallback" - | "magnetic_stripe_track2" - | null - receipt?: t_payment_method_details_interac_present_receipt | null + | ( + | "contact_emv" + | "contactless_emv" + | "contactless_magstripe_mode" + | "magnetic_stripe_fallback" + | "magnetic_stripe_track2" + | null + ) + | undefined + receipt?: + | (t_payment_method_details_interac_present_receipt | null) + | undefined } export type t_payment_method_details_interac_present_receipt = { - account_type?: "checking" | "savings" | "unknown" - application_cryptogram?: string | null - application_preferred_name?: string | null - authorization_code?: string | null - authorization_response_code?: string | null - cardholder_verification_method?: string | null - dedicated_file_name?: string | null - terminal_verification_results?: string | null - transaction_status_information?: string | null + account_type?: ("checking" | "savings" | "unknown") | undefined + application_cryptogram?: (string | null) | undefined + application_preferred_name?: (string | null) | undefined + authorization_code?: (string | null) | undefined + authorization_response_code?: (string | null) | undefined + cardholder_verification_method?: (string | null) | undefined + dedicated_file_name?: (string | null) | undefined + terminal_verification_results?: (string | null) | undefined + transaction_status_information?: (string | null) | undefined } export type t_payment_method_details_kakao_pay = { - buyer_id?: string | null + buyer_id?: (string | null) | undefined } export type t_payment_method_details_klarna = { - payer_details?: t_klarna_payer_details | null - payment_method_category?: string | null - preferred_locale?: string | null + payer_details?: (t_klarna_payer_details | null) | undefined + payment_method_category?: (string | null) | undefined + preferred_locale?: (string | null) | undefined } export type t_payment_method_details_konbini = { - store?: t_payment_method_details_konbini_store | null + store?: (t_payment_method_details_konbini_store | null) | undefined } export type t_payment_method_details_konbini_store = { - chain?: "familymart" | "lawson" | "ministop" | "seicomart" | null + chain?: + | ("familymart" | "lawson" | "ministop" | "seicomart" | null) + | undefined } export type t_payment_method_details_kr_card = { brand?: - | "bc" - | "citi" - | "hana" - | "hyundai" - | "jeju" - | "jeonbuk" - | "kakaobank" - | "kbank" - | "kdbbank" - | "kookmin" - | "kwangju" - | "lotte" - | "mg" - | "nh" - | "post" - | "samsung" - | "savingsbank" - | "shinhan" - | "shinhyup" - | "suhyup" - | "tossbank" - | "woori" - | null - buyer_id?: string | null - last4?: string | null + | ( + | "bc" + | "citi" + | "hana" + | "hyundai" + | "jeju" + | "jeonbuk" + | "kakaobank" + | "kbank" + | "kdbbank" + | "kookmin" + | "kwangju" + | "lotte" + | "mg" + | "nh" + | "post" + | "samsung" + | "savingsbank" + | "shinhan" + | "shinhyup" + | "suhyup" + | "tossbank" + | "woori" + | null + ) + | undefined + buyer_id?: (string | null) | undefined + last4?: (string | null) | undefined } export type t_payment_method_details_link = { - country?: string | null + country?: (string | null) | undefined } export type t_payment_method_details_mobilepay = { - card?: t_internal_card | null + card?: (t_internal_card | null) | undefined } export type t_payment_method_details_multibanco = { - entity?: string | null - reference?: string | null + entity?: (string | null) | undefined + reference?: (string | null) | undefined } export type t_payment_method_details_naver_pay = { - buyer_id?: string | null + buyer_id?: (string | null) | undefined } export type t_payment_method_details_oxxo = { - number?: string | null + number?: (string | null) | undefined } export type t_payment_method_details_p24 = { bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - | null - reference?: string | null - verified_name?: string | null + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + | null + ) + | undefined + reference?: (string | null) | undefined + verified_name?: (string | null) | undefined } export type t_payment_method_details_payco = { - buyer_id?: string | null + buyer_id?: (string | null) | undefined } export type t_payment_method_details_paynow = { - reference?: string | null + reference?: (string | null) | undefined } export type t_payment_method_details_paypal = { - payer_email?: string | null - payer_id?: string | null - payer_name?: string | null - seller_protection?: t_paypal_seller_protection | null - transaction_id?: string | null + payer_email?: (string | null) | undefined + payer_id?: (string | null) | undefined + payer_name?: (string | null) | undefined + seller_protection?: (t_paypal_seller_protection | null) | undefined + transaction_id?: (string | null) | undefined } export type t_payment_method_details_pix = { - bank_transaction_id?: string | null + bank_transaction_id?: (string | null) | undefined } export type t_payment_method_details_promptpay = { - reference?: string | null + reference?: (string | null) | undefined } export type t_payment_method_details_revolut_pay = EmptyObject export type t_payment_method_details_samsung_pay = { - buyer_id?: string | null + buyer_id?: (string | null) | undefined } export type t_payment_method_details_sepa_debit = { - bank_code?: string | null - branch_code?: string | null - country?: string | null - fingerprint?: string | null - last4?: string | null - mandate?: string | null + bank_code?: (string | null) | undefined + branch_code?: (string | null) | undefined + country?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: (string | null) | undefined } export type t_payment_method_details_sofort = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - country?: string | null - generated_sepa_debit?: string | t_payment_method | null - generated_sepa_debit_mandate?: string | t_mandate | null - iban_last4?: string | null - preferred_language?: "de" | "en" | "es" | "fr" | "it" | "nl" | "pl" | null - verified_name?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + country?: (string | null) | undefined + generated_sepa_debit?: (string | t_payment_method | null) | undefined + generated_sepa_debit_mandate?: (string | t_mandate | null) | undefined + iban_last4?: (string | null) | undefined + preferred_language?: + | ("de" | "en" | "es" | "fr" | "it" | "nl" | "pl" | null) + | undefined + verified_name?: (string | null) | undefined } export type t_payment_method_details_stripe_account = EmptyObject export type t_payment_method_details_swish = { - fingerprint?: string | null - payment_reference?: string | null - verified_phone_last4?: string | null + fingerprint?: (string | null) | undefined + payment_reference?: (string | null) | undefined + verified_phone_last4?: (string | null) | undefined } export type t_payment_method_details_twint = EmptyObject export type t_payment_method_details_us_bank_account = { - account_holder_type?: "company" | "individual" | null - account_type?: "checking" | "savings" | null - bank_name?: string | null - fingerprint?: string | null - last4?: string | null - mandate?: string | t_mandate - payment_reference?: string | null - routing_number?: string | null + account_holder_type?: ("company" | "individual" | null) | undefined + account_type?: ("checking" | "savings" | null) | undefined + bank_name?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate?: (string | t_mandate) | undefined + payment_reference?: (string | null) | undefined + routing_number?: (string | null) | undefined } export type t_payment_method_details_wechat = EmptyObject export type t_payment_method_details_wechat_pay = { - fingerprint?: string | null - transaction_id?: string | null + fingerprint?: (string | null) | undefined + transaction_id?: (string | null) | undefined } export type t_payment_method_details_zip = EmptyObject @@ -8643,7 +9375,9 @@ export type t_payment_method_domain = { export type t_payment_method_domain_resource_payment_method_status = { status: "active" | "inactive" - status_details?: t_payment_method_domain_resource_payment_method_status_details + status_details?: + | t_payment_method_domain_resource_payment_method_status_details + | undefined } export type t_payment_method_domain_resource_payment_method_status_details = { @@ -8652,35 +9386,38 @@ export type t_payment_method_domain_resource_payment_method_status_details = { export type t_payment_method_eps = { bank?: - | "arzte_und_apotheker_bank" - | "austrian_anadi_bank_ag" - | "bank_austria" - | "bankhaus_carl_spangler" - | "bankhaus_schelhammer_und_schattera_ag" - | "bawag_psk_ag" - | "bks_bank_ag" - | "brull_kallmus_bank_ag" - | "btv_vier_lander_bank" - | "capital_bank_grawe_gruppe_ag" - | "deutsche_bank_ag" - | "dolomitenbank" - | "easybank_ag" - | "erste_bank_und_sparkassen" - | "hypo_alpeadriabank_international_ag" - | "hypo_bank_burgenland_aktiengesellschaft" - | "hypo_noe_lb_fur_niederosterreich_u_wien" - | "hypo_oberosterreich_salzburg_steiermark" - | "hypo_tirol_bank_ag" - | "hypo_vorarlberg_bank_ag" - | "marchfelder_bank" - | "oberbank_ag" - | "raiffeisen_bankengruppe_osterreich" - | "schoellerbank_ag" - | "sparda_bank_wien" - | "volksbank_gruppe" - | "volkskreditbank_ag" - | "vr_bank_braunau" - | null + | ( + | "arzte_und_apotheker_bank" + | "austrian_anadi_bank_ag" + | "bank_austria" + | "bankhaus_carl_spangler" + | "bankhaus_schelhammer_und_schattera_ag" + | "bawag_psk_ag" + | "bks_bank_ag" + | "brull_kallmus_bank_ag" + | "btv_vier_lander_bank" + | "capital_bank_grawe_gruppe_ag" + | "deutsche_bank_ag" + | "dolomitenbank" + | "easybank_ag" + | "erste_bank_und_sparkassen" + | "hypo_alpeadriabank_international_ag" + | "hypo_bank_burgenland_aktiengesellschaft" + | "hypo_noe_lb_fur_niederosterreich_u_wien" + | "hypo_oberosterreich_salzburg_steiermark" + | "hypo_tirol_bank_ag" + | "hypo_vorarlberg_bank_ag" + | "marchfelder_bank" + | "oberbank_ag" + | "raiffeisen_bankengruppe_osterreich" + | "schoellerbank_ag" + | "sparda_bank_wien" + | "volksbank_gruppe" + | "volkskreditbank_ag" + | "vr_bank_braunau" + | null + ) + | undefined } export type t_payment_method_fpx = { @@ -8715,104 +9452,116 @@ export type t_payment_method_grabpay = EmptyObject export type t_payment_method_ideal = { bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - | null + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + | null + ) + | undefined bic?: - | "ABNANL2A" - | "ASNBNL21" - | "BITSNL2A" - | "BUNQNL2A" - | "FVLBNL22" - | "HANDNL2A" - | "INGBNL2A" - | "KNABNL2H" - | "MOYONL21" - | "NNBANL2G" - | "NTSBDEB1" - | "RABONL2U" - | "RBRBNL21" - | "REVOIE23" - | "REVOLT21" - | "SNSBNL2A" - | "TRIONL2U" - | null + | ( + | "ABNANL2A" + | "ASNBNL21" + | "BITSNL2A" + | "BUNQNL2A" + | "FVLBNL22" + | "HANDNL2A" + | "INGBNL2A" + | "KNABNL2H" + | "MOYONL21" + | "NNBANL2G" + | "NTSBDEB1" + | "RABONL2U" + | "RBRBNL21" + | "REVOIE23" + | "REVOLT21" + | "SNSBNL2A" + | "TRIONL2U" + | null + ) + | undefined } export type t_payment_method_interac_present = { - brand?: string | null - cardholder_name?: string | null - country?: string | null - description?: string | null + brand?: (string | null) | undefined + cardholder_name?: (string | null) | undefined + country?: (string | null) | undefined + description?: (string | null) | undefined exp_month: number exp_year: number - fingerprint?: string | null - funding?: string | null - issuer?: string | null - last4?: string | null - networks?: t_payment_method_card_present_networks | null - preferred_locales?: string[] | null + fingerprint?: (string | null) | undefined + funding?: (string | null) | undefined + issuer?: (string | null) | undefined + last4?: (string | null) | undefined + networks?: (t_payment_method_card_present_networks | null) | undefined + preferred_locales?: (string[] | null) | undefined read_method?: - | "contact_emv" - | "contactless_emv" - | "contactless_magstripe_mode" - | "magnetic_stripe_fallback" - | "magnetic_stripe_track2" - | null + | ( + | "contact_emv" + | "contactless_emv" + | "contactless_magstripe_mode" + | "magnetic_stripe_fallback" + | "magnetic_stripe_track2" + | null + ) + | undefined } export type t_payment_method_kakao_pay = EmptyObject export type t_payment_method_klarna = { - dob?: t_payment_flows_private_payment_methods_klarna_dob | null + dob?: (t_payment_flows_private_payment_methods_klarna_dob | null) | undefined } export type t_payment_method_konbini = EmptyObject export type t_payment_method_kr_card = { brand?: - | "bc" - | "citi" - | "hana" - | "hyundai" - | "jeju" - | "jeonbuk" - | "kakaobank" - | "kbank" - | "kdbbank" - | "kookmin" - | "kwangju" - | "lotte" - | "mg" - | "nh" - | "post" - | "samsung" - | "savingsbank" - | "shinhan" - | "shinhyup" - | "suhyup" - | "tossbank" - | "woori" - | null - last4?: string | null + | ( + | "bc" + | "citi" + | "hana" + | "hyundai" + | "jeju" + | "jeonbuk" + | "kakaobank" + | "kbank" + | "kdbbank" + | "kookmin" + | "kwangju" + | "lotte" + | "mg" + | "nh" + | "post" + | "samsung" + | "savingsbank" + | "shinhan" + | "shinhyup" + | "suhyup" + | "tossbank" + | "woori" + | null + ) + | undefined + last4?: (string | null) | undefined } export type t_payment_method_link = { - email?: string | null + email?: (string | null) | undefined } export type t_payment_method_mobilepay = EmptyObject @@ -8824,97 +9573,100 @@ export type t_payment_method_naver_pay = { } export type t_payment_method_options_affirm = { - capture_method?: "manual" - preferred_locale?: string - setup_future_usage?: "none" + capture_method?: "manual" | undefined + preferred_locale?: string | undefined + setup_future_usage?: "none" | undefined } export type t_payment_method_options_afterpay_clearpay = { - capture_method?: "manual" - reference?: string | null - setup_future_usage?: "none" + capture_method?: "manual" | undefined + reference?: (string | null) | undefined + setup_future_usage?: "none" | undefined } export type t_payment_method_options_alipay = { - setup_future_usage?: "none" | "off_session" + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_alma = { - capture_method?: "manual" + capture_method?: "manual" | undefined } export type t_payment_method_options_amazon_pay = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_bancontact = { preferred_language: "de" | "en" | "fr" | "nl" - setup_future_usage?: "none" | "off_session" + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_boleto = { expires_after_days: number - setup_future_usage?: "none" | "off_session" | "on_session" + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_payment_method_options_card_installments = { - available_plans?: t_payment_method_details_card_installments_plan[] | null + available_plans?: + | (t_payment_method_details_card_installments_plan[] | null) + | undefined enabled: boolean - plan?: t_payment_method_details_card_installments_plan | null + plan?: (t_payment_method_details_card_installments_plan | null) | undefined } export type t_payment_method_options_card_mandate_options = { amount: number amount_type: "fixed" | "maximum" - description?: string | null - end_date?: number | null + description?: (string | null) | undefined + end_date?: (number | null) | undefined interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number | null + interval_count?: (number | null) | undefined reference: string start_date: number - supported_types?: "india"[] | null + supported_types?: ("india"[] | null) | undefined } export type t_payment_method_options_card_present = { - request_extended_authorization?: boolean | null - request_incremental_authorization_support?: boolean | null - routing?: t_payment_method_options_card_present_routing + request_extended_authorization?: (boolean | null) | undefined + request_incremental_authorization_support?: (boolean | null) | undefined + routing?: t_payment_method_options_card_present_routing | undefined } export type t_payment_method_options_card_present_routing = { - requested_priority?: "domestic" | "international" | null + requested_priority?: ("domestic" | "international" | null) | undefined } export type t_payment_method_options_cashapp = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" | "on_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session" | "on_session") | undefined } export type t_payment_method_options_customer_balance = { - bank_transfer?: t_payment_method_options_customer_balance_bank_transfer - funding_type?: "bank_transfer" | null - setup_future_usage?: "none" + bank_transfer?: + | t_payment_method_options_customer_balance_bank_transfer + | undefined + funding_type?: ("bank_transfer" | null) | undefined + setup_future_usage?: "none" | undefined } export type t_payment_method_options_customer_balance_bank_transfer = { - eu_bank_transfer?: t_payment_method_options_customer_balance_eu_bank_account - requested_address_types?: ( - | "aba" - | "iban" - | "sepa" - | "sort_code" - | "spei" - | "swift" - | "zengin" - )[] + eu_bank_transfer?: + | t_payment_method_options_customer_balance_eu_bank_account + | undefined + requested_address_types?: + | ("aba" | "iban" | "sepa" | "sort_code" | "spei" | "swift" | "zengin")[] + | undefined type?: - | "eu_bank_transfer" - | "gb_bank_transfer" - | "jp_bank_transfer" - | "mx_bank_transfer" - | "us_bank_transfer" - | null + | ( + | "eu_bank_transfer" + | "gb_bank_transfer" + | "jp_bank_transfer" + | "mx_bank_transfer" + | "us_bank_transfer" + | null + ) + | undefined } export type t_payment_method_options_customer_balance_eu_bank_account = { @@ -8922,135 +9674,140 @@ export type t_payment_method_options_customer_balance_eu_bank_account = { } export type t_payment_method_options_fpx = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_giropay = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_grabpay = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_ideal = { - setup_future_usage?: "none" | "off_session" + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_interac_present = EmptyObject export type t_payment_method_options_klarna = { - capture_method?: "manual" - preferred_locale?: string | null - setup_future_usage?: "none" + capture_method?: "manual" | undefined + preferred_locale?: (string | null) | undefined + setup_future_usage?: "none" | undefined } export type t_payment_method_options_konbini = { - confirmation_number?: string | null - expires_after_days?: number | null - expires_at?: number | null - product_description?: string | null - setup_future_usage?: "none" + confirmation_number?: (string | null) | undefined + expires_after_days?: (number | null) | undefined + expires_at?: (number | null) | undefined + product_description?: (string | null) | undefined + setup_future_usage?: "none" | undefined } export type t_payment_method_options_kr_card = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_multibanco = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_oxxo = { expires_after_days: number - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_p24 = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_paynow = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_paypal = { - capture_method?: "manual" - preferred_locale?: string | null - reference?: string | null - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + preferred_locale?: (string | null) | undefined + reference?: (string | null) | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_pix = { - expires_after_seconds?: number | null - expires_at?: number | null - setup_future_usage?: "none" + expires_after_seconds?: (number | null) | undefined + expires_at?: (number | null) | undefined + setup_future_usage?: "none" | undefined } export type t_payment_method_options_promptpay = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_revolut_pay = { - capture_method?: "manual" - setup_future_usage?: "none" | "off_session" + capture_method?: "manual" | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_sofort = { - preferred_language?: "de" | "en" | "es" | "fr" | "it" | "nl" | "pl" | null - setup_future_usage?: "none" | "off_session" + preferred_language?: + | ("de" | "en" | "es" | "fr" | "it" | "nl" | "pl" | null) + | undefined + setup_future_usage?: ("none" | "off_session") | undefined } export type t_payment_method_options_twint = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_options_us_bank_account_mandate_options = { - collection_method?: "paper" + collection_method?: "paper" | undefined } export type t_payment_method_options_wechat_pay = { - app_id?: string | null - client?: "android" | "ios" | "web" | null - setup_future_usage?: "none" + app_id?: (string | null) | undefined + client?: ("android" | "ios" | "web" | null) | undefined + setup_future_usage?: "none" | undefined } export type t_payment_method_options_zip = { - setup_future_usage?: "none" + setup_future_usage?: "none" | undefined } export type t_payment_method_oxxo = EmptyObject export type t_payment_method_p24 = { bank?: - | "alior_bank" - | "bank_millennium" - | "bank_nowy_bfg_sa" - | "bank_pekao_sa" - | "banki_spbdzielcze" - | "blik" - | "bnp_paribas" - | "boz" - | "citi_handlowy" - | "credit_agricole" - | "envelobank" - | "etransfer_pocztowy24" - | "getin_bank" - | "ideabank" - | "ing" - | "inteligo" - | "mbank_mtransfer" - | "nest_przelew" - | "noble_pay" - | "pbac_z_ipko" - | "plus_bank" - | "santander_przelew24" - | "tmobile_usbugi_bankowe" - | "toyota_bank" - | "velobank" - | "volkswagen_bank" - | null + | ( + | "alior_bank" + | "bank_millennium" + | "bank_nowy_bfg_sa" + | "bank_pekao_sa" + | "banki_spbdzielcze" + | "blik" + | "bnp_paribas" + | "boz" + | "citi_handlowy" + | "credit_agricole" + | "envelobank" + | "etransfer_pocztowy24" + | "getin_bank" + | "ideabank" + | "ing" + | "inteligo" + | "mbank_mtransfer" + | "nest_przelew" + | "noble_pay" + | "pbac_z_ipko" + | "plus_bank" + | "santander_przelew24" + | "tmobile_usbugi_bankowe" + | "toyota_bank" + | "velobank" + | "volkswagen_bank" + | null + ) + | undefined } export type t_payment_method_payco = EmptyObject @@ -9058,8 +9815,8 @@ export type t_payment_method_payco = EmptyObject export type t_payment_method_paynow = EmptyObject export type t_payment_method_paypal = { - payer_email?: string | null - payer_id?: string | null + payer_email?: (string | null) | undefined + payer_id?: (string | null) | undefined } export type t_payment_method_pix = EmptyObject @@ -9071,16 +9828,16 @@ export type t_payment_method_revolut_pay = EmptyObject export type t_payment_method_samsung_pay = EmptyObject export type t_payment_method_sepa_debit = { - bank_code?: string | null - branch_code?: string | null - country?: string | null - fingerprint?: string | null - generated_from?: t_sepa_debit_generated_from | null - last4?: string | null + bank_code?: (string | null) | undefined + branch_code?: (string | null) | undefined + country?: (string | null) | undefined + fingerprint?: (string | null) | undefined + generated_from?: (t_sepa_debit_generated_from | null) | undefined + last4?: (string | null) | undefined } export type t_payment_method_sofort = { - country?: string | null + country?: (string | null) | undefined } export type t_payment_method_swish = EmptyObject @@ -9088,44 +9845,52 @@ export type t_payment_method_swish = EmptyObject export type t_payment_method_twint = EmptyObject export type t_payment_method_us_bank_account = { - account_holder_type?: "company" | "individual" | null - account_type?: "checking" | "savings" | null - bank_name?: string | null - financial_connections_account?: string | null - fingerprint?: string | null - last4?: string | null - networks?: t_us_bank_account_networks | null - routing_number?: string | null - status_details?: t_payment_method_us_bank_account_status_details | null + account_holder_type?: ("company" | "individual" | null) | undefined + account_type?: ("checking" | "savings" | null) | undefined + bank_name?: (string | null) | undefined + financial_connections_account?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + networks?: (t_us_bank_account_networks | null) | undefined + routing_number?: (string | null) | undefined + status_details?: + | (t_payment_method_us_bank_account_status_details | null) + | undefined } export type t_payment_method_us_bank_account_blocked = { network_code?: - | "R02" - | "R03" - | "R04" - | "R05" - | "R07" - | "R08" - | "R10" - | "R11" - | "R16" - | "R20" - | "R29" - | "R31" - | null + | ( + | "R02" + | "R03" + | "R04" + | "R05" + | "R07" + | "R08" + | "R10" + | "R11" + | "R16" + | "R20" + | "R29" + | "R31" + | null + ) + | undefined reason?: - | "bank_account_closed" - | "bank_account_frozen" - | "bank_account_invalid_details" - | "bank_account_restricted" - | "bank_account_unusable" - | "debit_not_authorized" - | null + | ( + | "bank_account_closed" + | "bank_account_frozen" + | "bank_account_invalid_details" + | "bank_account_restricted" + | "bank_account_unusable" + | "debit_not_authorized" + | null + ) + | undefined } export type t_payment_method_us_bank_account_status_details = { - blocked?: t_payment_method_us_bank_account_blocked + blocked?: t_payment_method_us_bank_account_blocked | undefined } export type t_payment_method_wechat_pay = EmptyObject @@ -9137,31 +9902,37 @@ export type t_payment_pages_checkout_session_adaptive_pricing = { } export type t_payment_pages_checkout_session_after_expiration = { - recovery?: t_payment_pages_checkout_session_after_expiration_recovery | null + recovery?: + | (t_payment_pages_checkout_session_after_expiration_recovery | null) + | undefined } export type t_payment_pages_checkout_session_after_expiration_recovery = { allow_promotion_codes: boolean enabled: boolean - expires_at?: number | null - url?: string | null + expires_at?: (number | null) | undefined + url?: (string | null) | undefined } export type t_payment_pages_checkout_session_automatic_tax = { enabled: boolean - liability?: t_connect_account_reference | null - status?: "complete" | "failed" | "requires_location_inputs" | null + liability?: (t_connect_account_reference | null) | undefined + status?: + | ("complete" | "failed" | "requires_location_inputs" | null) + | undefined } export type t_payment_pages_checkout_session_consent = { - promotions?: "opt_in" | "opt_out" | null - terms_of_service?: "accepted" | null + promotions?: ("opt_in" | "opt_out" | null) | undefined + terms_of_service?: ("accepted" | null) | undefined } export type t_payment_pages_checkout_session_consent_collection = { - payment_method_reuse_agreement?: t_payment_pages_checkout_session_payment_method_reuse_agreement | null - promotions?: "auto" | "none" | null - terms_of_service?: "none" | "required" | null + payment_method_reuse_agreement?: + | (t_payment_pages_checkout_session_payment_method_reuse_agreement | null) + | undefined + promotions?: ("auto" | "none" | null) | undefined + terms_of_service?: ("none" | "required" | null) | undefined } export type t_payment_pages_checkout_session_currency_conversion = { @@ -9172,31 +9943,31 @@ export type t_payment_pages_checkout_session_currency_conversion = { } export type t_payment_pages_checkout_session_custom_fields = { - dropdown?: t_payment_pages_checkout_session_custom_fields_dropdown + dropdown?: t_payment_pages_checkout_session_custom_fields_dropdown | undefined key: string label: t_payment_pages_checkout_session_custom_fields_label - numeric?: t_payment_pages_checkout_session_custom_fields_numeric + numeric?: t_payment_pages_checkout_session_custom_fields_numeric | undefined optional: boolean - text?: t_payment_pages_checkout_session_custom_fields_text + text?: t_payment_pages_checkout_session_custom_fields_text | undefined type: "dropdown" | "numeric" | "text" } export type t_payment_pages_checkout_session_custom_fields_dropdown = { - default_value?: string | null + default_value?: (string | null) | undefined options: t_payment_pages_checkout_session_custom_fields_option[] - value?: string | null + value?: (string | null) | undefined } export type t_payment_pages_checkout_session_custom_fields_label = { - custom?: string | null + custom?: (string | null) | undefined type: "custom" } export type t_payment_pages_checkout_session_custom_fields_numeric = { - default_value?: string | null - maximum_length?: number | null - minimum_length?: number | null - value?: string | null + default_value?: (string | null) | undefined + maximum_length?: (number | null) | undefined + minimum_length?: (number | null) | undefined + value?: (string | null) | undefined } export type t_payment_pages_checkout_session_custom_fields_option = { @@ -9205,17 +9976,25 @@ export type t_payment_pages_checkout_session_custom_fields_option = { } export type t_payment_pages_checkout_session_custom_fields_text = { - default_value?: string | null - maximum_length?: number | null - minimum_length?: number | null - value?: string | null + default_value?: (string | null) | undefined + maximum_length?: (number | null) | undefined + minimum_length?: (number | null) | undefined + value?: (string | null) | undefined } export type t_payment_pages_checkout_session_custom_text = { - after_submit?: t_payment_pages_checkout_session_custom_text_position | null - shipping_address?: t_payment_pages_checkout_session_custom_text_position | null - submit?: t_payment_pages_checkout_session_custom_text_position | null - terms_of_service_acceptance?: t_payment_pages_checkout_session_custom_text_position | null + after_submit?: + | (t_payment_pages_checkout_session_custom_text_position | null) + | undefined + shipping_address?: + | (t_payment_pages_checkout_session_custom_text_position | null) + | undefined + submit?: + | (t_payment_pages_checkout_session_custom_text_position | null) + | undefined + terms_of_service_acceptance?: + | (t_payment_pages_checkout_session_custom_text_position | null) + | undefined } export type t_payment_pages_checkout_session_custom_text_position = { @@ -9223,12 +10002,12 @@ export type t_payment_pages_checkout_session_custom_text_position = { } export type t_payment_pages_checkout_session_customer_details = { - address?: t_address | null - email?: string | null - name?: string | null - phone?: string | null - tax_exempt?: "exempt" | "none" | "reverse" | null - tax_ids?: t_payment_pages_checkout_session_tax_id[] | null + address?: (t_address | null) | undefined + email?: (string | null) | undefined + name?: (string | null) | undefined + phone?: (string | null) | undefined + tax_exempt?: ("exempt" | "none" | "reverse" | null) | undefined + tax_ids?: (t_payment_pages_checkout_session_tax_id[] | null) | undefined } export type t_payment_pages_checkout_session_invoice_creation = { @@ -9237,15 +10016,19 @@ export type t_payment_pages_checkout_session_invoice_creation = { } export type t_payment_pages_checkout_session_invoice_settings = { - account_tax_ids?: (string | t_tax_id | t_deleted_tax_id)[] | null - custom_fields?: t_invoice_setting_custom_field[] | null - description?: string | null - footer?: string | null - issuer?: t_connect_account_reference | null - metadata?: { - [key: string]: string | undefined - } | null - rendering_options?: t_invoice_setting_rendering_options | null + account_tax_ids?: + | ((string | t_tax_id | t_deleted_tax_id)[] | null) + | undefined + custom_fields?: (t_invoice_setting_custom_field[] | null) | undefined + description?: (string | null) | undefined + footer?: (string | null) | undefined + issuer?: (t_connect_account_reference | null) | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + rendering_options?: (t_invoice_setting_rendering_options | null) | undefined } export type t_payment_pages_checkout_session_payment_method_reuse_agreement = { @@ -9257,9 +10040,11 @@ export type t_payment_pages_checkout_session_phone_number_collection = { } export type t_payment_pages_checkout_session_saved_payment_method_options = { - allow_redisplay_filters?: ("always" | "limited" | "unspecified")[] | null - payment_method_remove?: "disabled" | "enabled" | null - payment_method_save?: "disabled" | "enabled" | null + allow_redisplay_filters?: + | (("always" | "limited" | "unspecified")[] | null) + | undefined + payment_method_remove?: ("disabled" | "enabled" | null) | undefined + payment_method_save?: ("disabled" | "enabled" | null) | undefined } export type t_payment_pages_checkout_session_shipping_address_collection = { @@ -9508,8 +10293,8 @@ export type t_payment_pages_checkout_session_shipping_cost = { amount_subtotal: number amount_tax: number amount_total: number - shipping_rate?: string | t_shipping_rate | null - taxes?: t_line_items_tax_amount[] + shipping_rate?: (string | t_shipping_rate | null) | undefined + taxes?: t_line_items_tax_amount[] | undefined } export type t_payment_pages_checkout_session_shipping_option = { @@ -9601,7 +10386,7 @@ export type t_payment_pages_checkout_session_tax_id = { | "ve_rif" | "vn_tin" | "za_vat" - value?: string | null + value?: (string | null) | undefined } export type t_payment_pages_checkout_session_tax_id_collection = { @@ -9611,9 +10396,11 @@ export type t_payment_pages_checkout_session_tax_id_collection = { export type t_payment_pages_checkout_session_total_details = { amount_discount: number - amount_shipping?: number | null + amount_shipping?: (number | null) | undefined amount_tax: number - breakdown?: t_payment_pages_checkout_session_total_details_resource_breakdown + breakdown?: + | t_payment_pages_checkout_session_total_details_resource_breakdown + | undefined } export type t_payment_pages_checkout_session_total_details_resource_breakdown = @@ -9626,104 +10413,115 @@ export type t_payment_source = t_account | t_bank_account | t_card | t_source export type t_payout = { amount: number - application_fee?: string | t_application_fee | null - application_fee_amount?: number | null + application_fee?: (string | t_application_fee | null) | undefined + application_fee_amount?: (number | null) | undefined arrival_date: number automatic: boolean - balance_transaction?: string | t_balance_transaction | null + balance_transaction?: (string | t_balance_transaction | null) | undefined created: number currency: string - description?: string | null + description?: (string | null) | undefined destination?: - | string - | t_bank_account - | t_card - | t_deleted_bank_account - | t_deleted_card - | null - failure_balance_transaction?: string | t_balance_transaction | null - failure_code?: string | null - failure_message?: string | null + | ( + | string + | t_bank_account + | t_card + | t_deleted_bank_account + | t_deleted_card + | null + ) + | undefined + failure_balance_transaction?: + | (string | t_balance_transaction | null) + | undefined + failure_code?: (string | null) | undefined + failure_message?: (string | null) | undefined id: string livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined method: string object: "payout" - original_payout?: string | t_payout | null + original_payout?: (string | t_payout | null) | undefined reconciliation_status: "completed" | "in_progress" | "not_applicable" - reversed_by?: string | t_payout | null + reversed_by?: (string | t_payout | null) | undefined source_type: string - statement_descriptor?: string | null + statement_descriptor?: (string | null) | undefined status: string - trace_id?: t_payouts_trace_id | null + trace_id?: (t_payouts_trace_id | null) | undefined type: "bank_account" | "card" } export type t_payouts_trace_id = { status: string - value?: string | null + value?: (string | null) | undefined } export type t_paypal_seller_protection = { - dispute_categories?: ("fraudulent" | "product_not_received")[] | null + dispute_categories?: + | (("fraudulent" | "product_not_received")[] | null) + | undefined status: "eligible" | "not_eligible" | "partially_eligible" } export type t_period = { - end?: number | null - start?: number | null + end?: (number | null) | undefined + start?: (number | null) | undefined } export type t_person = { account: string - additional_tos_acceptances?: t_person_additional_tos_acceptances - address?: t_address - address_kana?: t_legal_entity_japan_address | null - address_kanji?: t_legal_entity_japan_address | null + additional_tos_acceptances?: t_person_additional_tos_acceptances | undefined + address?: t_address | undefined + address_kana?: (t_legal_entity_japan_address | null) | undefined + address_kanji?: (t_legal_entity_japan_address | null) | undefined created: number - dob?: t_legal_entity_dob - email?: string | null - first_name?: string | null - first_name_kana?: string | null - first_name_kanji?: string | null - full_name_aliases?: string[] - future_requirements?: t_person_future_requirements | null - gender?: string | null - id: string - id_number_provided?: boolean - id_number_secondary_provided?: boolean - last_name?: string | null - last_name_kana?: string | null - last_name_kanji?: string | null - maiden_name?: string | null - metadata?: { - [key: string]: string | undefined - } - nationality?: string | null + dob?: t_legal_entity_dob | undefined + email?: (string | null) | undefined + first_name?: (string | null) | undefined + first_name_kana?: (string | null) | undefined + first_name_kanji?: (string | null) | undefined + full_name_aliases?: string[] | undefined + future_requirements?: (t_person_future_requirements | null) | undefined + gender?: (string | null) | undefined + id: string + id_number_provided?: boolean | undefined + id_number_secondary_provided?: boolean | undefined + last_name?: (string | null) | undefined + last_name_kana?: (string | null) | undefined + last_name_kanji?: (string | null) | undefined + maiden_name?: (string | null) | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + nationality?: (string | null) | undefined object: "person" - phone?: string | null - political_exposure?: "existing" | "none" - registered_address?: t_address - relationship?: t_person_relationship - requirements?: t_person_requirements | null - ssn_last_4_provided?: boolean - verification?: t_legal_entity_person_verification + phone?: (string | null) | undefined + political_exposure?: ("existing" | "none") | undefined + registered_address?: t_address | undefined + relationship?: t_person_relationship | undefined + requirements?: (t_person_requirements | null) | undefined + ssn_last_4_provided?: boolean | undefined + verification?: t_legal_entity_person_verification | undefined } export type t_person_additional_tos_acceptance = { - date?: number | null - ip?: string | null - user_agent?: string | null + date?: (number | null) | undefined + ip?: (string | null) | undefined + user_agent?: (string | null) | undefined } export type t_person_additional_tos_acceptances = { - account?: t_person_additional_tos_acceptance | null + account?: (t_person_additional_tos_acceptance | null) | undefined } export type t_person_future_requirements = { - alternatives?: t_account_requirements_alternative[] | null + alternatives?: (t_account_requirements_alternative[] | null) | undefined currently_due: string[] errors: t_account_requirements_error[] eventually_due: string[] @@ -9732,18 +10530,18 @@ export type t_person_future_requirements = { } export type t_person_relationship = { - authorizer?: boolean | null - director?: boolean | null - executive?: boolean | null - legal_guardian?: boolean | null - owner?: boolean | null - percent_ownership?: number | null - representative?: boolean | null - title?: string | null + authorizer?: (boolean | null) | undefined + director?: (boolean | null) | undefined + executive?: (boolean | null) | undefined + legal_guardian?: (boolean | null) | undefined + owner?: (boolean | null) | undefined + percent_ownership?: (number | null) | undefined + representative?: (boolean | null) | undefined + title?: (string | null) | undefined } export type t_person_requirements = { - alternatives?: t_account_requirements_alternative[] | null + alternatives?: (t_account_requirements_alternative[] | null) | undefined currently_due: string[] errors: t_account_requirements_error[] eventually_due: string[] @@ -9753,9 +10551,11 @@ export type t_person_requirements = { export type t_plan = { active: boolean - aggregate_usage?: "last_during_period" | "last_ever" | "max" | "sum" | null - amount?: number | null - amount_decimal?: string | null + aggregate_usage?: + | ("last_during_period" | "last_ever" | "max" | "sum" | null) + | undefined + amount?: (number | null) | undefined + amount_decimal?: (string | null) | undefined billing_scheme: "per_unit" | "tiered" created: number currency: string @@ -9763,38 +10563,40 @@ export type t_plan = { interval: "day" | "month" | "week" | "year" interval_count: number livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null - meter?: string | null - nickname?: string | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + meter?: (string | null) | undefined + nickname?: (string | null) | undefined object: "plan" - product?: string | t_product | t_deleted_product | null - tiers?: t_plan_tier[] - tiers_mode?: "graduated" | "volume" | null - transform_usage?: t_transform_usage | null - trial_period_days?: number | null + product?: (string | t_product | t_deleted_product | null) | undefined + tiers?: t_plan_tier[] | undefined + tiers_mode?: ("graduated" | "volume" | null) | undefined + transform_usage?: (t_transform_usage | null) | undefined + trial_period_days?: (number | null) | undefined usage_type: "licensed" | "metered" } export type t_plan_tier = { - flat_amount?: number | null - flat_amount_decimal?: string | null - unit_amount?: number | null - unit_amount_decimal?: string | null - up_to?: number | null + flat_amount?: (number | null) | undefined + flat_amount_decimal?: (string | null) | undefined + unit_amount?: (number | null) | undefined + unit_amount_decimal?: (string | null) | undefined + up_to?: (number | null) | undefined } export type t_platform_earning_fee_source = { - charge?: string - payout?: string + charge?: string | undefined + payout?: string | undefined type: "charge" | "payout" } export type t_portal_business_profile = { - headline?: string | null - privacy_policy_url?: string | null - terms_of_service_url?: string | null + headline?: (string | null) | undefined + privacy_policy_url?: (string | null) | undefined + terms_of_service_url?: (string | null) | undefined } export type t_portal_customer_update = { @@ -9818,7 +10620,7 @@ export type t_portal_features = { } export type t_portal_flows_after_completion_hosted_confirmation = { - custom_message?: string | null + custom_message?: (string | null) | undefined } export type t_portal_flows_after_completion_redirect = { @@ -9831,9 +10633,15 @@ export type t_portal_flows_coupon_offer = { export type t_portal_flows_flow = { after_completion: t_portal_flows_flow_after_completion - subscription_cancel?: t_portal_flows_flow_subscription_cancel | null - subscription_update?: t_portal_flows_flow_subscription_update | null - subscription_update_confirm?: t_portal_flows_flow_subscription_update_confirm | null + subscription_cancel?: + | (t_portal_flows_flow_subscription_cancel | null) + | undefined + subscription_update?: + | (t_portal_flows_flow_subscription_update | null) + | undefined + subscription_update_confirm?: + | (t_portal_flows_flow_subscription_update_confirm | null) + | undefined type: | "payment_method_update" | "subscription_cancel" @@ -9842,13 +10650,15 @@ export type t_portal_flows_flow = { } export type t_portal_flows_flow_after_completion = { - hosted_confirmation?: t_portal_flows_after_completion_hosted_confirmation | null - redirect?: t_portal_flows_after_completion_redirect | null + hosted_confirmation?: + | (t_portal_flows_after_completion_hosted_confirmation | null) + | undefined + redirect?: (t_portal_flows_after_completion_redirect | null) | undefined type: "hosted_confirmation" | "portal_homepage" | "redirect" } export type t_portal_flows_flow_subscription_cancel = { - retention?: t_portal_flows_retention | null + retention?: (t_portal_flows_retention | null) | undefined subscription: string } @@ -9857,25 +10667,27 @@ export type t_portal_flows_flow_subscription_update = { } export type t_portal_flows_flow_subscription_update_confirm = { - discounts?: t_portal_flows_subscription_update_confirm_discount[] | null + discounts?: + | (t_portal_flows_subscription_update_confirm_discount[] | null) + | undefined items: t_portal_flows_subscription_update_confirm_item[] subscription: string } export type t_portal_flows_retention = { - coupon_offer?: t_portal_flows_coupon_offer | null + coupon_offer?: (t_portal_flows_coupon_offer | null) | undefined type: "coupon_offer" } export type t_portal_flows_subscription_update_confirm_discount = { - coupon?: string | null - promotion_code?: string | null + coupon?: (string | null) | undefined + promotion_code?: (string | null) | undefined } export type t_portal_flows_subscription_update_confirm_item = { - id?: string | null - price?: string | null - quantity?: number + id?: (string | null) | undefined + price?: (string | null) | undefined + quantity?: number | undefined } export type t_portal_invoice_list = { @@ -9884,7 +10696,7 @@ export type t_portal_invoice_list = { export type t_portal_login_page = { enabled: boolean - url?: string | null + url?: (string | null) | undefined } export type t_portal_payment_method_update = { @@ -9923,9 +10735,11 @@ export type t_portal_subscription_cancellation_reason = { export type t_portal_subscription_update = { default_allowed_updates: ("price" | "promotion_code" | "quantity")[] enabled: boolean - products?: t_portal_subscription_update_product[] | null + products?: (t_portal_subscription_update_product[] | null) | undefined proration_behavior: "always_invoice" | "create_prorations" | "none" - schedule_at_period_end?: t_portal_resource_schedule_update_at_period_end + schedule_at_period_end?: + | t_portal_resource_schedule_update_at_period_end + | undefined } export type t_portal_subscription_update_product = { @@ -9938,42 +10752,44 @@ export type t_price = { billing_scheme: "per_unit" | "tiered" created: number currency: string - currency_options?: { - [key: string]: t_currency_option | undefined - } - custom_unit_amount?: t_custom_unit_amount | null + currency_options?: + | { + [key: string]: t_currency_option | undefined + } + | undefined + custom_unit_amount?: (t_custom_unit_amount | null) | undefined id: string livemode: boolean - lookup_key?: string | null + lookup_key?: (string | null) | undefined metadata: { [key: string]: string | undefined } - nickname?: string | null + nickname?: (string | null) | undefined object: "price" product: string | t_product | t_deleted_product - recurring?: t_recurring | null - tax_behavior?: "exclusive" | "inclusive" | "unspecified" | null - tiers?: t_price_tier[] - tiers_mode?: "graduated" | "volume" | null - transform_quantity?: t_transform_quantity | null + recurring?: (t_recurring | null) | undefined + tax_behavior?: ("exclusive" | "inclusive" | "unspecified" | null) | undefined + tiers?: t_price_tier[] | undefined + tiers_mode?: ("graduated" | "volume" | null) | undefined + transform_quantity?: (t_transform_quantity | null) | undefined type: "one_time" | "recurring" - unit_amount?: number | null - unit_amount_decimal?: string | null + unit_amount?: (number | null) | undefined + unit_amount_decimal?: (string | null) | undefined } export type t_price_tier = { - flat_amount?: number | null - flat_amount_decimal?: string | null - unit_amount?: number | null - unit_amount_decimal?: string | null - up_to?: number | null + flat_amount?: (number | null) | undefined + flat_amount_decimal?: (string | null) | undefined + unit_amount?: (number | null) | undefined + unit_amount_decimal?: (string | null) | undefined + up_to?: (number | null) | undefined } export type t_product = { active: boolean created: number - default_price?: string | t_price | null - description?: string | null + default_price?: (string | t_price | null) | undefined + description?: (string | null) | undefined id: string images: string[] livemode: boolean @@ -9983,13 +10799,13 @@ export type t_product = { } name: string object: "product" - package_dimensions?: t_package_dimensions | null - shippable?: boolean | null - statement_descriptor?: string | null - tax_code?: string | t_tax_code | null - unit_label?: string | null + package_dimensions?: (t_package_dimensions | null) | undefined + shippable?: (boolean | null) | undefined + statement_descriptor?: (string | null) | undefined + tax_code?: (string | t_tax_code | null) | undefined + unit_label?: (string | null) | undefined updated: number - url?: string | null + url?: (string | null) | undefined } export type t_product_feature = { @@ -10000,7 +10816,7 @@ export type t_product_feature = { } export type t_product_marketing_feature = { - name?: string + name?: string | undefined } export type t_promotion_code = { @@ -10008,14 +10824,16 @@ export type t_promotion_code = { code: string coupon: t_coupon created: number - customer?: string | t_customer | t_deleted_customer | null - expires_at?: number | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + expires_at?: (number | null) | undefined id: string livemode: boolean - max_redemptions?: number | null - metadata?: { - [key: string]: string | undefined - } | null + max_redemptions?: (number | null) | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "promotion_code" restrictions: t_promotion_codes_resource_restrictions times_redeemed: number @@ -10026,67 +10844,75 @@ export type t_promotion_code_currency_option = { } export type t_promotion_codes_resource_restrictions = { - currency_options?: { - [key: string]: t_promotion_code_currency_option | undefined - } + currency_options?: + | { + [key: string]: t_promotion_code_currency_option | undefined + } + | undefined first_time_transaction: boolean - minimum_amount?: number | null - minimum_amount_currency?: string | null + minimum_amount?: (number | null) | undefined + minimum_amount_currency?: (string | null) | undefined } export type t_quote = { amount_subtotal: number amount_total: number - application?: string | t_application | t_deleted_application | null - application_fee_amount?: number | null - application_fee_percent?: number | null + application?: + | (string | t_application | t_deleted_application | null) + | undefined + application_fee_amount?: (number | null) | undefined + application_fee_percent?: (number | null) | undefined automatic_tax: t_quotes_resource_automatic_tax collection_method: "charge_automatically" | "send_invoice" computed: t_quotes_resource_computed created: number - currency?: string | null - customer?: string | t_customer | t_deleted_customer | null - default_tax_rates?: (string | t_tax_rate)[] - description?: string | null + currency?: (string | null) | undefined + customer?: (string | t_customer | t_deleted_customer | null) | undefined + default_tax_rates?: (string | t_tax_rate)[] | undefined + description?: (string | null) | undefined discounts: (string | t_discount)[] expires_at: number - footer?: string | null - from_quote?: t_quotes_resource_from_quote | null - header?: string | null + footer?: (string | null) | undefined + from_quote?: (t_quotes_resource_from_quote | null) | undefined + header?: (string | null) | undefined id: string - invoice?: string | t_invoice | t_deleted_invoice | null + invoice?: (string | t_invoice | t_deleted_invoice | null) | undefined invoice_settings: t_invoice_setting_quote_setting - line_items?: { - data: t_item[] - has_more: boolean - object: "list" - url: string - } + line_items?: + | { + data: t_item[] + has_more: boolean + object: "list" + url: string + } + | undefined livemode: boolean metadata: { [key: string]: string | undefined } - number?: string | null + number?: (string | null) | undefined object: "quote" - on_behalf_of?: string | t_account | null + on_behalf_of?: (string | t_account | null) | undefined status: "accepted" | "canceled" | "draft" | "open" status_transitions: t_quotes_resource_status_transitions - subscription?: string | t_subscription | null + subscription?: (string | t_subscription | null) | undefined subscription_data: t_quotes_resource_subscription_data_subscription_data - subscription_schedule?: string | t_subscription_schedule | null - test_clock?: string | t_test_helpers_test_clock | null + subscription_schedule?: (string | t_subscription_schedule | null) | undefined + test_clock?: (string | t_test_helpers_test_clock | null) | undefined total_details: t_quotes_resource_total_details - transfer_data?: t_quotes_resource_transfer_data | null + transfer_data?: (t_quotes_resource_transfer_data | null) | undefined } export type t_quotes_resource_automatic_tax = { enabled: boolean - liability?: t_connect_account_reference | null - status?: "complete" | "failed" | "requires_location_inputs" | null + liability?: (t_connect_account_reference | null) | undefined + status?: + | ("complete" | "failed" | "requires_location_inputs" | null) + | undefined } export type t_quotes_resource_computed = { - recurring?: t_quotes_resource_recurring | null + recurring?: (t_quotes_resource_recurring | null) | undefined upfront: t_quotes_resource_upfront } @@ -10104,25 +10930,27 @@ export type t_quotes_resource_recurring = { } export type t_quotes_resource_status_transitions = { - accepted_at?: number | null - canceled_at?: number | null - finalized_at?: number | null + accepted_at?: (number | null) | undefined + canceled_at?: (number | null) | undefined + finalized_at?: (number | null) | undefined } export type t_quotes_resource_subscription_data_subscription_data = { - description?: string | null - effective_date?: number | null - metadata?: { - [key: string]: string | undefined - } | null - trial_period_days?: number | null + description?: (string | null) | undefined + effective_date?: (number | null) | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + trial_period_days?: (number | null) | undefined } export type t_quotes_resource_total_details = { amount_discount: number - amount_shipping?: number | null + amount_shipping?: (number | null) | undefined amount_tax: number - breakdown?: t_quotes_resource_total_details_resource_breakdown + breakdown?: t_quotes_resource_total_details_resource_breakdown | undefined } export type t_quotes_resource_total_details_resource_breakdown = { @@ -10131,20 +10959,22 @@ export type t_quotes_resource_total_details_resource_breakdown = { } export type t_quotes_resource_transfer_data = { - amount?: number | null - amount_percent?: number | null + amount?: (number | null) | undefined + amount_percent?: (number | null) | undefined destination: string | t_account } export type t_quotes_resource_upfront = { amount_subtotal: number amount_total: number - line_items?: { - data: t_item[] - has_more: boolean - object: "list" - url: string - } + line_items?: + | { + data: t_item[] + has_more: boolean + object: "list" + url: string + } + | undefined total_details: t_quotes_resource_total_details } @@ -10156,7 +10986,7 @@ export type t_radar_early_fraud_warning = { id: string livemode: boolean object: "radar.early_fraud_warning" - payment_intent?: string | t_payment_intent + payment_intent?: (string | t_payment_intent) | undefined } export type t_radar_value_list = { @@ -10200,22 +11030,22 @@ export type t_radar_value_list_item = { } export type t_radar_radar_options = { - session?: string + session?: string | undefined } export type t_radar_review_resource_location = { - city?: string | null - country?: string | null - latitude?: number | null - longitude?: number | null - region?: string | null + city?: (string | null) | undefined + country?: (string | null) | undefined + latitude?: (number | null) | undefined + longitude?: (number | null) | undefined + region?: (string | null) | undefined } export type t_radar_review_resource_session = { - browser?: string | null - device?: string | null - platform?: string | null - version?: string | null + browser?: (string | null) | undefined + device?: (string | null) | undefined + platform?: (string | null) | undefined + version?: (string | null) | undefined } export type t_received_payment_method_details_financial_account = { @@ -10224,144 +11054,151 @@ export type t_received_payment_method_details_financial_account = { } export type t_recurring = { - aggregate_usage?: "last_during_period" | "last_ever" | "max" | "sum" | null + aggregate_usage?: + | ("last_during_period" | "last_ever" | "max" | "sum" | null) + | undefined interval: "day" | "month" | "week" | "year" interval_count: number - meter?: string | null + meter?: (string | null) | undefined usage_type: "licensed" | "metered" } export type t_refund = { amount: number - balance_transaction?: string | t_balance_transaction | null - charge?: string | t_charge | null + balance_transaction?: (string | t_balance_transaction | null) | undefined + charge?: (string | t_charge | null) | undefined created: number currency: string - description?: string - destination_details?: t_refund_destination_details - failure_balance_transaction?: string | t_balance_transaction - failure_reason?: string - id: string - instructions_email?: string - metadata?: { - [key: string]: string | undefined - } | null - next_action?: t_refund_next_action + description?: string | undefined + destination_details?: t_refund_destination_details | undefined + failure_balance_transaction?: (string | t_balance_transaction) | undefined + failure_reason?: string | undefined + id: string + instructions_email?: string | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + next_action?: t_refund_next_action | undefined object: "refund" - payment_intent?: string | t_payment_intent | null + payment_intent?: (string | t_payment_intent | null) | undefined reason?: - | "duplicate" - | "expired_uncaptured_charge" - | "fraudulent" - | "requested_by_customer" - | null - receipt_number?: string | null - source_transfer_reversal?: string | t_transfer_reversal | null - status?: string | null - transfer_reversal?: string | t_transfer_reversal | null + | ( + | "duplicate" + | "expired_uncaptured_charge" + | "fraudulent" + | "requested_by_customer" + | null + ) + | undefined + receipt_number?: (string | null) | undefined + source_transfer_reversal?: (string | t_transfer_reversal | null) | undefined + status?: (string | null) | undefined + transfer_reversal?: (string | t_transfer_reversal | null) | undefined } export type t_refund_destination_details = { - affirm?: t_destination_details_unimplemented - afterpay_clearpay?: t_destination_details_unimplemented - alipay?: t_destination_details_unimplemented - alma?: t_destination_details_unimplemented - amazon_pay?: t_destination_details_unimplemented - au_bank_transfer?: t_destination_details_unimplemented - blik?: t_refund_destination_details_blik - br_bank_transfer?: t_refund_destination_details_br_bank_transfer - card?: t_refund_destination_details_card - cashapp?: t_destination_details_unimplemented - customer_cash_balance?: t_destination_details_unimplemented - eps?: t_destination_details_unimplemented - eu_bank_transfer?: t_refund_destination_details_eu_bank_transfer - gb_bank_transfer?: t_refund_destination_details_gb_bank_transfer - giropay?: t_destination_details_unimplemented - grabpay?: t_destination_details_unimplemented - jp_bank_transfer?: t_refund_destination_details_jp_bank_transfer - klarna?: t_destination_details_unimplemented - multibanco?: t_refund_destination_details_multibanco - mx_bank_transfer?: t_refund_destination_details_mx_bank_transfer - p24?: t_refund_destination_details_p24 - paynow?: t_destination_details_unimplemented - paypal?: t_destination_details_unimplemented - pix?: t_destination_details_unimplemented - revolut?: t_destination_details_unimplemented - sofort?: t_destination_details_unimplemented - swish?: t_refund_destination_details_swish - th_bank_transfer?: t_refund_destination_details_th_bank_transfer + affirm?: t_destination_details_unimplemented | undefined + afterpay_clearpay?: t_destination_details_unimplemented | undefined + alipay?: t_destination_details_unimplemented | undefined + alma?: t_destination_details_unimplemented | undefined + amazon_pay?: t_destination_details_unimplemented | undefined + au_bank_transfer?: t_destination_details_unimplemented | undefined + blik?: t_refund_destination_details_blik | undefined + br_bank_transfer?: t_refund_destination_details_br_bank_transfer | undefined + card?: t_refund_destination_details_card | undefined + cashapp?: t_destination_details_unimplemented | undefined + customer_cash_balance?: t_destination_details_unimplemented | undefined + eps?: t_destination_details_unimplemented | undefined + eu_bank_transfer?: t_refund_destination_details_eu_bank_transfer | undefined + gb_bank_transfer?: t_refund_destination_details_gb_bank_transfer | undefined + giropay?: t_destination_details_unimplemented | undefined + grabpay?: t_destination_details_unimplemented | undefined + jp_bank_transfer?: t_refund_destination_details_jp_bank_transfer | undefined + klarna?: t_destination_details_unimplemented | undefined + multibanco?: t_refund_destination_details_multibanco | undefined + mx_bank_transfer?: t_refund_destination_details_mx_bank_transfer | undefined + p24?: t_refund_destination_details_p24 | undefined + paynow?: t_destination_details_unimplemented | undefined + paypal?: t_destination_details_unimplemented | undefined + pix?: t_destination_details_unimplemented | undefined + revolut?: t_destination_details_unimplemented | undefined + sofort?: t_destination_details_unimplemented | undefined + swish?: t_refund_destination_details_swish | undefined + th_bank_transfer?: t_refund_destination_details_th_bank_transfer | undefined type: string - us_bank_transfer?: t_refund_destination_details_us_bank_transfer - wechat_pay?: t_destination_details_unimplemented - zip?: t_destination_details_unimplemented + us_bank_transfer?: t_refund_destination_details_us_bank_transfer | undefined + wechat_pay?: t_destination_details_unimplemented | undefined + zip?: t_destination_details_unimplemented | undefined } export type t_refund_destination_details_blik = { - network_decline_code?: string | null - reference?: string | null - reference_status?: string | null + network_decline_code?: (string | null) | undefined + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_br_bank_transfer = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_card = { - reference?: string - reference_status?: string - reference_type?: string + reference?: string | undefined + reference_status?: string | undefined + reference_type?: string | undefined type: "pending" | "refund" | "reversal" } export type t_refund_destination_details_eu_bank_transfer = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_gb_bank_transfer = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_jp_bank_transfer = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_multibanco = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_mx_bank_transfer = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_p24 = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_swish = { - network_decline_code?: string | null - reference?: string | null - reference_status?: string | null + network_decline_code?: (string | null) | undefined + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_th_bank_transfer = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_destination_details_us_bank_transfer = { - reference?: string | null - reference_status?: string | null + reference?: (string | null) | undefined + reference_status?: (string | null) | undefined } export type t_refund_next_action = { - display_details?: t_refund_next_action_display_details + display_details?: t_refund_next_action_display_details | undefined type: string } @@ -10372,21 +11209,21 @@ export type t_refund_next_action_display_details = { export type t_reporting_report_run = { created: number - error?: string | null + error?: (string | null) | undefined id: string livemode: boolean object: "reporting.report_run" parameters: t_financial_reporting_finance_report_run_run_parameters report_type: string - result?: t_file | null + result?: (t_file | null) | undefined status: string - succeeded_at?: number | null + succeeded_at?: (number | null) | undefined } export type t_reporting_report_type = { data_available_end: number data_available_start: number - default_columns?: string[] | null + default_columns?: (string[] | null) | undefined id: string livemode: boolean name: string @@ -10398,32 +11235,35 @@ export type t_reporting_report_type = { export type t_reserve_transaction = { amount: number currency: string - description?: string | null + description?: (string | null) | undefined id: string object: "reserve_transaction" } export type t_review = { - billing_zip?: string | null - charge?: string | t_charge | null + billing_zip?: (string | null) | undefined + charge?: (string | t_charge | null) | undefined closed_reason?: - | "approved" - | "disputed" - | "redacted" - | "refunded" - | "refunded_as_fraud" - | null + | ( + | "approved" + | "disputed" + | "redacted" + | "refunded" + | "refunded_as_fraud" + | null + ) + | undefined created: number id: string - ip_address?: string | null - ip_address_location?: t_radar_review_resource_location | null + ip_address?: (string | null) | undefined + ip_address_location?: (t_radar_review_resource_location | null) | undefined livemode: boolean object: "review" open: boolean opened_reason: "manual" | "rule" - payment_intent?: string | t_payment_intent + payment_intent?: (string | t_payment_intent) | undefined reason: string - session?: t_radar_review_resource_session | null + session?: (t_radar_review_resource_session | null) | undefined } export type t_rule = { @@ -10435,8 +11275,8 @@ export type t_rule = { export type t_scheduled_query_run = { created: number data_load_time: number - error?: t_sigma_scheduled_query_run_error - file?: t_file | null + error?: t_sigma_scheduled_query_run_error | undefined + file?: (t_file | null) | undefined id: string livemode: boolean object: "scheduled_query_run" @@ -10448,58 +11288,62 @@ export type t_scheduled_query_run = { export type t_schedules_phase_automatic_tax = { enabled: boolean - liability?: t_connect_account_reference | null + liability?: (t_connect_account_reference | null) | undefined } export type t_secret_service_resource_scope = { type: "account" | "user" - user?: string + user?: string | undefined } export type t_sepa_debit_generated_from = { - charge?: string | t_charge | null - setup_attempt?: string | t_setup_attempt | null + charge?: (string | t_charge | null) | undefined + setup_attempt?: (string | t_setup_attempt | null) | undefined } export type t_setup_attempt = { - application?: string | t_application | null - attach_to_self?: boolean + application?: (string | t_application | null) | undefined + attach_to_self?: boolean | undefined created: number - customer?: string | t_customer | t_deleted_customer | null - flow_directions?: ("inbound" | "outbound")[] | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + flow_directions?: (("inbound" | "outbound")[] | null) | undefined id: string livemode: boolean object: "setup_attempt" - on_behalf_of?: string | t_account | null + on_behalf_of?: (string | t_account | null) | undefined payment_method: string | t_payment_method payment_method_details: t_setup_attempt_payment_method_details - setup_error?: t_api_errors | null + setup_error?: (t_api_errors | null) | undefined setup_intent: string | t_setup_intent status: string usage: string } export type t_setup_attempt_payment_method_details = { - acss_debit?: t_setup_attempt_payment_method_details_acss_debit - amazon_pay?: t_setup_attempt_payment_method_details_amazon_pay - au_becs_debit?: t_setup_attempt_payment_method_details_au_becs_debit - bacs_debit?: t_setup_attempt_payment_method_details_bacs_debit - bancontact?: t_setup_attempt_payment_method_details_bancontact - boleto?: t_setup_attempt_payment_method_details_boleto - card?: t_setup_attempt_payment_method_details_card - card_present?: t_setup_attempt_payment_method_details_card_present - cashapp?: t_setup_attempt_payment_method_details_cashapp - ideal?: t_setup_attempt_payment_method_details_ideal - kakao_pay?: t_setup_attempt_payment_method_details_kakao_pay - klarna?: t_setup_attempt_payment_method_details_klarna - kr_card?: t_setup_attempt_payment_method_details_kr_card - link?: t_setup_attempt_payment_method_details_link - paypal?: t_setup_attempt_payment_method_details_paypal - revolut_pay?: t_setup_attempt_payment_method_details_revolut_pay - sepa_debit?: t_setup_attempt_payment_method_details_sepa_debit - sofort?: t_setup_attempt_payment_method_details_sofort + acss_debit?: t_setup_attempt_payment_method_details_acss_debit | undefined + amazon_pay?: t_setup_attempt_payment_method_details_amazon_pay | undefined + au_becs_debit?: + | t_setup_attempt_payment_method_details_au_becs_debit + | undefined + bacs_debit?: t_setup_attempt_payment_method_details_bacs_debit | undefined + bancontact?: t_setup_attempt_payment_method_details_bancontact | undefined + boleto?: t_setup_attempt_payment_method_details_boleto | undefined + card?: t_setup_attempt_payment_method_details_card | undefined + card_present?: t_setup_attempt_payment_method_details_card_present | undefined + cashapp?: t_setup_attempt_payment_method_details_cashapp | undefined + ideal?: t_setup_attempt_payment_method_details_ideal | undefined + kakao_pay?: t_setup_attempt_payment_method_details_kakao_pay | undefined + klarna?: t_setup_attempt_payment_method_details_klarna | undefined + kr_card?: t_setup_attempt_payment_method_details_kr_card | undefined + link?: t_setup_attempt_payment_method_details_link | undefined + paypal?: t_setup_attempt_payment_method_details_paypal | undefined + revolut_pay?: t_setup_attempt_payment_method_details_revolut_pay | undefined + sepa_debit?: t_setup_attempt_payment_method_details_sepa_debit | undefined + sofort?: t_setup_attempt_payment_method_details_sofort | undefined type: string - us_bank_account?: t_setup_attempt_payment_method_details_us_bank_account + us_bank_account?: + | t_setup_attempt_payment_method_details_us_bank_account + | undefined } export type t_setup_attempt_payment_method_details_acss_debit = EmptyObject @@ -10511,46 +11355,50 @@ export type t_setup_attempt_payment_method_details_au_becs_debit = EmptyObject export type t_setup_attempt_payment_method_details_bacs_debit = EmptyObject export type t_setup_attempt_payment_method_details_bancontact = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - generated_sepa_debit?: string | t_payment_method | null - generated_sepa_debit_mandate?: string | t_mandate | null - iban_last4?: string | null - preferred_language?: "de" | "en" | "fr" | "nl" | null - verified_name?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + generated_sepa_debit?: (string | t_payment_method | null) | undefined + generated_sepa_debit_mandate?: (string | t_mandate | null) | undefined + iban_last4?: (string | null) | undefined + preferred_language?: ("de" | "en" | "fr" | "nl" | null) | undefined + verified_name?: (string | null) | undefined } export type t_setup_attempt_payment_method_details_boleto = EmptyObject export type t_setup_attempt_payment_method_details_card = { - brand?: string | null - checks?: t_setup_attempt_payment_method_details_card_checks | null - country?: string | null - exp_month?: number | null - exp_year?: number | null - fingerprint?: string | null - funding?: string | null - last4?: string | null - network?: string | null - three_d_secure?: t_three_d_secure_details | null - wallet?: t_setup_attempt_payment_method_details_card_wallet | null + brand?: (string | null) | undefined + checks?: + | (t_setup_attempt_payment_method_details_card_checks | null) + | undefined + country?: (string | null) | undefined + exp_month?: (number | null) | undefined + exp_year?: (number | null) | undefined + fingerprint?: (string | null) | undefined + funding?: (string | null) | undefined + last4?: (string | null) | undefined + network?: (string | null) | undefined + three_d_secure?: (t_three_d_secure_details | null) | undefined + wallet?: + | (t_setup_attempt_payment_method_details_card_wallet | null) + | undefined } export type t_setup_attempt_payment_method_details_card_checks = { - address_line1_check?: string | null - address_postal_code_check?: string | null - cvc_check?: string | null + address_line1_check?: (string | null) | undefined + address_postal_code_check?: (string | null) | undefined + cvc_check?: (string | null) | undefined } export type t_setup_attempt_payment_method_details_card_present = { - generated_card?: string | t_payment_method | null - offline?: t_payment_method_details_card_present_offline | null + generated_card?: (string | t_payment_method | null) | undefined + offline?: (t_payment_method_details_card_present_offline | null) | undefined } export type t_setup_attempt_payment_method_details_card_wallet = { - apple_pay?: t_payment_method_details_card_wallet_apple_pay - google_pay?: t_payment_method_details_card_wallet_google_pay + apple_pay?: t_payment_method_details_card_wallet_apple_pay | undefined + google_pay?: t_payment_method_details_card_wallet_google_pay | undefined type: "apple_pay" | "google_pay" | "link" } @@ -10558,46 +11406,52 @@ export type t_setup_attempt_payment_method_details_cashapp = EmptyObject export type t_setup_attempt_payment_method_details_ideal = { bank?: - | "abn_amro" - | "asn_bank" - | "bunq" - | "handelsbanken" - | "ing" - | "knab" - | "moneyou" - | "n26" - | "nn" - | "rabobank" - | "regiobank" - | "revolut" - | "sns_bank" - | "triodos_bank" - | "van_lanschot" - | "yoursafe" - | null + | ( + | "abn_amro" + | "asn_bank" + | "bunq" + | "handelsbanken" + | "ing" + | "knab" + | "moneyou" + | "n26" + | "nn" + | "rabobank" + | "regiobank" + | "revolut" + | "sns_bank" + | "triodos_bank" + | "van_lanschot" + | "yoursafe" + | null + ) + | undefined bic?: - | "ABNANL2A" - | "ASNBNL21" - | "BITSNL2A" - | "BUNQNL2A" - | "FVLBNL22" - | "HANDNL2A" - | "INGBNL2A" - | "KNABNL2H" - | "MOYONL21" - | "NNBANL2G" - | "NTSBDEB1" - | "RABONL2U" - | "RBRBNL21" - | "REVOIE23" - | "REVOLT21" - | "SNSBNL2A" - | "TRIONL2U" - | null - generated_sepa_debit?: string | t_payment_method | null - generated_sepa_debit_mandate?: string | t_mandate | null - iban_last4?: string | null - verified_name?: string | null + | ( + | "ABNANL2A" + | "ASNBNL21" + | "BITSNL2A" + | "BUNQNL2A" + | "FVLBNL22" + | "HANDNL2A" + | "INGBNL2A" + | "KNABNL2H" + | "MOYONL21" + | "NNBANL2G" + | "NTSBDEB1" + | "RABONL2U" + | "RBRBNL21" + | "REVOIE23" + | "REVOLT21" + | "SNSBNL2A" + | "TRIONL2U" + | null + ) + | undefined + generated_sepa_debit?: (string | t_payment_method | null) | undefined + generated_sepa_debit_mandate?: (string | t_mandate | null) | undefined + iban_last4?: (string | null) | undefined + verified_name?: (string | null) | undefined } export type t_setup_attempt_payment_method_details_kakao_pay = EmptyObject @@ -10615,48 +11469,54 @@ export type t_setup_attempt_payment_method_details_revolut_pay = EmptyObject export type t_setup_attempt_payment_method_details_sepa_debit = EmptyObject export type t_setup_attempt_payment_method_details_sofort = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - generated_sepa_debit?: string | t_payment_method | null - generated_sepa_debit_mandate?: string | t_mandate | null - iban_last4?: string | null - preferred_language?: "de" | "en" | "fr" | "nl" | null - verified_name?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + generated_sepa_debit?: (string | t_payment_method | null) | undefined + generated_sepa_debit_mandate?: (string | t_mandate | null) | undefined + iban_last4?: (string | null) | undefined + preferred_language?: ("de" | "en" | "fr" | "nl" | null) | undefined + verified_name?: (string | null) | undefined } export type t_setup_attempt_payment_method_details_us_bank_account = EmptyObject export type t_setup_intent = { - application?: string | t_application | null - attach_to_self?: boolean - automatic_payment_methods?: t_payment_flows_automatic_payment_methods_setup_intent | null + application?: (string | t_application | null) | undefined + attach_to_self?: boolean | undefined + automatic_payment_methods?: + | (t_payment_flows_automatic_payment_methods_setup_intent | null) + | undefined cancellation_reason?: - | "abandoned" - | "duplicate" - | "requested_by_customer" - | null - client_secret?: string | null + | ("abandoned" | "duplicate" | "requested_by_customer" | null) + | undefined + client_secret?: (string | null) | undefined created: number - customer?: string | t_customer | t_deleted_customer | null - description?: string | null - flow_directions?: ("inbound" | "outbound")[] | null + customer?: (string | t_customer | t_deleted_customer | null) | undefined + description?: (string | null) | undefined + flow_directions?: (("inbound" | "outbound")[] | null) | undefined id: string - last_setup_error?: t_api_errors | null - latest_attempt?: string | t_setup_attempt | null + last_setup_error?: (t_api_errors | null) | undefined + latest_attempt?: (string | t_setup_attempt | null) | undefined livemode: boolean - mandate?: string | t_mandate | null - metadata?: { - [key: string]: string | undefined - } | null - next_action?: t_setup_intent_next_action | null + mandate?: (string | t_mandate | null) | undefined + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + next_action?: (t_setup_intent_next_action | null) | undefined object: "setup_intent" - on_behalf_of?: string | t_account | null - payment_method?: string | t_payment_method | null - payment_method_configuration_details?: t_payment_method_config_biz_payment_method_configuration_details | null - payment_method_options?: t_setup_intent_payment_method_options | null + on_behalf_of?: (string | t_account | null) | undefined + payment_method?: (string | t_payment_method | null) | undefined + payment_method_configuration_details?: + | (t_payment_method_config_biz_payment_method_configuration_details | null) + | undefined + payment_method_options?: + | (t_setup_intent_payment_method_options | null) + | undefined payment_method_types: string[] - single_use_mandate?: string | t_mandate | null + single_use_mandate?: (string | t_mandate | null) | undefined status: | "canceled" | "processing" @@ -10668,97 +11528,139 @@ export type t_setup_intent = { } export type t_setup_intent_next_action = { - cashapp_handle_redirect_or_display_qr_code?: t_payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code - redirect_to_url?: t_setup_intent_next_action_redirect_to_url + cashapp_handle_redirect_or_display_qr_code?: + | t_payment_intent_next_action_cashapp_handle_redirect_or_display_qr_code + | undefined + redirect_to_url?: t_setup_intent_next_action_redirect_to_url | undefined type: string - use_stripe_sdk?: EmptyObject - verify_with_microdeposits?: t_setup_intent_next_action_verify_with_microdeposits + use_stripe_sdk?: EmptyObject | undefined + verify_with_microdeposits?: + | t_setup_intent_next_action_verify_with_microdeposits + | undefined } export type t_setup_intent_next_action_redirect_to_url = { - return_url?: string | null - url?: string | null + return_url?: (string | null) | undefined + url?: (string | null) | undefined } export type t_setup_intent_next_action_verify_with_microdeposits = { arrival_date: number hosted_verification_url: string - microdeposit_type?: "amounts" | "descriptor_code" | null + microdeposit_type?: ("amounts" | "descriptor_code" | null) | undefined } export type t_setup_intent_payment_method_options = { acss_debit?: - | t_setup_intent_payment_method_options_acss_debit - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_acss_debit + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined amazon_pay?: - | t_setup_intent_payment_method_options_amazon_pay - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_amazon_pay + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined bacs_debit?: - | t_setup_intent_payment_method_options_bacs_debit - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_bacs_debit + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined card?: - | t_setup_intent_payment_method_options_card - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_card + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined card_present?: - | t_setup_intent_payment_method_options_card_present - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_card_present + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined link?: - | t_setup_intent_payment_method_options_link - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_link + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined paypal?: - | t_setup_intent_payment_method_options_paypal - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_paypal + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined sepa_debit?: - | t_setup_intent_payment_method_options_sepa_debit - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_sepa_debit + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined us_bank_account?: - | t_setup_intent_payment_method_options_us_bank_account - | t_setup_intent_type_specific_payment_method_options_client + | ( + | t_setup_intent_payment_method_options_us_bank_account + | t_setup_intent_type_specific_payment_method_options_client + ) + | undefined } export type t_setup_intent_payment_method_options_acss_debit = { - currency?: "cad" | "usd" | null - mandate_options?: t_setup_intent_payment_method_options_mandate_options_acss_debit - verification_method?: "automatic" | "instant" | "microdeposits" + currency?: ("cad" | "usd" | null) | undefined + mandate_options?: + | t_setup_intent_payment_method_options_mandate_options_acss_debit + | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_setup_intent_payment_method_options_amazon_pay = EmptyObject export type t_setup_intent_payment_method_options_bacs_debit = { - mandate_options?: t_setup_intent_payment_method_options_mandate_options_bacs_debit + mandate_options?: + | t_setup_intent_payment_method_options_mandate_options_bacs_debit + | undefined } export type t_setup_intent_payment_method_options_card = { - mandate_options?: t_setup_intent_payment_method_options_card_mandate_options | null + mandate_options?: + | (t_setup_intent_payment_method_options_card_mandate_options | null) + | undefined network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - | null - request_three_d_secure?: "any" | "automatic" | "challenge" | null + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + | null + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge" | null) + | undefined } export type t_setup_intent_payment_method_options_card_mandate_options = { amount: number amount_type: "fixed" | "maximum" currency: string - description?: string | null - end_date?: number | null + description?: (string | null) | undefined + end_date?: (number | null) | undefined interval: "day" | "month" | "sporadic" | "week" | "year" - interval_count?: number | null + interval_count?: (number | null) | undefined reference: string start_date: number - supported_types?: "india"[] | null + supported_types?: ("india"[] | null) | undefined } export type t_setup_intent_payment_method_options_card_present = EmptyObject @@ -10766,11 +11668,11 @@ export type t_setup_intent_payment_method_options_card_present = EmptyObject export type t_setup_intent_payment_method_options_link = EmptyObject export type t_setup_intent_payment_method_options_mandate_options_acss_debit = { - custom_mandate_url?: string - default_for?: ("invoice" | "subscription")[] - interval_description?: string | null - payment_schedule?: "combined" | "interval" | "sporadic" | null - transaction_type?: "business" | "personal" | null + custom_mandate_url?: string | undefined + default_for?: ("invoice" | "subscription")[] | undefined + interval_description?: (string | null) | undefined + payment_schedule?: ("combined" | "interval" | "sporadic" | null) | undefined + transaction_type?: ("business" | "personal" | null) | undefined } export type t_setup_intent_payment_method_options_mandate_options_bacs_debit = @@ -10780,45 +11682,49 @@ export type t_setup_intent_payment_method_options_mandate_options_sepa_debit = EmptyObject export type t_setup_intent_payment_method_options_paypal = { - billing_agreement_id?: string | null + billing_agreement_id?: (string | null) | undefined } export type t_setup_intent_payment_method_options_sepa_debit = { - mandate_options?: t_setup_intent_payment_method_options_mandate_options_sepa_debit + mandate_options?: + | t_setup_intent_payment_method_options_mandate_options_sepa_debit + | undefined } export type t_setup_intent_payment_method_options_us_bank_account = { - financial_connections?: t_linked_account_options_us_bank_account - mandate_options?: t_payment_method_options_us_bank_account_mandate_options - verification_method?: "automatic" | "instant" | "microdeposits" + financial_connections?: t_linked_account_options_us_bank_account | undefined + mandate_options?: + | t_payment_method_options_us_bank_account_mandate_options + | undefined + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_setup_intent_type_specific_payment_method_options_client = { - verification_method?: "automatic" | "instant" | "microdeposits" + verification_method?: ("automatic" | "instant" | "microdeposits") | undefined } export type t_shipping = { - address?: t_address - carrier?: string | null - name?: string - phone?: string | null - tracking_number?: string | null + address?: t_address | undefined + carrier?: (string | null) | undefined + name?: string | undefined + phone?: (string | null) | undefined + tracking_number?: (string | null) | undefined } export type t_shipping_rate = { active: boolean created: number - delivery_estimate?: t_shipping_rate_delivery_estimate | null - display_name?: string | null - fixed_amount?: t_shipping_rate_fixed_amount + delivery_estimate?: (t_shipping_rate_delivery_estimate | null) | undefined + display_name?: (string | null) | undefined + fixed_amount?: t_shipping_rate_fixed_amount | undefined id: string livemode: boolean metadata: { [key: string]: string | undefined } object: "shipping_rate" - tax_behavior?: "exclusive" | "inclusive" | "unspecified" | null - tax_code?: string | t_tax_code | null + tax_behavior?: ("exclusive" | "inclusive" | "unspecified" | null) | undefined + tax_code?: (string | t_tax_code | null) | undefined type: "fixed_amount" } @@ -10828,8 +11734,8 @@ export type t_shipping_rate_currency_option = { } export type t_shipping_rate_delivery_estimate = { - maximum?: t_shipping_rate_delivery_estimate_bound | null - minimum?: t_shipping_rate_delivery_estimate_bound | null + maximum?: (t_shipping_rate_delivery_estimate_bound | null) | undefined + minimum?: (t_shipping_rate_delivery_estimate_bound | null) | undefined } export type t_shipping_rate_delivery_estimate_bound = { @@ -10840,9 +11746,11 @@ export type t_shipping_rate_delivery_estimate_bound = { export type t_shipping_rate_fixed_amount = { amount: number currency: string - currency_options?: { - [key: string]: t_shipping_rate_currency_option | undefined - } + currency_options?: + | { + [key: string]: t_shipping_rate_currency_option | undefined + } + | undefined } export type t_sigma_scheduled_query_run_error = { @@ -10850,42 +11758,44 @@ export type t_sigma_scheduled_query_run_error = { } export type t_source = { - ach_credit_transfer?: t_source_type_ach_credit_transfer - ach_debit?: t_source_type_ach_debit - acss_debit?: t_source_type_acss_debit - alipay?: t_source_type_alipay - amount?: number | null - au_becs_debit?: t_source_type_au_becs_debit - bancontact?: t_source_type_bancontact - card?: t_source_type_card - card_present?: t_source_type_card_present + ach_credit_transfer?: t_source_type_ach_credit_transfer | undefined + ach_debit?: t_source_type_ach_debit | undefined + acss_debit?: t_source_type_acss_debit | undefined + alipay?: t_source_type_alipay | undefined + amount?: (number | null) | undefined + au_becs_debit?: t_source_type_au_becs_debit | undefined + bancontact?: t_source_type_bancontact | undefined + card?: t_source_type_card | undefined + card_present?: t_source_type_card_present | undefined client_secret: string - code_verification?: t_source_code_verification_flow + code_verification?: t_source_code_verification_flow | undefined created: number - currency?: string | null - customer?: string - eps?: t_source_type_eps + currency?: (string | null) | undefined + customer?: string | undefined + eps?: t_source_type_eps | undefined flow: string - giropay?: t_source_type_giropay + giropay?: t_source_type_giropay | undefined id: string - ideal?: t_source_type_ideal - klarna?: t_source_type_klarna + ideal?: t_source_type_ideal | undefined + klarna?: t_source_type_klarna | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null - multibanco?: t_source_type_multibanco + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + multibanco?: t_source_type_multibanco | undefined object: "source" - owner?: t_source_owner | null - p24?: t_source_type_p24 - receiver?: t_source_receiver_flow - redirect?: t_source_redirect_flow - sepa_debit?: t_source_type_sepa_debit - sofort?: t_source_type_sofort - source_order?: t_source_order - statement_descriptor?: string | null + owner?: (t_source_owner | null) | undefined + p24?: t_source_type_p24 | undefined + receiver?: t_source_receiver_flow | undefined + redirect?: t_source_redirect_flow | undefined + sepa_debit?: t_source_type_sepa_debit | undefined + sofort?: t_source_type_sofort | undefined + source_order?: t_source_order | undefined + statement_descriptor?: (string | null) | undefined status: string - three_d_secure?: t_source_type_three_d_secure + three_d_secure?: t_source_type_three_d_secure | undefined type: | "ach_credit_transfer" | "ach_debit" @@ -10905,8 +11815,8 @@ export type t_source = { | "sofort" | "three_d_secure" | "wechat" - usage?: string | null - wechat?: t_source_type_wechat + usage?: (string | null) | undefined + wechat?: t_source_type_wechat | undefined } export type t_source_code_verification_flow = { @@ -10915,64 +11825,64 @@ export type t_source_code_verification_flow = { } export type t_source_mandate_notification = { - acss_debit?: t_source_mandate_notification_acss_debit_data - amount?: number | null - bacs_debit?: t_source_mandate_notification_bacs_debit_data + acss_debit?: t_source_mandate_notification_acss_debit_data | undefined + amount?: (number | null) | undefined + bacs_debit?: t_source_mandate_notification_bacs_debit_data | undefined created: number id: string livemode: boolean object: "source_mandate_notification" reason: string - sepa_debit?: t_source_mandate_notification_sepa_debit_data + sepa_debit?: t_source_mandate_notification_sepa_debit_data | undefined source: t_source status: string type: string } export type t_source_mandate_notification_acss_debit_data = { - statement_descriptor?: string + statement_descriptor?: string | undefined } export type t_source_mandate_notification_bacs_debit_data = { - last4?: string + last4?: string | undefined } export type t_source_mandate_notification_sepa_debit_data = { - creditor_identifier?: string - last4?: string - mandate_reference?: string + creditor_identifier?: string | undefined + last4?: string | undefined + mandate_reference?: string | undefined } export type t_source_order = { amount: number currency: string - email?: string - items?: t_source_order_item[] | null - shipping?: t_shipping + email?: string | undefined + items?: (t_source_order_item[] | null) | undefined + shipping?: t_shipping | undefined } export type t_source_order_item = { - amount?: number | null - currency?: string | null - description?: string | null - parent?: string | null - quantity?: number - type?: string | null + amount?: (number | null) | undefined + currency?: (string | null) | undefined + description?: (string | null) | undefined + parent?: (string | null) | undefined + quantity?: number | undefined + type?: (string | null) | undefined } export type t_source_owner = { - address?: t_address | null - email?: string | null - name?: string | null - phone?: string | null - verified_address?: t_address | null - verified_email?: string | null - verified_name?: string | null - verified_phone?: string | null + address?: (t_address | null) | undefined + email?: (string | null) | undefined + name?: (string | null) | undefined + phone?: (string | null) | undefined + verified_address?: (t_address | null) | undefined + verified_email?: (string | null) | undefined + verified_name?: (string | null) | undefined + verified_phone?: (string | null) | undefined } export type t_source_receiver_flow = { - address?: string | null + address?: (string | null) | undefined amount_charged: number amount_received: number amount_returned: number @@ -10981,24 +11891,32 @@ export type t_source_receiver_flow = { } export type t_source_redirect_flow = { - failure_reason?: string | null + failure_reason?: (string | null) | undefined return_url: string status: string url: string } export type t_source_transaction = { - ach_credit_transfer?: t_source_transaction_ach_credit_transfer_data + ach_credit_transfer?: + | t_source_transaction_ach_credit_transfer_data + | undefined amount: number - chf_credit_transfer?: t_source_transaction_chf_credit_transfer_data + chf_credit_transfer?: + | t_source_transaction_chf_credit_transfer_data + | undefined created: number currency: string - gbp_credit_transfer?: t_source_transaction_gbp_credit_transfer_data + gbp_credit_transfer?: + | t_source_transaction_gbp_credit_transfer_data + | undefined id: string livemode: boolean object: "source_transaction" - paper_check?: t_source_transaction_paper_check_data - sepa_credit_transfer?: t_source_transaction_sepa_credit_transfer_data + paper_check?: t_source_transaction_paper_check_data | undefined + sepa_credit_transfer?: + | t_source_transaction_sepa_credit_transfer_data + | undefined source: string status: string type: @@ -11021,274 +11939,280 @@ export type t_source_transaction = { } export type t_source_transaction_ach_credit_transfer_data = { - customer_data?: string - fingerprint?: string - last4?: string - routing_number?: string + customer_data?: string | undefined + fingerprint?: string | undefined + last4?: string | undefined + routing_number?: string | undefined } export type t_source_transaction_chf_credit_transfer_data = { - reference?: string - sender_address_country?: string - sender_address_line1?: string - sender_iban?: string - sender_name?: string + reference?: string | undefined + sender_address_country?: string | undefined + sender_address_line1?: string | undefined + sender_iban?: string | undefined + sender_name?: string | undefined } export type t_source_transaction_gbp_credit_transfer_data = { - fingerprint?: string - funding_method?: string - last4?: string - reference?: string - sender_account_number?: string - sender_name?: string - sender_sort_code?: string + fingerprint?: string | undefined + funding_method?: string | undefined + last4?: string | undefined + reference?: string | undefined + sender_account_number?: string | undefined + sender_name?: string | undefined + sender_sort_code?: string | undefined } export type t_source_transaction_paper_check_data = { - available_at?: string - invoices?: string + available_at?: string | undefined + invoices?: string | undefined } export type t_source_transaction_sepa_credit_transfer_data = { - reference?: string - sender_iban?: string - sender_name?: string + reference?: string | undefined + sender_iban?: string | undefined + sender_name?: string | undefined } export type t_source_type_ach_credit_transfer = { - account_number?: string | null - bank_name?: string | null - fingerprint?: string | null - refund_account_holder_name?: string | null - refund_account_holder_type?: string | null - refund_routing_number?: string | null - routing_number?: string | null - swift_code?: string | null + account_number?: (string | null) | undefined + bank_name?: (string | null) | undefined + fingerprint?: (string | null) | undefined + refund_account_holder_name?: (string | null) | undefined + refund_account_holder_type?: (string | null) | undefined + refund_routing_number?: (string | null) | undefined + routing_number?: (string | null) | undefined + swift_code?: (string | null) | undefined } export type t_source_type_ach_debit = { - bank_name?: string | null - country?: string | null - fingerprint?: string | null - last4?: string | null - routing_number?: string | null - type?: string | null + bank_name?: (string | null) | undefined + country?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + routing_number?: (string | null) | undefined + type?: (string | null) | undefined } export type t_source_type_acss_debit = { - bank_address_city?: string | null - bank_address_line_1?: string | null - bank_address_line_2?: string | null - bank_address_postal_code?: string | null - bank_name?: string | null - category?: string | null - country?: string | null - fingerprint?: string | null - last4?: string | null - routing_number?: string | null + bank_address_city?: (string | null) | undefined + bank_address_line_1?: (string | null) | undefined + bank_address_line_2?: (string | null) | undefined + bank_address_postal_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + category?: (string | null) | undefined + country?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + routing_number?: (string | null) | undefined } export type t_source_type_alipay = { - data_string?: string | null - native_url?: string | null - statement_descriptor?: string | null + data_string?: (string | null) | undefined + native_url?: (string | null) | undefined + statement_descriptor?: (string | null) | undefined } export type t_source_type_au_becs_debit = { - bsb_number?: string | null - fingerprint?: string | null - last4?: string | null + bsb_number?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined } export type t_source_type_bancontact = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - iban_last4?: string | null - preferred_language?: string | null - statement_descriptor?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + iban_last4?: (string | null) | undefined + preferred_language?: (string | null) | undefined + statement_descriptor?: (string | null) | undefined } export type t_source_type_card = { - address_line1_check?: string | null - address_zip_check?: string | null - brand?: string | null - country?: string | null - cvc_check?: string | null - dynamic_last4?: string | null - exp_month?: number | null - exp_year?: number | null - fingerprint?: string - funding?: string | null - last4?: string | null - name?: string | null - three_d_secure?: string - tokenization_method?: string | null + address_line1_check?: (string | null) | undefined + address_zip_check?: (string | null) | undefined + brand?: (string | null) | undefined + country?: (string | null) | undefined + cvc_check?: (string | null) | undefined + dynamic_last4?: (string | null) | undefined + exp_month?: (number | null) | undefined + exp_year?: (number | null) | undefined + fingerprint?: string | undefined + funding?: (string | null) | undefined + last4?: (string | null) | undefined + name?: (string | null) | undefined + three_d_secure?: string | undefined + tokenization_method?: (string | null) | undefined } export type t_source_type_card_present = { - application_cryptogram?: string - application_preferred_name?: string - authorization_code?: string | null - authorization_response_code?: string - brand?: string | null - country?: string | null - cvm_type?: string - data_type?: string | null - dedicated_file_name?: string - emv_auth_data?: string - evidence_customer_signature?: string | null - evidence_transaction_certificate?: string | null - exp_month?: number | null - exp_year?: number | null - fingerprint?: string - funding?: string | null - last4?: string | null - pos_device_id?: string | null - pos_entry_mode?: string - read_method?: string | null - reader?: string | null - terminal_verification_results?: string - transaction_status_information?: string + application_cryptogram?: string | undefined + application_preferred_name?: string | undefined + authorization_code?: (string | null) | undefined + authorization_response_code?: string | undefined + brand?: (string | null) | undefined + country?: (string | null) | undefined + cvm_type?: string | undefined + data_type?: (string | null) | undefined + dedicated_file_name?: string | undefined + emv_auth_data?: string | undefined + evidence_customer_signature?: (string | null) | undefined + evidence_transaction_certificate?: (string | null) | undefined + exp_month?: (number | null) | undefined + exp_year?: (number | null) | undefined + fingerprint?: string | undefined + funding?: (string | null) | undefined + last4?: (string | null) | undefined + pos_device_id?: (string | null) | undefined + pos_entry_mode?: string | undefined + read_method?: (string | null) | undefined + reader?: (string | null) | undefined + terminal_verification_results?: string | undefined + transaction_status_information?: string | undefined } export type t_source_type_eps = { - reference?: string | null - statement_descriptor?: string | null + reference?: (string | null) | undefined + statement_descriptor?: (string | null) | undefined } export type t_source_type_giropay = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - statement_descriptor?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + statement_descriptor?: (string | null) | undefined } export type t_source_type_ideal = { - bank?: string | null - bic?: string | null - iban_last4?: string | null - statement_descriptor?: string | null + bank?: (string | null) | undefined + bic?: (string | null) | undefined + iban_last4?: (string | null) | undefined + statement_descriptor?: (string | null) | undefined } export type t_source_type_klarna = { - background_image_url?: string - client_token?: string | null - first_name?: string - last_name?: string - locale?: string - logo_url?: string - page_title?: string - pay_later_asset_urls_descriptive?: string - pay_later_asset_urls_standard?: string - pay_later_name?: string - pay_later_redirect_url?: string - pay_now_asset_urls_descriptive?: string - pay_now_asset_urls_standard?: string - pay_now_name?: string - pay_now_redirect_url?: string - pay_over_time_asset_urls_descriptive?: string - pay_over_time_asset_urls_standard?: string - pay_over_time_name?: string - pay_over_time_redirect_url?: string - payment_method_categories?: string - purchase_country?: string - purchase_type?: string - redirect_url?: string - shipping_delay?: number - shipping_first_name?: string - shipping_last_name?: string + background_image_url?: string | undefined + client_token?: (string | null) | undefined + first_name?: string | undefined + last_name?: string | undefined + locale?: string | undefined + logo_url?: string | undefined + page_title?: string | undefined + pay_later_asset_urls_descriptive?: string | undefined + pay_later_asset_urls_standard?: string | undefined + pay_later_name?: string | undefined + pay_later_redirect_url?: string | undefined + pay_now_asset_urls_descriptive?: string | undefined + pay_now_asset_urls_standard?: string | undefined + pay_now_name?: string | undefined + pay_now_redirect_url?: string | undefined + pay_over_time_asset_urls_descriptive?: string | undefined + pay_over_time_asset_urls_standard?: string | undefined + pay_over_time_name?: string | undefined + pay_over_time_redirect_url?: string | undefined + payment_method_categories?: string | undefined + purchase_country?: string | undefined + purchase_type?: string | undefined + redirect_url?: string | undefined + shipping_delay?: number | undefined + shipping_first_name?: string | undefined + shipping_last_name?: string | undefined } export type t_source_type_multibanco = { - entity?: string | null - reference?: string | null - refund_account_holder_address_city?: string | null - refund_account_holder_address_country?: string | null - refund_account_holder_address_line1?: string | null - refund_account_holder_address_line2?: string | null - refund_account_holder_address_postal_code?: string | null - refund_account_holder_address_state?: string | null - refund_account_holder_name?: string | null - refund_iban?: string | null + entity?: (string | null) | undefined + reference?: (string | null) | undefined + refund_account_holder_address_city?: (string | null) | undefined + refund_account_holder_address_country?: (string | null) | undefined + refund_account_holder_address_line1?: (string | null) | undefined + refund_account_holder_address_line2?: (string | null) | undefined + refund_account_holder_address_postal_code?: (string | null) | undefined + refund_account_holder_address_state?: (string | null) | undefined + refund_account_holder_name?: (string | null) | undefined + refund_iban?: (string | null) | undefined } export type t_source_type_p24 = { - reference?: string | null + reference?: (string | null) | undefined } export type t_source_type_sepa_debit = { - bank_code?: string | null - branch_code?: string | null - country?: string | null - fingerprint?: string | null - last4?: string | null - mandate_reference?: string | null - mandate_url?: string | null + bank_code?: (string | null) | undefined + branch_code?: (string | null) | undefined + country?: (string | null) | undefined + fingerprint?: (string | null) | undefined + last4?: (string | null) | undefined + mandate_reference?: (string | null) | undefined + mandate_url?: (string | null) | undefined } export type t_source_type_sofort = { - bank_code?: string | null - bank_name?: string | null - bic?: string | null - country?: string | null - iban_last4?: string | null - preferred_language?: string | null - statement_descriptor?: string | null + bank_code?: (string | null) | undefined + bank_name?: (string | null) | undefined + bic?: (string | null) | undefined + country?: (string | null) | undefined + iban_last4?: (string | null) | undefined + preferred_language?: (string | null) | undefined + statement_descriptor?: (string | null) | undefined } export type t_source_type_three_d_secure = { - address_line1_check?: string | null - address_zip_check?: string | null - authenticated?: boolean | null - brand?: string | null - card?: string | null - country?: string | null - customer?: string | null - cvc_check?: string | null - dynamic_last4?: string | null - exp_month?: number | null - exp_year?: number | null - fingerprint?: string - funding?: string | null - last4?: string | null - name?: string | null - three_d_secure?: string - tokenization_method?: string | null + address_line1_check?: (string | null) | undefined + address_zip_check?: (string | null) | undefined + authenticated?: (boolean | null) | undefined + brand?: (string | null) | undefined + card?: (string | null) | undefined + country?: (string | null) | undefined + customer?: (string | null) | undefined + cvc_check?: (string | null) | undefined + dynamic_last4?: (string | null) | undefined + exp_month?: (number | null) | undefined + exp_year?: (number | null) | undefined + fingerprint?: string | undefined + funding?: (string | null) | undefined + last4?: (string | null) | undefined + name?: (string | null) | undefined + three_d_secure?: string | undefined + tokenization_method?: (string | null) | undefined } export type t_source_type_wechat = { - prepay_id?: string - qr_code_url?: string | null - statement_descriptor?: string + prepay_id?: string | undefined + qr_code_url?: (string | null) | undefined + statement_descriptor?: string | undefined } export type t_subscription = { - application?: string | t_application | t_deleted_application | null - application_fee_percent?: number | null + application?: + | (string | t_application | t_deleted_application | null) + | undefined + application_fee_percent?: (number | null) | undefined automatic_tax: t_subscription_automatic_tax billing_cycle_anchor: number - billing_cycle_anchor_config?: t_subscriptions_resource_billing_cycle_anchor_config | null - billing_thresholds?: t_subscription_billing_thresholds | null - cancel_at?: number | null + billing_cycle_anchor_config?: + | (t_subscriptions_resource_billing_cycle_anchor_config | null) + | undefined + billing_thresholds?: (t_subscription_billing_thresholds | null) | undefined + cancel_at?: (number | null) | undefined cancel_at_period_end: boolean - canceled_at?: number | null - cancellation_details?: t_cancellation_details | null + canceled_at?: (number | null) | undefined + cancellation_details?: (t_cancellation_details | null) | undefined collection_method: "charge_automatically" | "send_invoice" created: number currency: string current_period_end: number current_period_start: number customer: string | t_customer | t_deleted_customer - days_until_due?: number | null - default_payment_method?: string | t_payment_method | null - default_source?: string | t_bank_account | t_card | t_source | null - default_tax_rates?: t_tax_rate[] | null - description?: string | null - discount?: t_discount | null + days_until_due?: (number | null) | undefined + default_payment_method?: (string | t_payment_method | null) | undefined + default_source?: + | (string | t_bank_account | t_card | t_source | null) + | undefined + default_tax_rates?: (t_tax_rate[] | null) | undefined + description?: (string | null) | undefined + discount?: (t_discount | null) | undefined discounts: (string | t_discount)[] - ended_at?: number | null + ended_at?: (number | null) | undefined id: string invoice_settings: t_subscriptions_resource_subscription_invoice_settings items: { @@ -11297,20 +12221,26 @@ export type t_subscription = { object: "list" url: string } - latest_invoice?: string | t_invoice | null + latest_invoice?: (string | t_invoice | null) | undefined livemode: boolean metadata: { [key: string]: string | undefined } - next_pending_invoice_item_invoice?: number | null + next_pending_invoice_item_invoice?: (number | null) | undefined object: "subscription" - on_behalf_of?: string | t_account | null - pause_collection?: t_subscriptions_resource_pause_collection | null - payment_settings?: t_subscriptions_resource_payment_settings | null - pending_invoice_item_interval?: t_subscription_pending_invoice_item_interval | null - pending_setup_intent?: string | t_setup_intent | null - pending_update?: t_subscriptions_resource_pending_update | null - schedule?: string | t_subscription_schedule | null + on_behalf_of?: (string | t_account | null) | undefined + pause_collection?: + | (t_subscriptions_resource_pause_collection | null) + | undefined + payment_settings?: + | (t_subscriptions_resource_payment_settings | null) + | undefined + pending_invoice_item_interval?: + | (t_subscription_pending_invoice_item_interval | null) + | undefined + pending_setup_intent?: (string | t_setup_intent | null) | undefined + pending_update?: (t_subscriptions_resource_pending_update | null) | undefined + schedule?: (string | t_subscription_schedule | null) | undefined start_date: number status: | "active" @@ -11321,31 +12251,37 @@ export type t_subscription = { | "paused" | "trialing" | "unpaid" - test_clock?: string | t_test_helpers_test_clock | null - transfer_data?: t_subscription_transfer_data | null - trial_end?: number | null - trial_settings?: t_subscriptions_trials_resource_trial_settings | null - trial_start?: number | null + test_clock?: (string | t_test_helpers_test_clock | null) | undefined + transfer_data?: (t_subscription_transfer_data | null) | undefined + trial_end?: (number | null) | undefined + trial_settings?: + | (t_subscriptions_trials_resource_trial_settings | null) + | undefined + trial_start?: (number | null) | undefined } export type t_subscription_automatic_tax = { enabled: boolean - liability?: t_connect_account_reference | null + liability?: (t_connect_account_reference | null) | undefined } export type t_subscription_billing_thresholds = { - amount_gte?: number | null - reset_billing_cycle_anchor?: boolean | null + amount_gte?: (number | null) | undefined + reset_billing_cycle_anchor?: (boolean | null) | undefined } export type t_subscription_details_data = { - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined } export type t_subscription_item = { - billing_thresholds?: t_subscription_item_billing_thresholds | null + billing_thresholds?: + | (t_subscription_item_billing_thresholds | null) + | undefined created: number discounts: (string | t_discount)[] id: string @@ -11354,33 +12290,38 @@ export type t_subscription_item = { } object: "subscription_item" price: t_price - quantity?: number + quantity?: number | undefined subscription: string - tax_rates?: t_tax_rate[] | null + tax_rates?: (t_tax_rate[] | null) | undefined } export type t_subscription_item_billing_thresholds = { - usage_gte?: number | null + usage_gte?: (number | null) | undefined } export type t_subscription_payment_method_options_card = { - mandate_options?: t_invoice_mandate_options_card + mandate_options?: t_invoice_mandate_options_card | undefined network?: - | "amex" - | "cartes_bancaires" - | "diners" - | "discover" - | "eftpos_au" - | "girocard" - | "interac" - | "jcb" - | "link" - | "mastercard" - | "unionpay" - | "unknown" - | "visa" - | null - request_three_d_secure?: "any" | "automatic" | "challenge" | null + | ( + | "amex" + | "cartes_bancaires" + | "diners" + | "discover" + | "eftpos_au" + | "girocard" + | "interac" + | "jcb" + | "link" + | "mastercard" + | "unionpay" + | "unknown" + | "visa" + | null + ) + | undefined + request_three_d_secure?: + | ("any" | "automatic" | "challenge" | null) + | undefined } export type t_subscription_pending_invoice_item_interval = { @@ -11389,44 +12330,52 @@ export type t_subscription_pending_invoice_item_interval = { } export type t_subscription_schedule = { - application?: string | t_application | t_deleted_application | null - canceled_at?: number | null - completed_at?: number | null + application?: + | (string | t_application | t_deleted_application | null) + | undefined + canceled_at?: (number | null) | undefined + completed_at?: (number | null) | undefined created: number - current_phase?: t_subscription_schedule_current_phase | null + current_phase?: (t_subscription_schedule_current_phase | null) | undefined customer: string | t_customer | t_deleted_customer default_settings: t_subscription_schedules_resource_default_settings end_behavior: "cancel" | "none" | "release" | "renew" id: string livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "subscription_schedule" phases: t_subscription_schedule_phase_configuration[] - released_at?: number | null - released_subscription?: string | null + released_at?: (number | null) | undefined + released_subscription?: (string | null) | undefined status: "active" | "canceled" | "completed" | "not_started" | "released" - subscription?: string | t_subscription | null - test_clock?: string | t_test_helpers_test_clock | null + subscription?: (string | t_subscription | null) | undefined + test_clock?: (string | t_test_helpers_test_clock | null) | undefined } export type t_subscription_schedule_add_invoice_item = { discounts: t_discounts_resource_stackable_discount[] price: string | t_price | t_deleted_price - quantity?: number | null - tax_rates?: t_tax_rate[] | null + quantity?: (number | null) | undefined + tax_rates?: (t_tax_rate[] | null) | undefined } export type t_subscription_schedule_configuration_item = { - billing_thresholds?: t_subscription_item_billing_thresholds | null + billing_thresholds?: + | (t_subscription_item_billing_thresholds | null) + | undefined discounts: t_discounts_resource_stackable_discount[] - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined price: string | t_price | t_deleted_price - quantity?: number - tax_rates?: t_tax_rate[] | null + quantity?: number | undefined + tax_rates?: (t_tax_rate[] | null) | undefined } export type t_subscription_schedule_current_phase = { @@ -11436,130 +12385,151 @@ export type t_subscription_schedule_current_phase = { export type t_subscription_schedule_phase_configuration = { add_invoice_items: t_subscription_schedule_add_invoice_item[] - application_fee_percent?: number | null - automatic_tax?: t_schedules_phase_automatic_tax - billing_cycle_anchor?: "automatic" | "phase_start" | null - billing_thresholds?: t_subscription_billing_thresholds | null - collection_method?: "charge_automatically" | "send_invoice" | null - coupon?: string | t_coupon | t_deleted_coupon | null + application_fee_percent?: (number | null) | undefined + automatic_tax?: t_schedules_phase_automatic_tax | undefined + billing_cycle_anchor?: ("automatic" | "phase_start" | null) | undefined + billing_thresholds?: (t_subscription_billing_thresholds | null) | undefined + collection_method?: + | ("charge_automatically" | "send_invoice" | null) + | undefined + coupon?: (string | t_coupon | t_deleted_coupon | null) | undefined currency: string - default_payment_method?: string | t_payment_method | null - default_tax_rates?: t_tax_rate[] | null - description?: string | null + default_payment_method?: (string | t_payment_method | null) | undefined + default_tax_rates?: (t_tax_rate[] | null) | undefined + description?: (string | null) | undefined discounts: t_discounts_resource_stackable_discount[] end_date: number - invoice_settings?: t_invoice_setting_subscription_schedule_phase_setting | null + invoice_settings?: + | (t_invoice_setting_subscription_schedule_phase_setting | null) + | undefined items: t_subscription_schedule_configuration_item[] - metadata?: { - [key: string]: string | undefined - } | null - on_behalf_of?: string | t_account | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined + on_behalf_of?: (string | t_account | null) | undefined proration_behavior: "always_invoice" | "create_prorations" | "none" start_date: number - transfer_data?: t_subscription_transfer_data | null - trial_end?: number | null + transfer_data?: (t_subscription_transfer_data | null) | undefined + trial_end?: (number | null) | undefined } export type t_subscription_schedules_resource_default_settings = { - application_fee_percent?: number | null - automatic_tax?: t_subscription_schedules_resource_default_settings_automatic_tax + application_fee_percent?: (number | null) | undefined + automatic_tax?: + | t_subscription_schedules_resource_default_settings_automatic_tax + | undefined billing_cycle_anchor: "automatic" | "phase_start" - billing_thresholds?: t_subscription_billing_thresholds | null - collection_method?: "charge_automatically" | "send_invoice" | null - default_payment_method?: string | t_payment_method | null - description?: string | null + billing_thresholds?: (t_subscription_billing_thresholds | null) | undefined + collection_method?: + | ("charge_automatically" | "send_invoice" | null) + | undefined + default_payment_method?: (string | t_payment_method | null) | undefined + description?: (string | null) | undefined invoice_settings: t_invoice_setting_subscription_schedule_setting - on_behalf_of?: string | t_account | null - transfer_data?: t_subscription_transfer_data | null + on_behalf_of?: (string | t_account | null) | undefined + transfer_data?: (t_subscription_transfer_data | null) | undefined } export type t_subscription_schedules_resource_default_settings_automatic_tax = { enabled: boolean - liability?: t_connect_account_reference | null + liability?: (t_connect_account_reference | null) | undefined } export type t_subscription_transfer_data = { - amount_percent?: number | null + amount_percent?: (number | null) | undefined destination: string | t_account } export type t_subscriptions_resource_billing_cycle_anchor_config = { day_of_month: number - hour?: number | null - minute?: number | null - month?: number | null - second?: number | null + hour?: (number | null) | undefined + minute?: (number | null) | undefined + month?: (number | null) | undefined + second?: (number | null) | undefined } export type t_subscriptions_resource_pause_collection = { behavior: "keep_as_draft" | "mark_uncollectible" | "void" - resumes_at?: number | null + resumes_at?: (number | null) | undefined } export type t_subscriptions_resource_payment_method_options = { - acss_debit?: t_invoice_payment_method_options_acss_debit | null - bancontact?: t_invoice_payment_method_options_bancontact | null - card?: t_subscription_payment_method_options_card | null - customer_balance?: t_invoice_payment_method_options_customer_balance | null - konbini?: t_invoice_payment_method_options_konbini | null - sepa_debit?: t_invoice_payment_method_options_sepa_debit | null - us_bank_account?: t_invoice_payment_method_options_us_bank_account | null + acss_debit?: (t_invoice_payment_method_options_acss_debit | null) | undefined + bancontact?: (t_invoice_payment_method_options_bancontact | null) | undefined + card?: (t_subscription_payment_method_options_card | null) | undefined + customer_balance?: + | (t_invoice_payment_method_options_customer_balance | null) + | undefined + konbini?: (t_invoice_payment_method_options_konbini | null) | undefined + sepa_debit?: (t_invoice_payment_method_options_sepa_debit | null) | undefined + us_bank_account?: + | (t_invoice_payment_method_options_us_bank_account | null) + | undefined } export type t_subscriptions_resource_payment_settings = { - payment_method_options?: t_subscriptions_resource_payment_method_options | null + payment_method_options?: + | (t_subscriptions_resource_payment_method_options | null) + | undefined payment_method_types?: | ( - | "ach_credit_transfer" - | "ach_debit" - | "acss_debit" - | "amazon_pay" - | "au_becs_debit" - | "bacs_debit" - | "bancontact" - | "boleto" - | "card" - | "cashapp" - | "customer_balance" - | "eps" - | "fpx" - | "giropay" - | "grabpay" - | "ideal" - | "jp_credit_transfer" - | "kakao_pay" - | "konbini" - | "kr_card" - | "link" - | "multibanco" - | "naver_pay" - | "p24" - | "payco" - | "paynow" - | "paypal" - | "promptpay" - | "revolut_pay" - | "sepa_credit_transfer" - | "sepa_debit" - | "sofort" - | "swish" - | "us_bank_account" - | "wechat_pay" - )[] - | null - save_default_payment_method?: "off" | "on_subscription" | null + | ( + | "ach_credit_transfer" + | "ach_debit" + | "acss_debit" + | "amazon_pay" + | "au_becs_debit" + | "bacs_debit" + | "bancontact" + | "boleto" + | "card" + | "cashapp" + | "customer_balance" + | "eps" + | "fpx" + | "giropay" + | "grabpay" + | "ideal" + | "jp_credit_transfer" + | "kakao_pay" + | "konbini" + | "kr_card" + | "link" + | "multibanco" + | "naver_pay" + | "p24" + | "payco" + | "paynow" + | "paypal" + | "promptpay" + | "revolut_pay" + | "sepa_credit_transfer" + | "sepa_debit" + | "sofort" + | "swish" + | "us_bank_account" + | "wechat_pay" + )[] + | null + ) + | undefined + save_default_payment_method?: ("off" | "on_subscription" | null) | undefined } export type t_subscriptions_resource_pending_update = { - billing_cycle_anchor?: number | null + billing_cycle_anchor?: (number | null) | undefined expires_at: number - subscription_items?: t_subscription_item[] | null - trial_end?: number | null - trial_from_plan?: boolean | null + subscription_items?: (t_subscription_item[] | null) | undefined + trial_end?: (number | null) | undefined + trial_from_plan?: (boolean | null) | undefined } export type t_subscriptions_resource_subscription_invoice_settings = { - account_tax_ids?: (string | t_tax_id | t_deleted_tax_id)[] | null + account_tax_ids?: + | ((string | t_tax_id | t_deleted_tax_id)[] | null) + | undefined issuer: t_connect_account_reference } @@ -11574,20 +12544,26 @@ export type t_subscriptions_trials_resource_trial_settings = { export type t_tax_calculation = { amount_total: number currency: string - customer?: string | null + customer?: (string | null) | undefined customer_details: t_tax_product_resource_customer_details - expires_at?: number | null - id?: string | null - line_items?: { - data: t_tax_calculation_line_item[] - has_more: boolean - object: "list" - url: string - } | null + expires_at?: (number | null) | undefined + id?: (string | null) | undefined + line_items?: + | ({ + data: t_tax_calculation_line_item[] + has_more: boolean + object: "list" + url: string + } | null) + | undefined livemode: boolean object: "tax.calculation" - ship_from_details?: t_tax_product_resource_ship_from_details | null - shipping_cost?: t_tax_product_resource_tax_calculation_shipping_cost | null + ship_from_details?: + | (t_tax_product_resource_ship_from_details | null) + | undefined + shipping_cost?: + | (t_tax_product_resource_tax_calculation_shipping_cost | null) + | undefined tax_amount_exclusive: number tax_amount_inclusive: number tax_breakdown: t_tax_product_resource_tax_breakdown[] @@ -11600,11 +12576,13 @@ export type t_tax_calculation_line_item = { id: string livemode: boolean object: "tax.calculation_line_item" - product?: string | null + product?: (string | null) | undefined quantity: number - reference?: string | null + reference?: (string | null) | undefined tax_behavior: "exclusive" | "inclusive" - tax_breakdown?: t_tax_product_resource_line_item_tax_breakdown[] | null + tax_breakdown?: + | (t_tax_product_resource_line_item_tax_breakdown[] | null) + | undefined tax_code: string } @@ -11613,7 +12591,7 @@ export type t_tax_registration = { country: string country_options: t_tax_product_registrations_resource_country_options created: number - expires_at?: number | null + expires_at?: (number | null) | undefined id: string livemode: boolean object: "tax.registration" @@ -11622,7 +12600,9 @@ export type t_tax_registration = { export type t_tax_settings = { defaults: t_tax_product_resource_tax_settings_defaults - head_office?: t_tax_product_resource_tax_settings_head_office | null + head_office?: + | (t_tax_product_resource_tax_settings_head_office | null) + | undefined livemode: boolean object: "tax.settings" status: "active" | "pending" @@ -11632,25 +12612,35 @@ export type t_tax_settings = { export type t_tax_transaction = { created: number currency: string - customer?: string | null + customer?: (string | null) | undefined customer_details: t_tax_product_resource_customer_details id: string - line_items?: { - data: t_tax_transaction_line_item[] - has_more: boolean - object: "list" - url: string - } | null + line_items?: + | ({ + data: t_tax_transaction_line_item[] + has_more: boolean + object: "list" + url: string + } | null) + | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "tax.transaction" posted_at: number reference: string - reversal?: t_tax_product_resource_tax_transaction_resource_reversal | null - ship_from_details?: t_tax_product_resource_ship_from_details | null - shipping_cost?: t_tax_product_resource_tax_transaction_shipping_cost | null + reversal?: + | (t_tax_product_resource_tax_transaction_resource_reversal | null) + | undefined + ship_from_details?: + | (t_tax_product_resource_ship_from_details | null) + | undefined + shipping_cost?: + | (t_tax_product_resource_tax_transaction_shipping_cost | null) + | undefined tax_date: number type: "reversal" | "transaction" } @@ -11660,14 +12650,18 @@ export type t_tax_transaction_line_item = { amount_tax: number id: string livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "tax.transaction_line_item" - product?: string | null + product?: (string | null) | undefined quantity: number reference: string - reversal?: t_tax_product_resource_tax_transaction_line_item_resource_reversal | null + reversal?: + | (t_tax_product_resource_tax_transaction_line_item_resource_reversal | null) + | undefined tax_behavior: "exclusive" | "inclusive" tax_code: string type: "reversal" | "transaction" @@ -11689,20 +12683,20 @@ export type t_tax_deducted_at_source = { } export type t_tax_i_ds_owner = { - account?: string | t_account - application?: string | t_application - customer?: string | t_customer + account?: (string | t_account) | undefined + application?: (string | t_application) | undefined + customer?: (string | t_customer) | undefined type: "account" | "application" | "customer" | "self" } export type t_tax_id = { - country?: string | null + country?: (string | null) | undefined created: number - customer?: string | t_customer | null + customer?: (string | t_customer | null) | undefined id: string livemode: boolean object: "tax_id" - owner?: t_tax_i_ds_owner | null + owner?: (t_tax_i_ds_owner | null) | undefined type: | "ad_nrt" | "ae_trn" @@ -11787,81 +12781,129 @@ export type t_tax_id = { | "vn_tin" | "za_vat" value: string - verification?: t_tax_id_verification | null + verification?: (t_tax_id_verification | null) | undefined } export type t_tax_id_verification = { status: "pending" | "unavailable" | "unverified" | "verified" - verified_address?: string | null - verified_name?: string | null + verified_address?: (string | null) | undefined + verified_name?: (string | null) | undefined } export type t_tax_product_registrations_resource_country_options = { - ae?: t_tax_product_registrations_resource_country_options_default - at?: t_tax_product_registrations_resource_country_options_europe - au?: t_tax_product_registrations_resource_country_options_default - be?: t_tax_product_registrations_resource_country_options_europe - bg?: t_tax_product_registrations_resource_country_options_europe - bh?: t_tax_product_registrations_resource_country_options_default - by?: t_tax_product_registrations_resource_country_options_simplified - ca?: t_tax_product_registrations_resource_country_options_canada - ch?: t_tax_product_registrations_resource_country_options_default - cl?: t_tax_product_registrations_resource_country_options_simplified - co?: t_tax_product_registrations_resource_country_options_simplified - cr?: t_tax_product_registrations_resource_country_options_simplified - cy?: t_tax_product_registrations_resource_country_options_europe - cz?: t_tax_product_registrations_resource_country_options_europe - de?: t_tax_product_registrations_resource_country_options_europe - dk?: t_tax_product_registrations_resource_country_options_europe - ec?: t_tax_product_registrations_resource_country_options_simplified - ee?: t_tax_product_registrations_resource_country_options_europe - eg?: t_tax_product_registrations_resource_country_options_simplified - es?: t_tax_product_registrations_resource_country_options_europe - fi?: t_tax_product_registrations_resource_country_options_europe - fr?: t_tax_product_registrations_resource_country_options_europe - gb?: t_tax_product_registrations_resource_country_options_default - ge?: t_tax_product_registrations_resource_country_options_simplified - gr?: t_tax_product_registrations_resource_country_options_europe - hr?: t_tax_product_registrations_resource_country_options_europe - hu?: t_tax_product_registrations_resource_country_options_europe - id?: t_tax_product_registrations_resource_country_options_simplified - ie?: t_tax_product_registrations_resource_country_options_europe - is?: t_tax_product_registrations_resource_country_options_default - it?: t_tax_product_registrations_resource_country_options_europe - jp?: t_tax_product_registrations_resource_country_options_default - ke?: t_tax_product_registrations_resource_country_options_simplified - kr?: t_tax_product_registrations_resource_country_options_simplified - kz?: t_tax_product_registrations_resource_country_options_simplified - lt?: t_tax_product_registrations_resource_country_options_europe - lu?: t_tax_product_registrations_resource_country_options_europe - lv?: t_tax_product_registrations_resource_country_options_europe - ma?: t_tax_product_registrations_resource_country_options_simplified - md?: t_tax_product_registrations_resource_country_options_simplified - mt?: t_tax_product_registrations_resource_country_options_europe - mx?: t_tax_product_registrations_resource_country_options_simplified - my?: t_tax_product_registrations_resource_country_options_simplified - ng?: t_tax_product_registrations_resource_country_options_simplified - nl?: t_tax_product_registrations_resource_country_options_europe - no?: t_tax_product_registrations_resource_country_options_default - nz?: t_tax_product_registrations_resource_country_options_default - om?: t_tax_product_registrations_resource_country_options_default - pl?: t_tax_product_registrations_resource_country_options_europe - pt?: t_tax_product_registrations_resource_country_options_europe - ro?: t_tax_product_registrations_resource_country_options_europe - rs?: t_tax_product_registrations_resource_country_options_default - ru?: t_tax_product_registrations_resource_country_options_simplified - sa?: t_tax_product_registrations_resource_country_options_simplified - se?: t_tax_product_registrations_resource_country_options_europe - sg?: t_tax_product_registrations_resource_country_options_default - si?: t_tax_product_registrations_resource_country_options_europe - sk?: t_tax_product_registrations_resource_country_options_europe - th?: t_tax_product_registrations_resource_country_options_simplified - tr?: t_tax_product_registrations_resource_country_options_simplified - tz?: t_tax_product_registrations_resource_country_options_simplified - us?: t_tax_product_registrations_resource_country_options_united_states - uz?: t_tax_product_registrations_resource_country_options_simplified - vn?: t_tax_product_registrations_resource_country_options_simplified - za?: t_tax_product_registrations_resource_country_options_default + ae?: t_tax_product_registrations_resource_country_options_default | undefined + at?: t_tax_product_registrations_resource_country_options_europe | undefined + au?: t_tax_product_registrations_resource_country_options_default | undefined + be?: t_tax_product_registrations_resource_country_options_europe | undefined + bg?: t_tax_product_registrations_resource_country_options_europe | undefined + bh?: t_tax_product_registrations_resource_country_options_default | undefined + by?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + ca?: t_tax_product_registrations_resource_country_options_canada | undefined + ch?: t_tax_product_registrations_resource_country_options_default | undefined + cl?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + co?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + cr?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + cy?: t_tax_product_registrations_resource_country_options_europe | undefined + cz?: t_tax_product_registrations_resource_country_options_europe | undefined + de?: t_tax_product_registrations_resource_country_options_europe | undefined + dk?: t_tax_product_registrations_resource_country_options_europe | undefined + ec?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + ee?: t_tax_product_registrations_resource_country_options_europe | undefined + eg?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + es?: t_tax_product_registrations_resource_country_options_europe | undefined + fi?: t_tax_product_registrations_resource_country_options_europe | undefined + fr?: t_tax_product_registrations_resource_country_options_europe | undefined + gb?: t_tax_product_registrations_resource_country_options_default | undefined + ge?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + gr?: t_tax_product_registrations_resource_country_options_europe | undefined + hr?: t_tax_product_registrations_resource_country_options_europe | undefined + hu?: t_tax_product_registrations_resource_country_options_europe | undefined + id?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + ie?: t_tax_product_registrations_resource_country_options_europe | undefined + is?: t_tax_product_registrations_resource_country_options_default | undefined + it?: t_tax_product_registrations_resource_country_options_europe | undefined + jp?: t_tax_product_registrations_resource_country_options_default | undefined + ke?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + kr?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + kz?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + lt?: t_tax_product_registrations_resource_country_options_europe | undefined + lu?: t_tax_product_registrations_resource_country_options_europe | undefined + lv?: t_tax_product_registrations_resource_country_options_europe | undefined + ma?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + md?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + mt?: t_tax_product_registrations_resource_country_options_europe | undefined + mx?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + my?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + ng?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + nl?: t_tax_product_registrations_resource_country_options_europe | undefined + no?: t_tax_product_registrations_resource_country_options_default | undefined + nz?: t_tax_product_registrations_resource_country_options_default | undefined + om?: t_tax_product_registrations_resource_country_options_default | undefined + pl?: t_tax_product_registrations_resource_country_options_europe | undefined + pt?: t_tax_product_registrations_resource_country_options_europe | undefined + ro?: t_tax_product_registrations_resource_country_options_europe | undefined + rs?: t_tax_product_registrations_resource_country_options_default | undefined + ru?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + sa?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + se?: t_tax_product_registrations_resource_country_options_europe | undefined + sg?: t_tax_product_registrations_resource_country_options_default | undefined + si?: t_tax_product_registrations_resource_country_options_europe | undefined + sk?: t_tax_product_registrations_resource_country_options_europe | undefined + th?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + tr?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + tz?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + us?: + | t_tax_product_registrations_resource_country_options_united_states + | undefined + uz?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + vn?: + | t_tax_product_registrations_resource_country_options_simplified + | undefined + za?: t_tax_product_registrations_resource_country_options_default | undefined } export type t_tax_product_registrations_resource_country_options_ca_province_standard = @@ -11870,7 +12912,9 @@ export type t_tax_product_registrations_resource_country_options_ca_province_sta } export type t_tax_product_registrations_resource_country_options_canada = { - province_standard?: t_tax_product_registrations_resource_country_options_ca_province_standard + province_standard?: + | t_tax_product_registrations_resource_country_options_ca_province_standard + | undefined type: "province_standard" | "simplified" | "standard" } @@ -11883,7 +12927,9 @@ export type t_tax_product_registrations_resource_country_options_eu_standard = { } export type t_tax_product_registrations_resource_country_options_europe = { - standard?: t_tax_product_registrations_resource_country_options_eu_standard + standard?: + | t_tax_product_registrations_resource_country_options_eu_standard + | undefined type: "ioss" | "oss_non_union" | "oss_union" | "standard" } @@ -11893,10 +12939,16 @@ export type t_tax_product_registrations_resource_country_options_simplified = { export type t_tax_product_registrations_resource_country_options_united_states = { - local_amusement_tax?: t_tax_product_registrations_resource_country_options_us_local_amusement_tax - local_lease_tax?: t_tax_product_registrations_resource_country_options_us_local_lease_tax + local_amusement_tax?: + | t_tax_product_registrations_resource_country_options_us_local_amusement_tax + | undefined + local_lease_tax?: + | t_tax_product_registrations_resource_country_options_us_local_lease_tax + | undefined state: string - state_sales_tax?: t_tax_product_registrations_resource_country_options_us_state_sales_tax + state_sales_tax?: + | t_tax_product_registrations_resource_country_options_us_state_sales_tax + | undefined type: | "local_amusement_tax" | "local_lease_tax" @@ -11917,12 +12969,14 @@ export type t_tax_product_registrations_resource_country_options_us_local_lease_ export type t_tax_product_registrations_resource_country_options_us_state_sales_tax = { - elections?: t_tax_product_registrations_resource_country_options_us_state_sales_tax_election[] + elections?: + | t_tax_product_registrations_resource_country_options_us_state_sales_tax_election[] + | undefined } export type t_tax_product_registrations_resource_country_options_us_state_sales_tax_election = { - jurisdiction?: string + jurisdiction?: string | undefined type: | "local_use_tax" | "simplified_sellers_use_tax" @@ -11930,9 +12984,9 @@ export type t_tax_product_registrations_resource_country_options_us_state_sales_ } export type t_tax_product_resource_customer_details = { - address?: t_tax_product_resource_postal_address | null - address_source?: "billing" | "shipping" | null - ip_address?: string | null + address?: (t_tax_product_resource_postal_address | null) | undefined + address_source?: ("billing" | "shipping" | null) | undefined + ip_address?: (string | null) | undefined tax_ids: t_tax_product_resource_customer_details_resource_tax_id[] taxability_override: "customer_exempt" | "none" | "reverse_charge" } @@ -12028,14 +13082,16 @@ export type t_tax_product_resource_jurisdiction = { country: string display_name: string level: "city" | "country" | "county" | "district" | "state" - state?: string | null + state?: (string | null) | undefined } export type t_tax_product_resource_line_item_tax_breakdown = { amount: number jurisdiction: t_tax_product_resource_jurisdiction sourcing: "destination" | "origin" - tax_rate_details?: t_tax_product_resource_line_item_tax_rate_details | null + tax_rate_details?: + | (t_tax_product_resource_line_item_tax_rate_details | null) + | undefined taxability_reason: | "customer_exempt" | "not_collecting" @@ -12076,12 +13132,12 @@ export type t_tax_product_resource_line_item_tax_rate_details = { } export type t_tax_product_resource_postal_address = { - city?: string | null + city?: (string | null) | undefined country: string - line1?: string | null - line2?: string | null - postal_code?: string | null - state?: string | null + line1?: (string | null) | undefined + line2?: (string | null) | undefined + postal_code?: (string | null) | undefined + state?: (string | null) | undefined } export type t_tax_product_resource_ship_from_details = { @@ -12114,39 +13170,44 @@ export type t_tax_product_resource_tax_breakdown = { export type t_tax_product_resource_tax_calculation_shipping_cost = { amount: number amount_tax: number - shipping_rate?: string + shipping_rate?: string | undefined tax_behavior: "exclusive" | "inclusive" - tax_breakdown?: t_tax_product_resource_line_item_tax_breakdown[] + tax_breakdown?: t_tax_product_resource_line_item_tax_breakdown[] | undefined tax_code: string } export type t_tax_product_resource_tax_rate_details = { - country?: string | null - flat_amount?: t_tax_rate_flat_amount | null + country?: (string | null) | undefined + flat_amount?: (t_tax_rate_flat_amount | null) | undefined percentage_decimal: string - rate_type?: "flat_amount" | "percentage" | null - state?: string | null + rate_type?: ("flat_amount" | "percentage" | null) | undefined + state?: (string | null) | undefined tax_type?: - | "amusement_tax" - | "communications_tax" - | "gst" - | "hst" - | "igst" - | "jct" - | "lease_tax" - | "pst" - | "qst" - | "retail_delivery_fee" - | "rst" - | "sales_tax" - | "service_tax" - | "vat" - | null + | ( + | "amusement_tax" + | "communications_tax" + | "gst" + | "hst" + | "igst" + | "jct" + | "lease_tax" + | "pst" + | "qst" + | "retail_delivery_fee" + | "rst" + | "sales_tax" + | "service_tax" + | "vat" + | null + ) + | undefined } export type t_tax_product_resource_tax_settings_defaults = { - tax_behavior?: "exclusive" | "inclusive" | "inferred_by_currency" | null - tax_code?: string | null + tax_behavior?: + | ("exclusive" | "inclusive" | "inferred_by_currency" | null) + | undefined + tax_code?: (string | null) | undefined } export type t_tax_product_resource_tax_settings_head_office = { @@ -12154,8 +13215,12 @@ export type t_tax_product_resource_tax_settings_head_office = { } export type t_tax_product_resource_tax_settings_status_details = { - active?: t_tax_product_resource_tax_settings_status_details_resource_active - pending?: t_tax_product_resource_tax_settings_status_details_resource_pending + active?: + | t_tax_product_resource_tax_settings_status_details_resource_active + | undefined + pending?: + | t_tax_product_resource_tax_settings_status_details_resource_pending + | undefined } export type t_tax_product_resource_tax_settings_status_details_resource_active = @@ -12163,7 +13228,7 @@ export type t_tax_product_resource_tax_settings_status_details_resource_active = export type t_tax_product_resource_tax_settings_status_details_resource_pending = { - missing_fields?: string[] | null + missing_fields?: (string[] | null) | undefined } export type t_tax_product_resource_tax_transaction_line_item_resource_reversal = @@ -12172,60 +13237,60 @@ export type t_tax_product_resource_tax_transaction_line_item_resource_reversal = } export type t_tax_product_resource_tax_transaction_resource_reversal = { - original_transaction?: string | null + original_transaction?: (string | null) | undefined } export type t_tax_product_resource_tax_transaction_shipping_cost = { amount: number amount_tax: number - shipping_rate?: string + shipping_rate?: string | undefined tax_behavior: "exclusive" | "inclusive" tax_code: string } export type t_tax_rate = { active: boolean - country?: string | null + country?: (string | null) | undefined created: number - description?: string | null + description?: (string | null) | undefined display_name: string - effective_percentage?: number | null - flat_amount?: t_tax_rate_flat_amount | null + effective_percentage?: (number | null) | undefined + flat_amount?: (t_tax_rate_flat_amount | null) | undefined id: string inclusive: boolean - jurisdiction?: string | null + jurisdiction?: (string | null) | undefined jurisdiction_level?: - | "city" - | "country" - | "county" - | "district" - | "multiple" - | "state" - | null + | ("city" | "country" | "county" | "district" | "multiple" | "state" | null) + | undefined livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "tax_rate" percentage: number - rate_type?: "flat_amount" | "percentage" | null - state?: string | null + rate_type?: ("flat_amount" | "percentage" | null) | undefined + state?: (string | null) | undefined tax_type?: - | "amusement_tax" - | "communications_tax" - | "gst" - | "hst" - | "igst" - | "jct" - | "lease_tax" - | "pst" - | "qst" - | "retail_delivery_fee" - | "rst" - | "sales_tax" - | "service_tax" - | "vat" - | null + | ( + | "amusement_tax" + | "communications_tax" + | "gst" + | "hst" + | "igst" + | "jct" + | "lease_tax" + | "pst" + | "qst" + | "retail_delivery_fee" + | "rst" + | "sales_tax" + | "service_tax" + | "vat" + | null + ) + | undefined } export type t_tax_rate_flat_amount = { @@ -12234,28 +13299,38 @@ export type t_tax_rate_flat_amount = { } export type t_terminal_configuration = { - bbpos_wisepos_e?: t_terminal_configuration_configuration_resource_device_type_specific_config + bbpos_wisepos_e?: + | t_terminal_configuration_configuration_resource_device_type_specific_config + | undefined id: string - is_account_default?: boolean | null + is_account_default?: (boolean | null) | undefined livemode: boolean - name?: string | null + name?: (string | null) | undefined object: "terminal.configuration" - offline?: t_terminal_configuration_configuration_resource_offline_config - reboot_window?: t_terminal_configuration_configuration_resource_reboot_window - stripe_s700?: t_terminal_configuration_configuration_resource_device_type_specific_config - tipping?: t_terminal_configuration_configuration_resource_tipping - verifone_p400?: t_terminal_configuration_configuration_resource_device_type_specific_config + offline?: + | t_terminal_configuration_configuration_resource_offline_config + | undefined + reboot_window?: + | t_terminal_configuration_configuration_resource_reboot_window + | undefined + stripe_s700?: + | t_terminal_configuration_configuration_resource_device_type_specific_config + | undefined + tipping?: t_terminal_configuration_configuration_resource_tipping | undefined + verifone_p400?: + | t_terminal_configuration_configuration_resource_device_type_specific_config + | undefined } export type t_terminal_connection_token = { - location?: string + location?: string | undefined object: "terminal.connection_token" secret: string } export type t_terminal_location = { address: t_address - configuration_overrides?: string + configuration_overrides?: string | undefined display_name: string id: string livemode: boolean @@ -12266,8 +13341,8 @@ export type t_terminal_location = { } export type t_terminal_reader = { - action?: t_terminal_reader_reader_resource_reader_action | null - device_sw_version?: string | null + action?: (t_terminal_reader_reader_resource_reader_action | null) | undefined + device_sw_version?: (string | null) | undefined device_type: | "bbpos_chipper2x" | "bbpos_wisepad3" @@ -12278,32 +13353,32 @@ export type t_terminal_reader = { | "stripe_s700" | "verifone_P400" id: string - ip_address?: string | null + ip_address?: (string | null) | undefined label: string livemode: boolean - location?: string | t_terminal_location | null + location?: (string | t_terminal_location | null) | undefined metadata: { [key: string]: string | undefined } object: "terminal.reader" serial_number: string - status?: "offline" | "online" | null + status?: ("offline" | "online" | null) | undefined } export type t_terminal_configuration_configuration_resource_currency_specific_config = { - fixed_amounts?: number[] | null - percentages?: number[] | null - smart_tip_threshold?: number + fixed_amounts?: (number[] | null) | undefined + percentages?: (number[] | null) | undefined + smart_tip_threshold?: number | undefined } export type t_terminal_configuration_configuration_resource_device_type_specific_config = { - splashscreen?: string | t_file + splashscreen?: (string | t_file) | undefined } export type t_terminal_configuration_configuration_resource_offline_config = { - enabled?: boolean | null + enabled?: (boolean | null) | undefined } export type t_terminal_configuration_configuration_resource_reboot_window = { @@ -12312,27 +13387,57 @@ export type t_terminal_configuration_configuration_resource_reboot_window = { } export type t_terminal_configuration_configuration_resource_tipping = { - aud?: t_terminal_configuration_configuration_resource_currency_specific_config - cad?: t_terminal_configuration_configuration_resource_currency_specific_config - chf?: t_terminal_configuration_configuration_resource_currency_specific_config - czk?: t_terminal_configuration_configuration_resource_currency_specific_config - dkk?: t_terminal_configuration_configuration_resource_currency_specific_config - eur?: t_terminal_configuration_configuration_resource_currency_specific_config - gbp?: t_terminal_configuration_configuration_resource_currency_specific_config - hkd?: t_terminal_configuration_configuration_resource_currency_specific_config - myr?: t_terminal_configuration_configuration_resource_currency_specific_config - nok?: t_terminal_configuration_configuration_resource_currency_specific_config - nzd?: t_terminal_configuration_configuration_resource_currency_specific_config - pln?: t_terminal_configuration_configuration_resource_currency_specific_config - sek?: t_terminal_configuration_configuration_resource_currency_specific_config - sgd?: t_terminal_configuration_configuration_resource_currency_specific_config - usd?: t_terminal_configuration_configuration_resource_currency_specific_config + aud?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + cad?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + chf?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + czk?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + dkk?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + eur?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + gbp?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + hkd?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + myr?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + nok?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + nzd?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + pln?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + sek?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + sgd?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined + usd?: + | t_terminal_configuration_configuration_resource_currency_specific_config + | undefined } export type t_terminal_reader_reader_resource_cart = { currency: string line_items: t_terminal_reader_reader_resource_line_item[] - tax?: number | null + tax?: (number | null) | undefined total: number } @@ -12343,33 +13448,43 @@ export type t_terminal_reader_reader_resource_line_item = { } export type t_terminal_reader_reader_resource_process_config = { - enable_customer_cancellation?: boolean - skip_tipping?: boolean - tipping?: t_terminal_reader_reader_resource_tipping_config + enable_customer_cancellation?: boolean | undefined + skip_tipping?: boolean | undefined + tipping?: t_terminal_reader_reader_resource_tipping_config | undefined } export type t_terminal_reader_reader_resource_process_payment_intent_action = { payment_intent: string | t_payment_intent - process_config?: t_terminal_reader_reader_resource_process_config + process_config?: t_terminal_reader_reader_resource_process_config | undefined } export type t_terminal_reader_reader_resource_process_setup_config = { - enable_customer_cancellation?: boolean + enable_customer_cancellation?: boolean | undefined } export type t_terminal_reader_reader_resource_process_setup_intent_action = { - generated_card?: string - process_config?: t_terminal_reader_reader_resource_process_setup_config + generated_card?: string | undefined + process_config?: + | t_terminal_reader_reader_resource_process_setup_config + | undefined setup_intent: string | t_setup_intent } export type t_terminal_reader_reader_resource_reader_action = { - failure_code?: string | null - failure_message?: string | null - process_payment_intent?: t_terminal_reader_reader_resource_process_payment_intent_action - process_setup_intent?: t_terminal_reader_reader_resource_process_setup_intent_action - refund_payment?: t_terminal_reader_reader_resource_refund_payment_action - set_reader_display?: t_terminal_reader_reader_resource_set_reader_display_action + failure_code?: (string | null) | undefined + failure_message?: (string | null) | undefined + process_payment_intent?: + | t_terminal_reader_reader_resource_process_payment_intent_action + | undefined + process_setup_intent?: + | t_terminal_reader_reader_resource_process_setup_intent_action + | undefined + refund_payment?: + | t_terminal_reader_reader_resource_refund_payment_action + | undefined + set_reader_display?: + | t_terminal_reader_reader_resource_set_reader_display_action + | undefined status: "failed" | "in_progress" | "succeeded" type: | "process_payment_intent" @@ -12379,30 +13494,34 @@ export type t_terminal_reader_reader_resource_reader_action = { } export type t_terminal_reader_reader_resource_refund_payment_action = { - amount?: number - charge?: string | t_charge - metadata?: { - [key: string]: string | undefined - } - payment_intent?: string | t_payment_intent - reason?: "duplicate" | "fraudulent" | "requested_by_customer" - refund?: string | t_refund - refund_application_fee?: boolean - refund_payment_config?: t_terminal_reader_reader_resource_refund_payment_config - reverse_transfer?: boolean + amount?: number | undefined + charge?: (string | t_charge) | undefined + metadata?: + | { + [key: string]: string | undefined + } + | undefined + payment_intent?: (string | t_payment_intent) | undefined + reason?: ("duplicate" | "fraudulent" | "requested_by_customer") | undefined + refund?: (string | t_refund) | undefined + refund_application_fee?: boolean | undefined + refund_payment_config?: + | t_terminal_reader_reader_resource_refund_payment_config + | undefined + reverse_transfer?: boolean | undefined } export type t_terminal_reader_reader_resource_refund_payment_config = { - enable_customer_cancellation?: boolean + enable_customer_cancellation?: boolean | undefined } export type t_terminal_reader_reader_resource_set_reader_display_action = { - cart?: t_terminal_reader_reader_resource_cart | null + cart?: (t_terminal_reader_reader_resource_cart | null) | undefined type: "cart" } export type t_terminal_reader_reader_resource_tipping_config = { - amount_eligible?: number + amount_eligible?: number | undefined } export type t_test_helpers_test_clock = { @@ -12411,60 +13530,76 @@ export type t_test_helpers_test_clock = { frozen_time: number id: string livemode: boolean - name?: string | null + name?: (string | null) | undefined object: "test_helpers.test_clock" status: "advancing" | "internal_failure" | "ready" status_details: t_billing_clocks_resource_status_details_status_details } export type t_three_d_secure_details = { - authentication_flow?: "challenge" | "frictionless" | null - electronic_commerce_indicator?: "01" | "02" | "05" | "06" | "07" | null + authentication_flow?: ("challenge" | "frictionless" | null) | undefined + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07" | null) + | undefined result?: - | "attempt_acknowledged" - | "authenticated" - | "exempted" - | "failed" - | "not_supported" - | "processing_error" - | null + | ( + | "attempt_acknowledged" + | "authenticated" + | "exempted" + | "failed" + | "not_supported" + | "processing_error" + | null + ) + | undefined result_reason?: - | "abandoned" - | "bypassed" - | "canceled" - | "card_not_enrolled" - | "network_not_supported" - | "protocol_error" - | "rejected" - | null - transaction_id?: string | null - version?: "1.0.2" | "2.1.0" | "2.2.0" | null + | ( + | "abandoned" + | "bypassed" + | "canceled" + | "card_not_enrolled" + | "network_not_supported" + | "protocol_error" + | "rejected" + | null + ) + | undefined + transaction_id?: (string | null) | undefined + version?: ("1.0.2" | "2.1.0" | "2.2.0" | null) | undefined } export type t_three_d_secure_details_charge = { - authentication_flow?: "challenge" | "frictionless" | null - electronic_commerce_indicator?: "01" | "02" | "05" | "06" | "07" | null - exemption_indicator?: "low_risk" | "none" | null - exemption_indicator_applied?: boolean + authentication_flow?: ("challenge" | "frictionless" | null) | undefined + electronic_commerce_indicator?: + | ("01" | "02" | "05" | "06" | "07" | null) + | undefined + exemption_indicator?: ("low_risk" | "none" | null) | undefined + exemption_indicator_applied?: boolean | undefined result?: - | "attempt_acknowledged" - | "authenticated" - | "exempted" - | "failed" - | "not_supported" - | "processing_error" - | null + | ( + | "attempt_acknowledged" + | "authenticated" + | "exempted" + | "failed" + | "not_supported" + | "processing_error" + | null + ) + | undefined result_reason?: - | "abandoned" - | "bypassed" - | "canceled" - | "card_not_enrolled" - | "network_not_supported" - | "protocol_error" - | "rejected" - | null - transaction_id?: string | null - version?: "1.0.2" | "2.1.0" | "2.2.0" | null + | ( + | "abandoned" + | "bypassed" + | "canceled" + | "card_not_enrolled" + | "network_not_supported" + | "protocol_error" + | "rejected" + | null + ) + | undefined + transaction_id?: (string | null) | undefined + version?: ("1.0.2" | "2.1.0" | "2.2.0" | null) | undefined } export type t_three_d_secure_usage = { @@ -12472,21 +13607,21 @@ export type t_three_d_secure_usage = { } export type t_thresholds_resource_usage_alert_filter = { - customer?: string | t_customer | null + customer?: (string | t_customer | null) | undefined type: "customer" } export type t_thresholds_resource_usage_threshold_config = { - filters?: t_thresholds_resource_usage_alert_filter[] | null + filters?: (t_thresholds_resource_usage_alert_filter[] | null) | undefined gte: number meter: string | t_billing_meter recurrence: "one_time" } export type t_token = { - bank_account?: t_bank_account - card?: t_card - client_ip?: string | null + bank_account?: t_bank_account | undefined + card?: t_card | undefined + client_ip?: (string | null) | undefined created: number id: string livemode: boolean @@ -12496,39 +13631,39 @@ export type t_token = { } export type t_token_card_networks = { - preferred?: string | null + preferred?: (string | null) | undefined } export type t_topup = { amount: number - balance_transaction?: string | t_balance_transaction | null + balance_transaction?: (string | t_balance_transaction | null) | undefined created: number currency: string - description?: string | null - expected_availability_date?: number | null - failure_code?: string | null - failure_message?: string | null + description?: (string | null) | undefined + expected_availability_date?: (number | null) | undefined + failure_code?: (string | null) | undefined + failure_message?: (string | null) | undefined id: string livemode: boolean metadata: { [key: string]: string | undefined } object: "topup" - source?: t_source | null - statement_descriptor?: string | null + source?: (t_source | null) | undefined + statement_descriptor?: (string | null) | undefined status: "canceled" | "failed" | "pending" | "reversed" | "succeeded" - transfer_group?: string | null + transfer_group?: (string | null) | undefined } export type t_transfer = { amount: number amount_reversed: number - balance_transaction?: string | t_balance_transaction | null + balance_transaction?: (string | t_balance_transaction | null) | undefined created: number currency: string - description?: string | null - destination?: string | t_account | null - destination_payment?: string | t_charge + description?: (string | null) | undefined + destination?: (string | t_account | null) | undefined + destination_payment?: (string | t_charge) | undefined id: string livemode: boolean metadata: { @@ -12542,36 +13677,38 @@ export type t_transfer = { url: string } reversed: boolean - source_transaction?: string | t_charge | null - source_type?: string - transfer_group?: string | null + source_transaction?: (string | t_charge | null) | undefined + source_type?: string | undefined + transfer_group?: (string | null) | undefined } export type t_transfer_data = { - amount?: number + amount?: number | undefined destination: string | t_account } export type t_transfer_reversal = { amount: number - balance_transaction?: string | t_balance_transaction | null + balance_transaction?: (string | t_balance_transaction | null) | undefined created: number currency: string - destination_payment_refund?: string | t_refund | null + destination_payment_refund?: (string | t_refund | null) | undefined id: string - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "transfer_reversal" - source_refund?: string | t_refund | null + source_refund?: (string | t_refund | null) | undefined transfer: string | t_transfer } export type t_transfer_schedule = { delay_days: number interval: string - monthly_anchor?: number - weekly_anchor?: string + monthly_anchor?: number | undefined + weekly_anchor?: string | undefined } export type t_transform_quantity = { @@ -12589,7 +13726,7 @@ export type t_treasury_credit_reversal = { created: number currency: string financial_account: string - hosted_regulatory_receipt_url?: string | null + hosted_regulatory_receipt_url?: (string | null) | undefined id: string livemode: boolean metadata: { @@ -12600,17 +13737,19 @@ export type t_treasury_credit_reversal = { received_credit: string status: "canceled" | "posted" | "processing" status_transitions: t_treasury_received_credits_resource_status_transitions - transaction?: string | t_treasury_transaction | null + transaction?: (string | t_treasury_transaction | null) | undefined } export type t_treasury_debit_reversal = { amount: number created: number currency: string - financial_account?: string | null - hosted_regulatory_receipt_url?: string | null + financial_account?: (string | null) | undefined + hosted_regulatory_receipt_url?: (string | null) | undefined id: string - linked_flows?: t_treasury_received_debits_resource_debit_reversal_linked_flows | null + linked_flows?: + | (t_treasury_received_debits_resource_debit_reversal_linked_flows | null) + | undefined livemode: boolean metadata: { [key: string]: string | undefined @@ -12620,75 +13759,99 @@ export type t_treasury_debit_reversal = { received_debit: string status: "failed" | "processing" | "succeeded" status_transitions: t_treasury_received_debits_resource_status_transitions - transaction?: string | t_treasury_transaction | null + transaction?: (string | t_treasury_transaction | null) | undefined } export type t_treasury_financial_account = { - active_features?: ( - | "card_issuing" - | "deposit_insurance" - | "financial_addresses.aba" - | "financial_addresses.aba.forwarding" - | "inbound_transfers.ach" - | "intra_stripe_flows" - | "outbound_payments.ach" - | "outbound_payments.us_domestic_wire" - | "outbound_transfers.ach" - | "outbound_transfers.us_domestic_wire" - | "remote_deposit_capture" - )[] + active_features?: + | ( + | "card_issuing" + | "deposit_insurance" + | "financial_addresses.aba" + | "financial_addresses.aba.forwarding" + | "inbound_transfers.ach" + | "intra_stripe_flows" + | "outbound_payments.ach" + | "outbound_payments.us_domestic_wire" + | "outbound_transfers.ach" + | "outbound_transfers.us_domestic_wire" + | "remote_deposit_capture" + )[] + | undefined balance: t_treasury_financial_accounts_resource_balance country: string created: number - features?: t_treasury_financial_account_features + features?: t_treasury_financial_account_features | undefined financial_addresses: t_treasury_financial_accounts_resource_financial_address[] id: string livemode: boolean - metadata?: { - [key: string]: string | undefined - } | null + metadata?: + | ({ + [key: string]: string | undefined + } | null) + | undefined object: "treasury.financial_account" - pending_features?: ( - | "card_issuing" - | "deposit_insurance" - | "financial_addresses.aba" - | "financial_addresses.aba.forwarding" - | "inbound_transfers.ach" - | "intra_stripe_flows" - | "outbound_payments.ach" - | "outbound_payments.us_domestic_wire" - | "outbound_transfers.ach" - | "outbound_transfers.us_domestic_wire" - | "remote_deposit_capture" - )[] - platform_restrictions?: t_treasury_financial_accounts_resource_platform_restrictions | null - restricted_features?: ( - | "card_issuing" - | "deposit_insurance" - | "financial_addresses.aba" - | "financial_addresses.aba.forwarding" - | "inbound_transfers.ach" - | "intra_stripe_flows" - | "outbound_payments.ach" - | "outbound_payments.us_domestic_wire" - | "outbound_transfers.ach" - | "outbound_transfers.us_domestic_wire" - | "remote_deposit_capture" - )[] + pending_features?: + | ( + | "card_issuing" + | "deposit_insurance" + | "financial_addresses.aba" + | "financial_addresses.aba.forwarding" + | "inbound_transfers.ach" + | "intra_stripe_flows" + | "outbound_payments.ach" + | "outbound_payments.us_domestic_wire" + | "outbound_transfers.ach" + | "outbound_transfers.us_domestic_wire" + | "remote_deposit_capture" + )[] + | undefined + platform_restrictions?: + | (t_treasury_financial_accounts_resource_platform_restrictions | null) + | undefined + restricted_features?: + | ( + | "card_issuing" + | "deposit_insurance" + | "financial_addresses.aba" + | "financial_addresses.aba.forwarding" + | "inbound_transfers.ach" + | "intra_stripe_flows" + | "outbound_payments.ach" + | "outbound_payments.us_domestic_wire" + | "outbound_transfers.ach" + | "outbound_transfers.us_domestic_wire" + | "remote_deposit_capture" + )[] + | undefined status: "closed" | "open" status_details: t_treasury_financial_accounts_resource_status_details supported_currencies: string[] } export type t_treasury_financial_account_features = { - card_issuing?: t_treasury_financial_accounts_resource_toggle_settings - deposit_insurance?: t_treasury_financial_accounts_resource_toggle_settings - financial_addresses?: t_treasury_financial_accounts_resource_financial_addresses_features - inbound_transfers?: t_treasury_financial_accounts_resource_inbound_transfers - intra_stripe_flows?: t_treasury_financial_accounts_resource_toggle_settings + card_issuing?: + | t_treasury_financial_accounts_resource_toggle_settings + | undefined + deposit_insurance?: + | t_treasury_financial_accounts_resource_toggle_settings + | undefined + financial_addresses?: + | t_treasury_financial_accounts_resource_financial_addresses_features + | undefined + inbound_transfers?: + | t_treasury_financial_accounts_resource_inbound_transfers + | undefined + intra_stripe_flows?: + | t_treasury_financial_accounts_resource_toggle_settings + | undefined object: "treasury.financial_account_features" - outbound_payments?: t_treasury_financial_accounts_resource_outbound_payments - outbound_transfers?: t_treasury_financial_accounts_resource_outbound_transfers + outbound_payments?: + | t_treasury_financial_accounts_resource_outbound_payments + | undefined + outbound_transfers?: + | t_treasury_financial_accounts_resource_outbound_transfers + | undefined } export type t_treasury_inbound_transfer = { @@ -12696,10 +13859,12 @@ export type t_treasury_inbound_transfer = { cancelable: boolean created: number currency: string - description?: string | null - failure_details?: t_treasury_inbound_transfers_resource_failure_details | null + description?: (string | null) | undefined + failure_details?: + | (t_treasury_inbound_transfers_resource_failure_details | null) + | undefined financial_account: string - hosted_regulatory_receipt_url?: string | null + hosted_regulatory_receipt_url?: (string | null) | undefined id: string linked_flows: t_treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows livemode: boolean @@ -12707,13 +13872,13 @@ export type t_treasury_inbound_transfer = { [key: string]: string | undefined } object: "treasury.inbound_transfer" - origin_payment_method?: string | null - origin_payment_method_details?: t_inbound_transfers | null - returned?: boolean | null + origin_payment_method?: (string | null) | undefined + origin_payment_method_details?: (t_inbound_transfers | null) | undefined + returned?: (boolean | null) | undefined statement_descriptor: string status: "canceled" | "failed" | "processing" | "succeeded" status_transitions: t_treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions - transaction?: string | t_treasury_transaction | null + transaction?: (string | t_treasury_transaction | null) | undefined } export type t_treasury_outbound_payment = { @@ -12721,25 +13886,33 @@ export type t_treasury_outbound_payment = { cancelable: boolean created: number currency: string - customer?: string | null - description?: string | null - destination_payment_method?: string | null - destination_payment_method_details?: t_outbound_payments_payment_method_details | null - end_user_details?: t_treasury_outbound_payments_resource_outbound_payment_resource_end_user_details | null + customer?: (string | null) | undefined + description?: (string | null) | undefined + destination_payment_method?: (string | null) | undefined + destination_payment_method_details?: + | (t_outbound_payments_payment_method_details | null) + | undefined + end_user_details?: + | (t_treasury_outbound_payments_resource_outbound_payment_resource_end_user_details | null) + | undefined expected_arrival_date: number financial_account: string - hosted_regulatory_receipt_url?: string | null + hosted_regulatory_receipt_url?: (string | null) | undefined id: string livemode: boolean metadata: { [key: string]: string | undefined } object: "treasury.outbound_payment" - returned_details?: t_treasury_outbound_payments_resource_returned_status | null + returned_details?: + | (t_treasury_outbound_payments_resource_returned_status | null) + | undefined statement_descriptor: string status: "canceled" | "failed" | "posted" | "processing" | "returned" status_transitions: t_treasury_outbound_payments_resource_outbound_payment_resource_status_transitions - tracking_details?: t_treasury_outbound_payments_resource_outbound_payment_resource_tracking_details | null + tracking_details?: + | (t_treasury_outbound_payments_resource_outbound_payment_resource_tracking_details | null) + | undefined transaction: string | t_treasury_transaction } @@ -12748,23 +13921,27 @@ export type t_treasury_outbound_transfer = { cancelable: boolean created: number currency: string - description?: string | null - destination_payment_method?: string | null + description?: (string | null) | undefined + destination_payment_method?: (string | null) | undefined destination_payment_method_details: t_outbound_transfers_payment_method_details expected_arrival_date: number financial_account: string - hosted_regulatory_receipt_url?: string | null + hosted_regulatory_receipt_url?: (string | null) | undefined id: string livemode: boolean metadata: { [key: string]: string | undefined } object: "treasury.outbound_transfer" - returned_details?: t_treasury_outbound_transfers_resource_returned_details | null + returned_details?: + | (t_treasury_outbound_transfers_resource_returned_details | null) + | undefined statement_descriptor: string status: "canceled" | "failed" | "posted" | "processing" | "returned" status_transitions: t_treasury_outbound_transfers_resource_status_transitions - tracking_details?: t_treasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details | null + tracking_details?: + | (t_treasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details | null) + | undefined transaction: string | t_treasury_transaction } @@ -12774,22 +13951,27 @@ export type t_treasury_received_credit = { currency: string description: string failure_code?: - | "account_closed" - | "account_frozen" - | "international_transaction" - | "other" - | null - financial_account?: string | null - hosted_regulatory_receipt_url?: string | null + | ( + | "account_closed" + | "account_frozen" + | "international_transaction" + | "other" + | null + ) + | undefined + financial_account?: (string | null) | undefined + hosted_regulatory_receipt_url?: (string | null) | undefined id: string initiating_payment_method_details: t_treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details linked_flows: t_treasury_received_credits_resource_linked_flows livemode: boolean network: "ach" | "card" | "stripe" | "us_domestic_wire" object: "treasury.received_credit" - reversal_details?: t_treasury_received_credits_resource_reversal_details | null + reversal_details?: + | (t_treasury_received_credits_resource_reversal_details | null) + | undefined status: "failed" | "succeeded" - transaction?: string | t_treasury_transaction | null + transaction?: (string | t_treasury_transaction | null) | undefined } export type t_treasury_received_debit = { @@ -12798,23 +13980,30 @@ export type t_treasury_received_debit = { currency: string description: string failure_code?: - | "account_closed" - | "account_frozen" - | "insufficient_funds" - | "international_transaction" - | "other" - | null - financial_account?: string | null - hosted_regulatory_receipt_url?: string | null - id: string - initiating_payment_method_details?: t_treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details + | ( + | "account_closed" + | "account_frozen" + | "insufficient_funds" + | "international_transaction" + | "other" + | null + ) + | undefined + financial_account?: (string | null) | undefined + hosted_regulatory_receipt_url?: (string | null) | undefined + id: string + initiating_payment_method_details?: + | t_treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details + | undefined linked_flows: t_treasury_received_debits_resource_linked_flows livemode: boolean network: "ach" | "card" | "stripe" object: "treasury.received_debit" - reversal_details?: t_treasury_received_debits_resource_reversal_details | null + reversal_details?: + | (t_treasury_received_debits_resource_reversal_details | null) + | undefined status: "failed" | "succeeded" - transaction?: string | t_treasury_transaction | null + transaction?: (string | t_treasury_transaction | null) | undefined } export type t_treasury_transaction = { @@ -12823,15 +14012,19 @@ export type t_treasury_transaction = { created: number currency: string description: string - entries?: { - data: t_treasury_transaction_entry[] - has_more: boolean - object: "list" - url: string - } | null + entries?: + | ({ + data: t_treasury_transaction_entry[] + has_more: boolean + object: "list" + url: string + } | null) + | undefined financial_account: string - flow?: string | null - flow_details?: t_treasury_transactions_resource_flow_details | null + flow?: (string | null) | undefined + flow_details?: + | (t_treasury_transactions_resource_flow_details | null) + | undefined flow_type: | "credit_reversal" | "debit_reversal" @@ -12855,8 +14048,10 @@ export type t_treasury_transaction_entry = { currency: string effective_at: number financial_account: string - flow?: string | null - flow_details?: t_treasury_transactions_resource_flow_details | null + flow?: (string | null) | undefined + flow_details?: + | (t_treasury_transactions_resource_flow_details | null) + | undefined flow_type: | "credit_reversal" | "debit_reversal" @@ -12896,7 +14091,7 @@ export type t_treasury_transaction_entry = { export type t_treasury_financial_accounts_resource_aba_record = { account_holder_name: string - account_number?: string | null + account_number?: (string | null) | undefined account_number_last4: string bank_name: string routing_number: string @@ -12931,37 +14126,43 @@ export type t_treasury_financial_accounts_resource_closed_status_details = { } export type t_treasury_financial_accounts_resource_financial_address = { - aba?: t_treasury_financial_accounts_resource_aba_record - supported_networks?: ("ach" | "us_domestic_wire")[] + aba?: t_treasury_financial_accounts_resource_aba_record | undefined + supported_networks?: ("ach" | "us_domestic_wire")[] | undefined type: "aba" } export type t_treasury_financial_accounts_resource_financial_addresses_features = { - aba?: t_treasury_financial_accounts_resource_aba_toggle_settings + aba?: t_treasury_financial_accounts_resource_aba_toggle_settings | undefined } export type t_treasury_financial_accounts_resource_inbound_transfers = { - ach?: t_treasury_financial_accounts_resource_ach_toggle_settings + ach?: t_treasury_financial_accounts_resource_ach_toggle_settings | undefined } export type t_treasury_financial_accounts_resource_outbound_payments = { - ach?: t_treasury_financial_accounts_resource_ach_toggle_settings - us_domestic_wire?: t_treasury_financial_accounts_resource_toggle_settings + ach?: t_treasury_financial_accounts_resource_ach_toggle_settings | undefined + us_domestic_wire?: + | t_treasury_financial_accounts_resource_toggle_settings + | undefined } export type t_treasury_financial_accounts_resource_outbound_transfers = { - ach?: t_treasury_financial_accounts_resource_ach_toggle_settings - us_domestic_wire?: t_treasury_financial_accounts_resource_toggle_settings + ach?: t_treasury_financial_accounts_resource_ach_toggle_settings | undefined + us_domestic_wire?: + | t_treasury_financial_accounts_resource_toggle_settings + | undefined } export type t_treasury_financial_accounts_resource_platform_restrictions = { - inbound_flows?: "restricted" | "unrestricted" | null - outbound_flows?: "restricted" | "unrestricted" | null + inbound_flows?: ("restricted" | "unrestricted" | null) | undefined + outbound_flows?: ("restricted" | "unrestricted" | null) | undefined } export type t_treasury_financial_accounts_resource_status_details = { - closed?: t_treasury_financial_accounts_resource_closed_status_details | null + closed?: + | (t_treasury_financial_accounts_resource_closed_status_details | null) + | undefined } export type t_treasury_financial_accounts_resource_toggle_settings = { @@ -12983,11 +14184,9 @@ export type t_treasury_financial_accounts_resource_toggles_setting_status_detail | "restricted_by_platform" | "restricted_other" resolution?: - | "contact_stripe" - | "provide_information" - | "remove_restriction" - | null - restriction?: "inbound_flows" | "outbound_flows" + | ("contact_stripe" | "provide_information" | "remove_restriction" | null) + | undefined + restriction?: ("inbound_flows" | "outbound_flows") | undefined } export type t_treasury_inbound_transfers_resource_failure_details = { @@ -13009,14 +14208,14 @@ export type t_treasury_inbound_transfers_resource_failure_details = { export type t_treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows = { - received_debit?: string | null + received_debit?: (string | null) | undefined } export type t_treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions = { - canceled_at?: number | null - failed_at?: number | null - succeeded_at?: number | null + canceled_at?: (number | null) | undefined + failed_at?: (number | null) | undefined + succeeded_at?: (number | null) | undefined } export type t_treasury_outbound_payments_resource_ach_tracking_details = { @@ -13025,23 +14224,25 @@ export type t_treasury_outbound_payments_resource_ach_tracking_details = { export type t_treasury_outbound_payments_resource_outbound_payment_resource_end_user_details = { - ip_address?: string | null + ip_address?: (string | null) | undefined present: boolean } export type t_treasury_outbound_payments_resource_outbound_payment_resource_status_transitions = { - canceled_at?: number | null - failed_at?: number | null - posted_at?: number | null - returned_at?: number | null + canceled_at?: (number | null) | undefined + failed_at?: (number | null) | undefined + posted_at?: (number | null) | undefined + returned_at?: (number | null) | undefined } export type t_treasury_outbound_payments_resource_outbound_payment_resource_tracking_details = { - ach?: t_treasury_outbound_payments_resource_ach_tracking_details + ach?: t_treasury_outbound_payments_resource_ach_tracking_details | undefined type: "ach" | "us_domestic_wire" - us_domestic_wire?: t_treasury_outbound_payments_resource_us_domestic_wire_tracking_details + us_domestic_wire?: + | t_treasury_outbound_payments_resource_us_domestic_wire_tracking_details + | undefined } export type t_treasury_outbound_payments_resource_returned_status = { @@ -13061,9 +14262,9 @@ export type t_treasury_outbound_payments_resource_returned_status = { export type t_treasury_outbound_payments_resource_us_domestic_wire_tracking_details = { - chips?: string | null - imad?: string | null - omad?: string | null + chips?: (string | null) | undefined + imad?: (string | null) | undefined + omad?: (string | null) | undefined } export type t_treasury_outbound_transfers_resource_ach_tracking_details = { @@ -13072,9 +14273,13 @@ export type t_treasury_outbound_transfers_resource_ach_tracking_details = { export type t_treasury_outbound_transfers_resource_outbound_transfer_resource_tracking_details = { - ach?: t_treasury_outbound_transfers_resource_ach_tracking_details + ach?: + | t_treasury_outbound_transfers_resource_ach_tracking_details + | undefined type: "ach" | "us_domestic_wire" - us_domestic_wire?: t_treasury_outbound_transfers_resource_us_domestic_wire_tracking_details + us_domestic_wire?: + | t_treasury_outbound_transfers_resource_us_domestic_wire_tracking_details + | undefined } export type t_treasury_outbound_transfers_resource_returned_details = { @@ -13093,109 +14298,121 @@ export type t_treasury_outbound_transfers_resource_returned_details = { } export type t_treasury_outbound_transfers_resource_status_transitions = { - canceled_at?: number | null - failed_at?: number | null - posted_at?: number | null - returned_at?: number | null + canceled_at?: (number | null) | undefined + failed_at?: (number | null) | undefined + posted_at?: (number | null) | undefined + returned_at?: (number | null) | undefined } export type t_treasury_outbound_transfers_resource_us_domestic_wire_tracking_details = { - chips?: string | null - imad?: string | null - omad?: string | null + chips?: (string | null) | undefined + imad?: (string | null) | undefined + omad?: (string | null) | undefined } export type t_treasury_received_credits_resource_linked_flows = { - credit_reversal?: string | null - issuing_authorization?: string | null - issuing_transaction?: string | null - source_flow?: string | null - source_flow_details?: t_treasury_received_credits_resource_source_flows_details | null - source_flow_type?: string | null + credit_reversal?: (string | null) | undefined + issuing_authorization?: (string | null) | undefined + issuing_transaction?: (string | null) | undefined + source_flow?: (string | null) | undefined + source_flow_details?: + | (t_treasury_received_credits_resource_source_flows_details | null) + | undefined + source_flow_type?: (string | null) | undefined } export type t_treasury_received_credits_resource_reversal_details = { - deadline?: number | null + deadline?: (number | null) | undefined restricted_reason?: - | "already_reversed" - | "deadline_passed" - | "network_restricted" - | "other" - | "source_flow_restricted" - | null + | ( + | "already_reversed" + | "deadline_passed" + | "network_restricted" + | "other" + | "source_flow_restricted" + | null + ) + | undefined } export type t_treasury_received_credits_resource_source_flows_details = { - credit_reversal?: t_treasury_credit_reversal - outbound_payment?: t_treasury_outbound_payment - payout?: t_payout + credit_reversal?: t_treasury_credit_reversal | undefined + outbound_payment?: t_treasury_outbound_payment | undefined + payout?: t_payout | undefined type: "credit_reversal" | "other" | "outbound_payment" | "payout" } export type t_treasury_received_credits_resource_status_transitions = { - posted_at?: number | null + posted_at?: (number | null) | undefined } export type t_treasury_received_debits_resource_debit_reversal_linked_flows = { - issuing_dispute?: string | null + issuing_dispute?: (string | null) | undefined } export type t_treasury_received_debits_resource_linked_flows = { - debit_reversal?: string | null - inbound_transfer?: string | null - issuing_authorization?: string | null - issuing_transaction?: string | null - payout?: string | null + debit_reversal?: (string | null) | undefined + inbound_transfer?: (string | null) | undefined + issuing_authorization?: (string | null) | undefined + issuing_transaction?: (string | null) | undefined + payout?: (string | null) | undefined } export type t_treasury_received_debits_resource_reversal_details = { - deadline?: number | null + deadline?: (number | null) | undefined restricted_reason?: - | "already_reversed" - | "deadline_passed" - | "network_restricted" - | "other" - | "source_flow_restricted" - | null + | ( + | "already_reversed" + | "deadline_passed" + | "network_restricted" + | "other" + | "source_flow_restricted" + | null + ) + | undefined } export type t_treasury_received_debits_resource_status_transitions = { - completed_at?: number | null + completed_at?: (number | null) | undefined } export type t_treasury_shared_resource_billing_details = { address: t_address - email?: string | null - name?: string | null + email?: (string | null) | undefined + name?: (string | null) | undefined } export type t_treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details = { - balance?: "payments" + balance?: "payments" | undefined billing_details: t_treasury_shared_resource_billing_details - financial_account?: t_received_payment_method_details_financial_account - issuing_card?: string + financial_account?: + | t_received_payment_method_details_financial_account + | undefined + issuing_card?: string | undefined type: | "balance" | "financial_account" | "issuing_card" | "stripe" | "us_bank_account" - us_bank_account?: t_treasury_shared_resource_initiating_payment_method_details_us_bank_account + us_bank_account?: + | t_treasury_shared_resource_initiating_payment_method_details_us_bank_account + | undefined } export type t_treasury_shared_resource_initiating_payment_method_details_us_bank_account = { - bank_name?: string | null - last4?: string | null - routing_number?: string | null + bank_name?: (string | null) | undefined + last4?: (string | null) | undefined + routing_number?: (string | null) | undefined } export type t_treasury_transactions_resource_abstract_transaction_resource_status_transitions = { - posted_at?: number | null - void_at?: number | null + posted_at?: (number | null) | undefined + void_at?: (number | null) | undefined } export type t_treasury_transactions_resource_balance_impact = { @@ -13205,14 +14422,14 @@ export type t_treasury_transactions_resource_balance_impact = { } export type t_treasury_transactions_resource_flow_details = { - credit_reversal?: t_treasury_credit_reversal - debit_reversal?: t_treasury_debit_reversal - inbound_transfer?: t_treasury_inbound_transfer - issuing_authorization?: t_issuing_authorization - outbound_payment?: t_treasury_outbound_payment - outbound_transfer?: t_treasury_outbound_transfer - received_credit?: t_treasury_received_credit - received_debit?: t_treasury_received_debit + credit_reversal?: t_treasury_credit_reversal | undefined + debit_reversal?: t_treasury_debit_reversal | undefined + inbound_transfer?: t_treasury_inbound_transfer | undefined + issuing_authorization?: t_issuing_authorization | undefined + outbound_payment?: t_treasury_outbound_payment | undefined + outbound_transfer?: t_treasury_outbound_transfer | undefined + received_credit?: t_treasury_received_credit | undefined + received_debit?: t_treasury_received_debit | undefined type: | "credit_reversal" | "debit_reversal" @@ -13226,7 +14443,7 @@ export type t_treasury_transactions_resource_flow_details = { } export type t_us_bank_account_networks = { - preferred?: string | null + preferred?: (string | null) | undefined supported: ("ach" | "us_domestic_wire")[] } @@ -13241,7 +14458,7 @@ export type t_usage_record = { export type t_usage_record_summary = { id: string - invoice?: string | null + invoice?: (string | null) | undefined livemode: boolean object: "usage_record_summary" period: t_period @@ -13254,10 +14471,10 @@ export type t_verification_session_redaction = { } export type t_webhook_endpoint = { - api_version?: string | null - application?: string | null + api_version?: (string | null) | undefined + application?: (string | null) | undefined created: number - description?: string | null + description?: (string | null) | undefined enabled_events: string[] id: string livemode: boolean @@ -13265,7 +14482,7 @@ export type t_webhook_endpoint = { [key: string]: string | undefined } object: "webhook_endpoint" - secret?: string + secret?: string | undefined status: string url: string } diff --git a/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts b/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts index c754ea6a..2890efe5 100644 --- a/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts +++ b/integration-tests/typescript-axios/src/generated/todo-lists.yaml/client.ts @@ -250,7 +250,7 @@ export class TodoListsExampleApi extends AbstractAxiosClient { opts: AxiosRequestConfig = {}, ): Promise< AxiosResponse<{ - completedAt?: string + completedAt?: string | undefined content: string createdAt: string id: string @@ -272,7 +272,7 @@ export class TodoListsExampleApi extends AbstractAxiosClient { p: { listId: string requestBody: { - completedAt?: string + completedAt?: string | undefined content: string id: string } @@ -322,7 +322,7 @@ export class TodoListsExampleApi extends AbstractAxiosClient { async uploadAttachment( p: { requestBody: { - file?: unknown + file?: unknown | undefined } }, basePath: diff --git a/integration-tests/typescript-axios/src/generated/todo-lists.yaml/models.ts b/integration-tests/typescript-axios/src/generated/todo-lists.yaml/models.ts index 46c34696..379506dc 100644 --- a/integration-tests/typescript-axios/src/generated/todo-lists.yaml/models.ts +++ b/integration-tests/typescript-axios/src/generated/todo-lists.yaml/models.ts @@ -3,8 +3,8 @@ /* eslint-disable */ export type t_Error = { - code?: number - message?: string + code?: number | undefined + message?: string | undefined } export type t_CreateUpdateTodoList = { diff --git a/integration-tests/typescript-axios/tsconfig.json b/integration-tests/typescript-axios/tsconfig.json index 5e14d7ec..9cf52845 100644 --- a/integration-tests/typescript-axios/tsconfig.json +++ b/integration-tests/typescript-axios/tsconfig.json @@ -3,6 +3,8 @@ "compilerOptions": { "outDir": "./dist", "rootDir": "./src", + /* exercise the code path where exactOptionalPropertyTypes is enabled */ + "exactOptionalPropertyTypes": true, "noUnusedLocals": true } } diff --git a/integration-tests/typescript-fetch/tsconfig.json b/integration-tests/typescript-fetch/tsconfig.json index 5e14d7ec..d2dc3fe7 100644 --- a/integration-tests/typescript-fetch/tsconfig.json +++ b/integration-tests/typescript-fetch/tsconfig.json @@ -3,6 +3,8 @@ "compilerOptions": { "outDir": "./dist", "rootDir": "./src", + /* exercise the code path where exactOptionalPropertyTypes is disabled */ + "exactOptionalPropertyTypes": false, "noUnusedLocals": true } } diff --git a/integration-tests/typescript-koa/tsconfig.json b/integration-tests/typescript-koa/tsconfig.json index 89158299..7783dd8d 100644 --- a/integration-tests/typescript-koa/tsconfig.json +++ b/integration-tests/typescript-koa/tsconfig.json @@ -4,6 +4,7 @@ "outDir": "./dist", "rootDir": "./src", "types": [], + /* exercise the code path where exactOptionalPropertyTypes is disabled */ "exactOptionalPropertyTypes": false, "noUnusedLocals": true } diff --git a/packages/openapi-code-generator/src/typescript/typescript-axios/typescript-axios.generator.ts b/packages/openapi-code-generator/src/typescript/typescript-axios/typescript-axios.generator.ts index d38244f5..754cbc0a 100644 --- a/packages/openapi-code-generator/src/typescript/typescript-axios/typescript-axios.generator.ts +++ b/packages/openapi-code-generator/src/typescript/typescript-axios/typescript-axios.generator.ts @@ -13,10 +13,7 @@ export async function generateTypescriptAxios( const rootTypeBuilder = await TypeBuilder.fromInput( "./models.ts", input, - { - ...config.compilerOptions, - exactOptionalPropertyTypes: false, - }, + config.compilerOptions, {allowAny}, ) diff --git a/packages/openapi-code-generator/src/typescript/typescript-fetch/typescript-fetch.generator.ts b/packages/openapi-code-generator/src/typescript/typescript-fetch/typescript-fetch.generator.ts index de300990..ee8389d9 100644 --- a/packages/openapi-code-generator/src/typescript/typescript-fetch/typescript-fetch.generator.ts +++ b/packages/openapi-code-generator/src/typescript/typescript-fetch/typescript-fetch.generator.ts @@ -13,10 +13,7 @@ export async function generateTypescriptFetch( const rootTypeBuilder = await TypeBuilder.fromInput( "./models.ts", input, - { - ...config.compilerOptions, - exactOptionalPropertyTypes: false, - }, + config.compilerOptions, {allowAny}, ) const rootSchemaBuilder = await schemaBuilderFactory(